2

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.

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
Vincent
  • 47
  • 1
  • 7

2 Answers2

6

Run ./gradlew assembleAndroidTest gradle task and it should be created in outputs directory, but it gets ereased on every project clean

Lubos Horacek
  • 1,562
  • 10
  • 28
1

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.

Community
  • 1
  • 1
Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142