Reputation: 994
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'
Upvotes: 0
Views: 94
Reputation: 4444
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.
Upvotes: 2
Reputation: 284
first, you change package name in your manifest file, then you paste the changed package name to your build.gradle(app level) on applicationId place
Upvotes: 1