android-emulator-runner icon indicating copy to clipboard operation
android-emulator-runner copied to clipboard

INSTALL_FAILED_INSUFFICIENT_STORAGE

Open AaronMT opened this issue 2 years ago • 5 comments

Hello,

API level: 28
target: google_apis
CPU architecture: x86_64
Hardware profile: pixel_3a
Cores: 2
RAM size: 
SD card path or size: 3072M
AVD name: test
force avd creation: true
emulator options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
disable animations: true
disable spellchecker: false
disable Linux hardware acceleration: true

Despite setting sdcard-path-or-size, I still seem to be getting INSTALL_FAILED_INSUFFICIENT_STORAGE

com.android.build.gradle.internal.testing.ConnectedDevice > runTests[test(AVD) - 9] FAILED 
	com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_INSUFFICIENT_STORAGE
		at com.android.build.gradle.internal.testing.ConnectedDevice.installPackage(ConnectedDevice.java:133)
java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_INSUFFICIENT_STORAGE
	at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
	at com.android.ide.common.workers.ExecutorServiceAdapter.await(ExecutorServiceAdapter.kt:53)
	at com.android.build.gradle.internal.testing.BaseTestRunner.runTests(BaseTestRunner.java:199)
	at com.android.build.gradle.internal.tasks.DeviceProviderInstrumentTestTask.lambda$doTaskAction$2(DeviceProviderInstrumentTestTask.java:340)
	at com.android.builder.testing.api.DeviceProvider.use(DeviceProvider.java:53)

What am I missing here in regards to setting sdcard-path-or-size?

AaronMT avatar Aug 23 '21 15:08 AaronMT

What is the default disk.dataPartition.size for this AVD? Are we able to change this?

AaronMT avatar Aug 23 '21 19:08 AaronMT

Same problem here 😕

efraespada avatar Sep 08 '21 19:09 efraespada

I suggest everyone who stumbles upon this ticket to try out the newest test device images supported by the latest release of this action (see 2.21.0)

It worked for me; I'm not getting this error while running my UI tests anymore! :tada:

agap avatar Nov 14 '21 11:11 agap

Still seeing this on v2.21.0 unfortunately (e.g, https://github.com/mozilla-mobile/fenix/runs/4433056839?check_suite_focus=true)

AaronMT avatar Dec 06 '21 16:12 AaronMT

@AaronMT , @efraespada , check the workaround I mentioned in #219

ViliusSutkus89 avatar Feb 01 '22 17:02 ViliusSutkus89

Closing per https://github.com/ReactiveCircus/android-emulator-runner/pull/219

mrk-han avatar Nov 02 '22 04:11 mrk-han