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

前端 未结 13 996
夕颜
夕颜 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 05:50

    There is a manual "how to move project" here

    I moved progect, got your problem, followed this manual, got window like you and choose "OK". And now it works very well.

    0 讨论(0)
  • 2021-02-04 05:51

    It helped me to set the right SDK... I used the one in Program Files, what did not work!

    Then i found out to use the following SDK (set in local.properties):

    sdk.dir=C:/Program Files (x86)/Android/android-studio/sdk

    Hope this helps...

    0 讨论(0)
  • 2021-02-04 05:55

    I've found that the issue is usually if you've changed or moved the folder to a different location.

    If you open up the .idea folder in AndroidStudio, have a search for any reference to the old location. If you find some, just replace with the new location. It would seem some of the lines are hardcoded.

    0 讨论(0)
  • 2021-02-04 05:56

    In my case, I imported the same project over again. Android Studio overrode the old settings. Then this error went away!

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

    Finally! Updated solution found here:

    Android APK path is not specified for module

    • Open Project structure
    • Click on Modules tab
    • Expand your project and click on Android
    • On right side click on Compiler tab
    • Looking for "APK path" field Enter your project root folder, i.e. /Users/bla/project/my.apk Click Apply and Ok
    0 讨论(0)
  • 2021-02-04 06:01

    I had the same issue and found the solution. Stackoverflow Question this is the same way to fix the error

    Also lower down in there is "SDKs" i also had to make them match. Name and Build Target. Hope it helps it did me. apparently the IntelliJ is what Android Studio is.

    0 讨论(0)
提交回复
热议问题