Closed jjaine closed 11 months ago
Facing the same issue when running this command for first time in fresh install of project:
unity-editor \
-batchmode \
-nographics \
-logFile \
-quit \
-projectPath <path> \
-executeMethod <buildscriptInvoke>
Rerunning the command again fixes it.
I had the same issue but was able to get around it by applying some EditorPrefs settings in my build script:
EditorPrefs.SetBool("JdkUseEmbedded", true);
EditorPrefs.SetBool("NdkUseEmbedded", true);
EditorPrefs.SetBool("SdkUseEmbedded", true);
EditorPrefs.SetBool("GradleUseEmbedded", true);
EditorPrefs.SetBool("AndroidGradleStopDaemonsOnExit", true);
(all of these are probably not related with the current issue - but at least "NdkUseEmbedded")
@JakobAnarkyLabs thanks for saving me from tearing out the last few hair strands I have left.
Hi @JakobAnarkyLabs I was checking the official documentation of Unity related with Burst. And I've read the next:
If compiling for a non desktop platform, or you have disabled cross compilation support, then Burst compilation requires specific platform compilation tools (similar to IL2CPP), the below table can be used to determine the current level of support for AOT compilation.
If a host/target combination is not listed, it is at present not supported for Burst compilation. If a target is not valid (missing tools/unsupported), Burst compilation will not be used (may fail), but the target will still be built without Burst optimisations.
So my question is: How are you be able to compile Burst (linux + android)? According with that table that combination is not possible.
The unity documentation can be found here: https://docs.unity3d.com/Packages/com.unity.burst@1.6/manual/docs/StandalonePlayerSupport.html
Thanks!
Hi @lordaku
Yes, you are probably right about Burst (that it can't currently be compiled for Android on a Linux machine) - at least, that is what the documentation seems to suggest. I didn't notice that @jjaine was having this issue on a Linux machine - I just saw that the error message was the same as the one I got (on my Windows machine). So I guess that it is not really correct that I had the same issue as @jjaine (though maybe the same as @r4ravi2008 ...) but rather a related on Windows. Sorry about that.
Android images on windows are now released with v3 images! This should allow burst compilation
Bug description
I'm using the
ubuntu-2021.3.2f1-android-1.0.1
image to build the project. However the build fails with the messageThis problem arised when I updated from
ubuntu-2020.3.30f1-android-0.15.0
toubuntu-2021.3.2f1-android-1.0.1
. If I disable Burst compilation for Android, then the build seems to work.How to reproduce
unity-editor -quit -batchmode -executeMethod Build.AndroidBuild -apkName "$APK_NAME" -logFile -
on Bitbucket Pipelines.Expected behavior
Additional details The packages I have installed are