Android, IntelliJ Idea, changing module type
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”
- go to your build.gradle from your module
- replace your
apply plugin: 'com.android.application'
toapply plugin: 'com.android.library'
- sync the project