flutter-unity-view-widget icon indicating copy to clipboard operation
flutter-unity-view-widget copied to clipboard

Cant build from unity

Open nitroman123 opened this issue 2 years ago • 2 comments

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

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

nitroman123 avatar Sep 25 '23 07:09 nitroman123

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

timbotimbo avatar Sep 25 '23 07:09 timbotimbo

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

  • What went wrong: A problem occurred configuring project ':flutter_plugin_android_lifecycle'.

Failed to notify project evaluation listener. Could not get unknown property 'android' for project ':flutter_plugin_android_lifecycle' of type org.gradle.api.Project. Could not get unknown property 'android' for project ':flutter_plugin_android_lifecycle' of type org.gradle.api.Project.

nitroman123 avatar Sep 26 '23 07:09 nitroman123