Search code examples
androidandroid-studiosdkunsignedsigned

how to generate app-androidTest-unaligned.apk


This afternoon i update my sdk,then i ran my app just as usual,i got an error like this.

${dir}\[appname]-debug-androidTest-unaligned.apk does not exist on disk

i try to build and clean the project,but no use.I use android-studio.


Solution

  • Go to your project folder. Open ProjectName folder.

    In file Your_Project_name.iml

    Add if not OR check path

    <option name="APK_PATH" value="/build/apk/your_app_name-debug-unaligned.apk" />
    

    Or

    <option name="APK_PATH" value="/build/outputs/apk/your_app_name-debug-unaligned.apk"/>
    

    check this answer for more information.