-->

使用产品的口味访问活动时,“应用程序不能在手机上安装”。 有什么建议?(“Application

2019-10-28 19:48发布

我拥有的gradle:

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")
        }
    }

不知道为什么,但在应用程序启动,但是当我要访问我的设置活动,它说:“您的手机上没有安装应用程序”。 任何帮助表示赞赏。

文章来源: “Application not installed on your phone” when accessing activity using product flavors. Any Advice?