AndroidStudio -> How to ignore my Library Manifest and use only my Application Manifest?

1.5k Views Asked by At

I have a AndroidStudio Project imported from Eclipse. In Eclipse i have a library project with his own dummy manifest which i use for testing the library disabling the library checkbox from the project configuration.

Now i want to do the same in AndroidStudio, i want to have the possibility to test my library project with his dummy test manifest but i want that the new manifest-merger ignores my library manifest when compiling my application (that has a dependency with my library project)

How can this be achieved in AndroidStudio?

Thanks

1

There are 1 best solutions below

3
On

You can do it with Gradle in android studio. In your build.gradle file add this:

android{
    sourceSets {
            main {
                manifest.srcFile 'src/main/AndroidManifest.xml'
            }
    }
}