Android APK path is not specified for module

后端 未结 5 2404
灰色年华
灰色年华 2021-01-31 21:18

I have a problem. When i try to launch my project i\'ve got error :

\"ERROR: APK path is not specified for module\"  

I follow to this answer A

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-31 21:36

    Could not use the accepted answer in my Android Studio (0.6.1) because I couldn't find the "Compiler" tab. I suppose that this structure is for Intelij. Nevertheless, it pointed me to the right solution:

    My Project included some LIB modules besides the main APK module and by setting all modules to use the same Compiler output directory fixed the error. In order to do so you just need to follow these steps:

    1. Open Project structure (F4 on one of the modules in the project explorer)
    2. Click on Project tab on the left
    3. Define "Project compiler output:" as YOUR_PROJECT_PATH\out (or any folder you want)
    4. Click on Modules tab on the left
    5. Go over all your modules and verify that under the Paths tab the Compiler output is set to "Inherit project compile output path"
    6. Thats it...

提交回复
热议问题