Package Overlay and R does not exist when merging manifests of multiple build variants/flavours

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Package Overlay and R does not exist when merging manifests of multiple build variants/flavours



Whilst trying to set-up a demo flavour for my android studio project I encountered some problems with the manifest and the R file.



Problem 1



manifest merger error



my build and manifest files are as follows:
build.gradle



build.gradle was same throughout



AndroidManifest.xml (for main)



this is the default main manifest that android studio generated



AndroidManifest.xml (for demoDebug variant)



this is the manifest file generated for demoDebug using the "new" dropdown option



of course when I do what the message says and remove the package declaration in the demoDebug variant manifest I get the following



Problem 2



error message after removing package attribute from second manifest



This error also appears if I copy the package attribute from the main manifest and put it into the demoDebug one. Using applicationIdSuffix does not solve this problem either. At this point I'm baffled so any help would be much appreciated









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered