juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.09k stars 504 forks source link

"Could not run phased build action.." Error #944

Closed JM3214 closed 2 months ago

JM3214 commented 2 months ago

I'm playing around with this for the first time - I've cloned the repo into VS Code., and I'm getting the following 2 errors:

Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-8.1.1-bin.zip'.
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'android'.
A problem occurred configuring root project 'android'.
A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreationException: Could not create task ':app:copyFlutterAssetsDebug'.
Could not create task ':app:copyFlutterAssetsDebug'.
Could not create task ':app:mergeDebugAssets'.
Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.4-all.zip'.
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'flutter_unity_widget'.
A problem occurred configuring root project 'flutter_unity_widget'.
A problem occurred evaluating root project 'flutter_unity_widget'.
Project with path ':unityLibrary' could not be found in root project 'flutter_unity_widget'.

I've tried uninstalling all Java VS Code extensions. Uninstalling and reinstalling VS Code. Cloning the project into difference files. Downloading the latest gradle, Opening just the example file. Still get the same error. I've gone through the tutorial as good as a I can. Hoping for another idea?

Thanks