“Application not installed on your phone” when accessing activity using product flavors. Any Advice?

喜你入骨 提交于 2019-12-24 19:19:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!