androidintellij-ideaandroid-studiobuilding

Android APK path is not specified for module


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 APK path is not specified for module "Example-Example" but that no give me result. Any more ideas?


Solution

    1. Open Project structure
    2. Click on Modules tab
    3. Expand your project and click on Android
    4. On right side click on Packaging tab (Compiler on older versions of Android Studio)
    5. Look for APK path field
    6. Click on ... and choose your project root folder (that contains bin/gen/res/ folders)
    7. Copy path into your clipboard
    8. Close choose path dialog
    9. Paste copied path into APK path field
    10. Add to path text \bin
    11. Click Apply and OK

    In the end you must have a path:

    D:\<path to your project root>\bin

    Try to build your project

    Note: For Android Studio use this answer