Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The module cannot be Android Library?

I'm using IntelliJ IDEA for Android Development, and when I try to edit the run configuration for the Android emulator, it says there is an error and it looks like this.

The emulator still runs but it doesn't launch the activity automatically and I'm just wondering what's causing this error and what are possible solutions. Thanks.

like image 469
Bradsta Avatar asked Jan 22 '13 05:01

Bradsta


2 Answers

That happened to me too after following the Android Studio recommendations to switch "android" to "com.android.library in build.gradle.

So for the app module of my project, I just reverted this:

apply plugin: 'com.android.library'

Into this:

apply plugin: 'com.android.application'
like image 98
Benjamin Piette Avatar answered Nov 03 '22 04:11

Benjamin Piette


GO to "Project structure" icon (it is enlisting where your new,save project icons are showing) then click Module and select Android option and Uncheck Library Module or

PROJECT STRUCTURE->MODULE->ANDROID->UNCHECK LIBRARY

like image 27
Neeraj Manchanda Avatar answered Nov 03 '22 04:11

Neeraj Manchanda