It seems like building AssetBundles for Android is broken in Unity Linux. When I call BuildPipeline.BuildAssetBundles with BuildTarget set to BuildTarget.Android Unity doesn’t generate any files for my project, just silently skips building. if I set to BuildTarget.StandaloneWindows I get the bundles successfully. Building with BuildTarget.Android under Windows works fine for the project. I tried to install jdk7 as noticed in Unity Linux build description but it doesn’t help. My Linux OS is ubuntu-trusty-64
We’ll investigate.
Can you successfully build an android player?
Just verified that it’s working here - if android player build is working on your setup, I’d like your project and reproduction steps.
This is the test case for building asset bundle for Android platform. I had to put it into Ubuntu VM (using Vagrant) for repeatability, because, for instance, on my desktop OpenSUSE 13.2 everything is working. Perhaps, the problem is in a headless linux installation, i’ve understood that after trying to build player on headless setup (and I didn’t try it before because on a headless server I only need to build asset bundles). So at the same time i have made test for building player also. Details are in README file. Hope, it can help.
2349580–159073–unity3d_ubuntu_bug.7z (35.9 KB)