google / jetpack-camera-app

Apache License 2.0
134 stars 26 forks source link

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

Closed Kimblebee closed 3 months ago

Kimblebee commented 3 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 3 months ago

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