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 505 forks source link

Cant build from unity #882

Open nitroman123 opened 9 months ago

nitroman123 commented 9 months ago

Describe the bug FileNotFoundException: Could not find file "C:\android\build.gradle" System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at :0) System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) (at :0) (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions) System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) (at :0) System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks) (at :0) (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string,System.Text.Encoding,bool) System.IO.File.InternalReadAllText (System.String path, System.Text.Encoding encoding) (at :0) System.IO.File.ReadAllText (System.String path) (at :0) Build.SetupAndroidProject () (at Assets/FlutterUnityIntegration/Editor/Build.cs:191) Build.DoBuildAndroid (System.String buildPath, System.Boolean isPlugin) (at Assets/FlutterUnityIntegration/Editor/Build.cs:88) Build.DoBuildAndroidLibrary () (at Assets/FlutterUnityIntegration/Editor/Build.cs:26)

To Reproduce Steps to reproduce the behavior:

Clean or not Clean project unity 2022.3.5f1

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Unity (please complete the following information):

Windowns 10 , Clean or not Clean project unity 2022.3.5f1

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

timbotimbo commented 9 months ago

Make sure your unity project is in the right directory, just like tbe example. <flutter-project-folder>/unity/<unity-project-folder>

nitroman123 commented 9 months ago

Make sure your unity project is in the right directory, just like tbe example. <flutter-project-folder>/unity/<unity-project-folder>

we fixed some issues now we have this

Script 'C:\Users\COMITECH SA\Downloads\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 427