Android APK path is not specified for module

后端 未结 5 2417
灰色年华
灰色年华 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条回答
  •  旧时难觅i
    2021-01-31 21:45

    Note - I had same issue here, It seems intellij caches a lot of stuff. All my settings were right in the UI but I had renamed the .iml file using the refactor feature because of a spelling error. it left a dangling reference to the old module spelling in the .idea/modules file with along with the new one it created and did not update the build path (cached?) I had to invalidate the caches, hand edit the ,idea/modules.xml file to delete the entries ( all of them to be safe with intellij closed ) then restarted intellij and re-imported the .iml files.

    I also re-booted the android device.

    Probably overkill but this solved the problem in my case.

提交回复
热议问题