You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue when building an android test app via the Detox testing framework.
It looks like you're using Java 8 features without enabling the desugaring:
* What went wrong:
Execution failed for task ':react-native-ux-cam:mergeExtDexDebugAndroidTest'.
> Could not resolve all files for configuration ':react-native-ux-cam:debugAndroidTestRuntimeClasspath'.
> Failed to transform file 'uxcam.jar' to match attributes {artifactType=android-dex, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.usage=java-runtime-jars}
> Execution failed for DexingTransform: /Users/me/my-app/node_modules/react-native-ux-cam/android/libs/uxcam.jar.
> Error while dexing.
The dependency contains Java 8 bytecode. Please enable desugaring by adding the following to build.gradle
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
See https://developer.android.com/studio/write/java8-support.html for details. Alternatively, increase the minSdkVersion to 26 or above.
Hey @antpuleo2586, thanks for letting us know about the issue. I've already sent it to our developers and I will come back to you as soon as I hear back from them.
hey again @antpuleo2586! I just wanted to let you know that this issue has been resolved with the latest release. Please, make sure to do a version update and verify if it helped. Thanks!
I'm having an issue when building an android test app via the Detox testing framework.
It looks like you're using Java 8 features without enabling the desugaring:
If I patch your build.gradle file with:
then everything works.
Any chance this could be updated in the repo? I can open a PR if you want?
Cheers
Ant
The text was updated successfully, but these errors were encountered: