APK path is not specified for module “Example-Example”

前端 未结 13 998
夕颜
夕颜 2021-02-04 05:18

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

相关标签:
13条回答
  • 2021-02-04 06:02

    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

    0 讨论(0)
  • 2021-02-04 06:07

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

    0 讨论(0)
  • 2021-02-04 06:08

    I find this:

    http://www.chrisdew.com/blog/2013/07/17/android-studio-nosuchmethoderror-lazystringarraylist/

    it is realy help for me.

    Thus, in my case, the problem was to have two libraries:

    protobuf-2.4.1.jar and new protobuf-2.5.0.jar

    it resulted error:

    APK path is not specified for module “Example-Example”

    To correct this, rename file protobuf-2.4.1.jar to protobuf-2.4.1.jar.disabled

    mv protobuf-2.4.1.jar protobuf-2.4.1.jar.disabled

    0 讨论(0)
  • 2021-02-04 06:12

    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)

    0 讨论(0)
  • 2021-02-04 06:16

    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.

    0 讨论(0)
  • 2021-02-04 06:16

    this happened when i update to 2.0. i had to change the dependencies in the build.gradle file under src dir not gradle dir. change from

    dependencies {
    classpath 'com.android.tools.build:gradle:0.4.0'
    }
    

    to

    dependencies {
    classpath 'com.android.tools.build:gradle:0.5.+'
    }
    
    0 讨论(0)
提交回复
热议问题