Reputation: 37731
I have a Android Studio 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 Android Studio, 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 Android Studio?
Upvotes: 1
Views: 1667
Reputation: 3755
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'
}
}
}
Upvotes: 0