react-native-unity
react-native-unity copied to clipboard
Build failed with an exception
hi @azesmway , while running the react-native it showing as build failed. can you say what is the issue
FAILURE: Build failed with an exception.
- What went wrong: Could not determine the dependencies of task ':azesmway_react-native-unity:compileDebugAidl'.
Could not resolve all task dependencies for configuration ':azesmway_react-native-unity:debugCompileClasspath'. Could not resolve project :unityLibrary. Required by: project :azesmway_react-native-unity > No matching configuration of project :unityLibrary was found. The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1' but:
- None of the consumable configurations have attributes.
- 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
According to my personal experience, the cause is either you forgot to define, or have not yet defined, the project :unityLibrary
(step 2), or the Unity Android project folder (<path-to-exported-unity-android-project>/unityLibrary
) does not exist in your build environment (e.g., the exported Unity Android project folder is ignored unintentionally).
According to my personal experience, the cause is either you forgot to define, or have not yet defined, the project
:unityLibrary
(step 2), or the Unity Android project folder (<path-to-exported-unity-android-project>/unityLibrary
) does not exist in your build environment (e.g., the exported Unity Android project folder is ignored unintentionally).
I have done with path, but still i got error and build failled
According to my personal experience, the cause is either you forgot to define, or have not yet defined, the project
:unityLibrary
(step 2), or the Unity Android project folder (<path-to-exported-unity-android-project>/unityLibrary
) does not exist in your build environment (e.g., the exported Unity Android project folder is ignored unintentionally).I have done with path, but still i got error and build failled
Which error? According to your comments in #51, the error you have is different from this "Could not resolve project :unityLibrary" error.
Same error here. Any fix on this?