nowinandroid
nowinandroid copied to clipboard
CI fails with INSTALL_FAILED_INSUFFICIENT_STORAGE error
CI failed on API23 with the following error:
Failed to install APK(s): /Users/runner/work/nowinandroid/nowinandroid/feature/topic/build/outputs/apk/androidTest/prod/debug/topic-prod-debug-androidTest.apk INSTALL_FAILED_INSUFFICIENT_STORAGE
Context: https://github.com/android/nowinandroid/actions/runs/3302289727/jobs/5449234815
Related upstream issue: https://issuetracker.google.com/issues/255600573
so should we try to increase disk-size to 4GB by using https://github.com/ReactiveCircus/android-emulator-runner#configurations disk-size for the action we use in workflow?
looks like it's been recently increase though

As per https://b.corp.google.com/issues/255600573, the default in Android Studio is now 6G. Let's change to this value.
Still getting this issue after updating disk space to 6G: https://github.com/android/nowinandroid/actions/runs/3311589098/jobs/5522642374
according to the most upvoted answer here: https://stackoverflow.com/questions/4709137/solution-to-install-failed-insufficient-storage-error-on-android
The problem with android itself, looks like we have few options:
- Try add 'force-avd-creation: true' for preventing using cached emulator which might have two apk files for our package
- Add cli step to remove apk files :
adb shell "pm uninstall <full.packge.name>" adb shell "rm -rf /data/app/<full.package.name>-*"
@YuraLaguta Thanks for the suggestion, am trying force-avd-creation in https://github.com/android/nowinandroid/pull/375.
@dturner Seems like we don't have this issue anymore, closing.