-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unityLibrary:BuildIl2CppTask error, sudden problem #631
Comments
Is this a duplicate of your other issue 629 or is this a separate issue? |
I just noticed a build error ending with the same lines you mentioned:
In my case I forgot adding the Unity ndk to It's possible that different Il2Cpp build issues result in the same exit code, but its worth a try. |
Removing these lines inside Location: android/unityLibrary/build.gradle solved the issue Remove these lines commandLineArgs.add("--enable-debugger") commandLineArgs.add("--profiler-report") commandLineArgs.add("--profiler-output-file=" + workingDir + "/build/il2cpp_"+ abi + "" + configuration + "/il2cpp_conv.traceevents") commandLineArgs.add("--print-command-line") |
@rmib200 apply plugin: 'com.android.library' dependencies { android {
} def getSdkDir() { def BuildIl2Cpp(String workingDir, String targetDirectory, String architecture, String abi, String configuration) { android { ` |
I tried same thing removed these in unityLibrary/build.gradle but still face same error Execution failed for task ':unityLibrary:BuildIl2CppTask'.
|
Describe the bug
Until today everything was compiling, but now when I tried to build the same project I got this error message. All I did was go to Export Android insider the Flutter bar in Unity and haven't touch anything else.
Build file 'D:\Desktop2\Neurode\flutter-unity-view-widget-master\flutter-unity-view-widget-master\example\android\unityLibrary\build.gradle' line: 78
Execution failed for task ':unityLibrary:BuildIl2CppTask'.
This is my gradle file, that seems to be autogenerated:
Please, I would appreciate any help in this matter. Maybe I'm doing something wrong inside Unity? I got this warning in the Unity console:
File C:\Users\MSI.android\repositories.cfg could not be loaded.
UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions)
FlutterUnityIntegration.Editor.Build:DoBuildAndroid (string,bool) (at Assets/FlutterUnityIntegration/Editor/Build.cs:156)
FlutterUnityIntegration.Editor.Build:DoBuildAndroidLibrary () (at Assets/FlutterUnityIntegration/Editor/Build.cs:33)
Expected behavior
Compile apk without the error, like it just to do.
Screenshots
If applicable, add screenshots to help explain your problem.
Unity (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: