Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity Linux doesn't build AssetBundles for Android

Discussion in 'Linux' 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:
    1,001
    We'll investigate.
    Can you successfully build an android player?
     
  3. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    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: