react-native-unity
react-native-unity copied to clipboard
` Build failed with an exception` when I build for android
Hi, I would like to integrate a unity scene in an android application, developed with RN.
Problem: I followed the steps for android and when launching yarn android.
Result:

Additional info: Same issue when I build with android studio directly.
Thank you in advance.
Hi there, I am also unable to make an android build. The build gets failed with the following error:
A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction 2 files found with path 'META-INF/androidx.core_core.version' from inputs: - /Users/thexdd/.gradle/caches/transforms-3/c7a27c777039b4c0b459e61365c89d71/transformed/core-1.5.0/jars/classes.jar - /Users/thexdd/.gradle/caches/transforms-3/6d7ff1427d8f8a710cdd577d8122fe54/transformed/jetified-androidx.core.core-1.0.0/jars/classes.jar Adding a packagingOptions block may help, please refer to https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html for more information 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.
Have you looked at how the example is set up? There is a fully working example
Have you looked at how the example is set up? There is a fully working example
This is what I get when trying to build the example.
This example: https://github.com/azesmway/react-native-unity/tree/main/example
Has only sources!!!
You have to build a Unity project and put it as indicated in the documentation - in the unity/builds/android folder (if android version)
This example: https://github.com/azesmway/react-native-unity/tree/main/example Has only sources!!! You have to build a Unity project and put it as indicated in the documentation - in the
unity/builds/androidfolder (if android version)
Hi, thanks for the reply! Indeed, I forgot to make the unity build. Now it works. Thanks!