outsung / expo-dynamic-app-icon

🤖 Programmatically change the app icon in Expo.
106 stars 23 forks source link

Gradle build fails for android because of this package (works fine on iOS) #22

Open Elue-dev opened 7 months ago

Elue-dev commented 7 months ago

My expo app always fails to build and i get this error:

Execution failed for task ':expo-dynamic-app-icon:compileReleaseKotlin'.
> 'compileReleaseJavaWithJavac' task (current target is 17) and 'compileReleaseKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version.
  Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 7m 45s
927 actionable tasks: 927 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

building on iOS works fine, issue only happens on android.

castdrian commented 7 months ago

Use https://github.com/outsung/expo-dynamic-app-icon/pull/18

PerezCodeT commented 5 months ago

I have the same error. I'm using Expo 50 🫤