react-native-unity-view
react-native-unity-view copied to clipboard
Project with path ':unityLibrary' could not be found in project ':UnityExport'.
Hi everyone,
I've got this error when trying to run-android project.
-
Where: Build file 'C:\xxxx\Project\ProjectName\android\UnityExport\build.gradle' line: 20
-
What went wrong: A problem occurred evaluating project ':UnityExport'.
Project with path ':unityLibrary' could not be found in project ':UnityExport'.
Any ideas?
build.gradle of UnityExport :
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
allprojects { buildscript { repositories { google() jcenter() }
dependencies {
classpath 'com.android.tools.build:gradle:3.6.0'
}
}
repositories {
google()
jcenter()
flatDir {
dirs "${project(':unityLibrary').projectDir}/libs"
}
}
}
task clean(type: Delete) { delete rootProject.buildDir }
I guess this could be related to settings.gradle in export so im providing you that one too.
include ':launcher',':unityLibrary'
I got the same error! Did you fix it?
I do not know if this is correct, but this code fixed the problem and Unity works now inside RN:
afterEvaluate {
if (project(':UnityExport').tasks.findByName('mergeDebugJniLibFolders'))
project(':UnityExport').mergeDebugJniLibFolders.dependsOn BuildIl2CppTask
if (project(':UnityExport').tasks.findByName('mergeReleaseJniLibFolders'))
project(':UnityExport').mergeReleaseJniLibFolders.dependsOn BuildIl2CppTask
}
(replace :unityLibrary to :UnityExport)
I do not know if this is correct, but this code fixed the problem and Unity works now inside RN:
afterEvaluate { if (project(':UnityExport').tasks.findByName('mergeDebugJniLibFolders')) project(':UnityExport').mergeDebugJniLibFolders.dependsOn BuildIl2CppTask if (project(':UnityExport').tasks.findByName('mergeReleaseJniLibFolders')) project(':UnityExport').mergeReleaseJniLibFolders.dependsOn BuildIl2CppTask }
(replace :unityLibrary to :UnityExport)
Where do i need to copy past this code ?
I do not know if this is correct, but this code fixed the problem and Unity works now inside RN:
afterEvaluate { if (project(':UnityExport').tasks.findByName('mergeDebugJniLibFolders')) project(':UnityExport').mergeDebugJniLibFolders.dependsOn BuildIl2CppTask if (project(':UnityExport').tasks.findByName('mergeReleaseJniLibFolders')) project(':UnityExport').mergeReleaseJniLibFolders.dependsOn BuildIl2CppTask }
(replace :unityLibrary to :UnityExport)
Where do i need to copy past this code ?
In file android/UnityExport/build.gradle
Hi everyone,
I've got this error when trying to run-android project.
- Where: Build file 'C:\xxxx\Project\ProjectName\android\UnityExport\build.gradle' line: 20
- What went wrong: A problem occurred evaluating project ':UnityExport'.
Project with path ':unityLibrary' could not be found in project ':UnityExport'.
Any ideas?
build.gradle of UnityExport :
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
allprojects { buildscript { repositories { google() jcenter() }
dependencies { classpath 'com.android.tools.build:gradle:3.6.0' } } repositories { google() jcenter() flatDir { dirs "${project(':unityLibrary').projectDir}/libs" } }
}
task clean(type: Delete) { delete rootProject.buildDir }
I guess this could be related to settings.gradle in export so im providing you that one too.
include ':launcher',':unityLibrary'
did you find any solution on this
A problem occurred evaluating project ':UnityExport'.
Project with path ':unityLibrary' could not be found in project ':UnityExport'.
I am facing the same issue .did anyone have solution on this issue
Hi,
When i change :UnityLibrary by :UnityExport i've go this error :
> What went wrong: Execution failed for task ':UnityExport:BuildIl2CppTask'.
A problem occurred starting process 'command '/Users/xxxxx/Desktop/xxxx/xxxx-react-native-cli/app/android/UnityExport/src/main/Il2CppOutputProject/IL2CPP/build/deploy/netcoreapp3.1/il2cpp.exe''`
Do you have a solution ?
Hi, When i change :UnityLibrary by :UnityExport i've go this error :
> What went wrong: Execution failed for task ':UnityExport:BuildIl2CppTask'.
A problem occurred starting process 'command '/Users/xxxxx/Desktop/xxxx/xxxx-react-native-cli/app/android/UnityExport/src/main/Il2CppOutputProject/IL2CPP/build/deploy/netcoreapp3.1/il2cpp.exe''`
Do you have a solution ?
Hey did you find any solution on this?
Hi everyone,
I've got this error when trying to run-android project.
- Where: Build file 'C:\xxxx\Project\ProjectName\android\UnityExport\build.gradle' line: 20
- What went wrong: A problem occurred evaluating project ':UnityExport'.
Project with path ':unityLibrary' could not be found in project ':UnityExport'.
Any ideas?
build.gradle of UnityExport :
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
allprojects { buildscript { repositories { google() jcenter() }
dependencies { classpath 'com.android.tools.build:gradle:3.6.0' } } repositories { google() jcenter() flatDir { dirs "${project(':unityLibrary').projectDir}/libs" } }
}
task clean(type: Delete) { delete rootProject.buildDir }
I guess this could be related to settings.gradle in export so im providing you that one too.
include ':launcher',':unityLibrary'
Hi, did you find any solution?