问题
My gradle has:
defaultConfig {
targetSdkVersion 26
applicationId 'com.company.appname'
}
buildTypes {
debug {
minifyEnabled false
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt', 'proguard-ulivewallpaper.txt'
jniDebuggable true
}
release {
minifyEnabled false
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt', 'proguard-ulivewallpaper.txt'
signingConfig signingConfigs.debug
}
}
productFlavors {
pro{
applicationId = "com.company.appname.pro"
flavorDimensions("default")
buildConfigField("boolean", "demomode", "false")
}
free{
applicationId = "com.company.appname.free"
flavorDimensions("default")
buildConfigField("boolean", "demomode", "true")
}
}
Not sure why but the app starts but when I want to access my settings activity, it says "Application not installed on your phone". Any help is appreciated.
来源:https://stackoverflow.com/questions/49723912/application-not-installed-on-your-phone-when-accessing-activity-using-product