react-native-unity icon indicating copy to clipboard operation
react-native-unity copied to clipboard

Build failed with an exception

Open GangaBS99 opened this issue 1 year ago • 4 comments

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

GangaBS99 avatar May 06 '23 18:05 GangaBS99

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).

Luluno01 avatar May 08 '23 08:05 Luluno01

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

SaadSFS avatar Nov 29 '23 07:11 SaadSFS

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.

Luluno01 avatar Nov 30 '23 12:11 Luluno01

Same error here. Any fix on this?

iamalinski avatar Mar 25 '24 07:03 iamalinski