Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable manifest merging in Android Studio

Tags:

I am having a hard time removing unnecessary (permissions) stuff from my manifest file after compiling and sigining a release version of my app. I simply don't want anything merged from other libraries's manifest files. I have my own manifest file and thats it. no other manifest should be merged in

anyone knows how to completely disable manifest merging?

like image 614
Gillis Haasnoot Avatar asked Jan 07 '15 23:01

Gillis Haasnoot


1 Answers

Try this

 android.applicationVariants.all{ variant ->
   variant.outputs.each { output ->
     output.processResources.manifestFile = file('AndroidManifest.xml')
     output.processManifest.enabled=false
   }
 }
like image 138
Uma sankar pradhan Avatar answered Sep 22 '22 10:09

Uma sankar pradhan