google / jetpack-camera-app

Apache License 2.0
152 stars 29 forks source link

Pixel 8 API 28 emulator failing to create snapshot image #232

Closed Kimblebee closed 5 months ago

Kimblebee commented 5 months ago

Task failures occurring on multiple PR's where Pixel 8 device emulator is failing to open

Failed to create Emulator snapshot image (1/5). Error: com.android.build.gradle.internal.AvdSnapshotHandler$EmulatorSnapshotCannotCreatedException: Gradle was not able to complete device setup for: dev34_aosp_atd_x86_64_Pixel_8
The emulator failed to open the managed device to generate the snapshot.
This is because the emulator closed unexpectedly (1),
try updating the emulator and ensure a device can be run from Android Studio.
Failed to create Emulator snapshot image (2/5). Error: com.android.build.gradle.internal.AvdSnapshotHandler$EmulatorSnapshotCannotCreatedException: Gradle was not able to complete device setup for: dev34_aosp_atd_x86_64_Pixel_8
The emulator failed to open the managed device to generate the snapshot.
This is because the emulator closed unexpectedly (1),
try updating the emulator and ensure a device can be run from Android Studio.
Failed to create Emulator snapshot image (3/5). Error: com.android.build.gradle.internal.AvdSnapshotHandler$EmulatorSnapshotCannotCreatedException: Gradle was not able to complete device setup for: dev34_aosp_atd_x86_64_Pixel_8
The emulator failed to open the managed device to generate the snapshot.
This is because the emulator closed unexpectedly (1),
try updating the emulator and ensure a device can be run from Android Studio.

currently affected PRs: #134 #215 #231

temcguir commented 5 months ago

Issue was fixed by updating AGP and the runner to a larger runner (more cores + memory).