Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android, IntelliJ Idea, changing module type

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??

like image 208
a fair player Avatar asked Dec 09 '13 08:12

a fair player


2 Answers

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”

like image 63
Douglas Drumond Kayama Avatar answered Oct 15 '22 04:10

Douglas Drumond Kayama


  1. go to your build.gradle from your module
  2. replace your apply plugin: 'com.android.application' to apply plugin: 'com.android.library'
  3. sync the project
like image 22
Brendon Iwata Avatar answered Oct 15 '22 02:10

Brendon Iwata