pedrovgs / Shot

Screenshot testing library for Android
Apache License 2.0
1.19k stars 116 forks source link

Shot build fails locally on M1 with JDK 17 #287

Open yschimke opened 2 years ago

yschimke commented 2 years ago

Expected behaviour

$ ./gradlew :shot-android:assembleDebug, :shot-android:assembleDebugAndroidTest

Works

Actual behaviour

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shot-android:mergeDebugAndroidTestResources'.
> Multiple task action failures occurred:
   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      > AAPT2 aapt2-4.1.3-6503028-osx Daemon #1: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.

Steps to reproduce

Run on Macbook Air or similar with M1

Version of the library

Current master - 3d9e0ee3deb5e0478ca746a74af8bf128bb4254e

vyguera commented 2 years ago

PR https://github.com/pedrovgs/Shot/pull/292 provides support for this