Reputation: 11776
I'm getting the following message.
android-validator: Suspicious module dependency com.package.name -> ProjectName: Android application module depends on other application module. Possibly, you should change type of module 'ProjectName' to 'Library' or change the dependency scope to 'Provided'.
How can I change the type of a module??
Upvotes: 9
Views: 5370
Reputation: 139
apply plugin: 'com.android.application'
to apply plugin: 'com.android.library'
Upvotes: 4
Reputation: 1974
Go to File -> Project structure -> Modules, select the desired module, click on the arrow to expand the module, you'll see “Android”. Click on it, you see on the right: “Facet 'Android'” and a checkbox “Library module”
Upvotes: 16