Java 使用调味包安装应用程序时出错
我正在尝试在我的应用程序中使用有味道的包名。我应用了以下更改:Java 使用调味包安装应用程序时出错,java,android,gradle,android-build-flavors,Java,Android,Gradle,Android Build Flavors,我正在尝试在我的应用程序中使用有味道的包名。我应用了以下更改: productFlavors { production { applicationId "com.xxx" } staging { applicationId "com.xxx.staging" } } 在尝试安装应用程序时,我得到: Installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDE
productFlavors {
production {
applicationId "com.xxx"
}
staging {
applicationId "com.xxx.staging"
}
}
在尝试安装应用程序时,我得到:
Installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDER.
It is possible that this issue is resolved by uninstalling an existing
version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
接受错误后发生:
$ adb shell pm uninstall com.xxx.staging
DELETE_FAILED_INTERNAL_ERROR
Error while Installing APK
似乎它试图删除一些不存在的东西。。。有什么想法吗 您的设备上是否已经安装了apk?如果是这样的话,您可能需要使用diff keystores对apk进行签名(即1个用于签署产品和登台apk的文件和一个用于调试的diff文件-通常包含在“android sdk”/.android dir中…您可以尝试将“-r”标志添加到adb install cmd中,以替换设备上已安装的apk(如果存在)听起来好像与清单中的安卓:权威机构有关。您是否搜索了错误消息?