Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Unity Linux doesn't build AssetBundles for Android

Discussion in 'Linux Editor' started by opticoder, Oct 19, 2015.

  1. opticoder

    opticoder

    Joined:
    Aug 22, 2015
    Posts:
    2
    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
     
  2. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    962
    We'll investigate.
    Can you successfully build an android player?
     
  3. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    962
    Just verified that it's working here - if android player build is working on your setup, I'd like your project and reproduction steps.
     
  4. opticoder

    opticoder

    Joined:
    Aug 22, 2015
    Posts:
    2
    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.
     

    Attached Files: