Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APK path is not specified for module "Example-Example"

I am newbie in the world of android app development. I was creating a project Example on Android Studio. I have my LunchList.java file in src/main/java/apt.tutorial.lunchlist .Till yesterday Everything was working fine. But when I open android Studio today I got an error saying

"The modules below have been removed from Gradle structure. Check those to be removed from the project too:"

☑ LunchList

☑ LunchList-LunchList

And there is OK and Cancel Button. I don't want to remove them. So I click cancel and proceed.

Then when I tried to run the application in emulator the emulator runs but nothing happens. And I got this error

Waiting for device.

Target device: emulator-5554 (Android)

ERROR: APK path is not specified for module "LunchList-LunchList"

I don't know what went wrong. Please help me.

[Edit: I tried unchecking both of them and click OK. But after that I'm not getting the first error but still getting the second error ]

like image 597
Ratan Parai Avatar asked May 23 '13 19:05

Ratan Parai


4 Answers

Exit Android studio. Launch it with Administrator Privilege.
This solved the problem with Android Studio v0.1 in Windows 7.

like image 88
Jit Avatar answered Nov 15 '22 17:11

Jit


I had the same issue, I unselected the 2 files and then received the error

"ERROR: APK path is not specified for module"  

I just restarted Android Studio and reopened the project and then it worked normal again.

It is indeed a bug but there's a simple work around.

like image 28
Jonas Aarts Avatar answered Nov 15 '22 19:11

Jonas Aarts


Here's what worked for me: delete .idea/ and *.iml files, then open a project again (as gradle project) - all the idea files will be recreated - and everything works fine

like image 40
huge Avatar answered Nov 15 '22 18:11

huge


I had the same error with IntelliJ CE.

I fixed it by choosing "Inherit project compile output path" in the strong text imodule settings (Paths tab > Compiler output)

like image 28
Jokahero Avatar answered Nov 15 '22 18:11

Jokahero