I created two apk files with package name com.example.a and com.example.a.staging. But I am not able to install the both on the same device together. It will install separately.While try to install one after installed the other, it shows an error 'app not installed'
i have faced similar situations.
possible scenarios:
1. you didn't change applicationId
in app/gradle .
Solution: In that case, change applicationId
.
2.you have a defined a provider for facebook(or something similar) in AndroidManifest.xml like android:authorities="com.facebook.app.FacebookContentProviderXXXX
.
Solution: Comment out that provider for testing or add different ids for providers for different build variants.
首先,您在清单文件中更改软件包名称,然后将更改后的软件包名称粘贴到applicationId位置的build.gradle(应用程序级别)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.