Merged Manifest in Android Studio

1

Because in the Merged Manifest I see the minSdkVersion and the targetSdkVersion with other values different to the AndroidManifest of my app?

I was investigating and I understand that when the app is compiled, a definitive AndroidManifest is generated, among all those that may be in the project.

From the Manifest Sources list, I clicked on each of the links and changed the values in each file to minSdkVersion="9" and targetSdkVersion="23" and versionCode="12" , as I want it to be finally to be able to upload it to the store. But the Merged Manifest remains the same ..

What should I do? Thanks.

    
asked by Josue Rodriguez 07.04.2017 в 15:05
source

1 answer

1

Because these values are overwritten by the values declared within the build.gradle of the project.

You can actually define minSdkVersion and targetSdkVersion in your AndroidManifest.xml but if you define these values also within your build.gradle , these values are overwritten, these are the values you see in your Merged Manifest.

    
answered by 07.04.2017 в 16:08