Search Unity

Unity Cloud Build fails due to out of date Android SDK

Discussion in 'Unity Cloud Build' started by GuillaumeCL, Sep 30, 2015.

  1. GuillaumeCL

    GuillaumeCL

    Joined:
    Aug 10, 2015
    Posts:
    5
    The latest Facebook SDK 7.1.0 requires the SDK for android 6.0, but that SDK isn't installed on the cloud build servers resulting in this error:

    [Unity] Warning: [Temp/StagingArea/AndroidManifest-main.xml:24, /BUILD_PATH/bigviking.yowomo.default-android/client/Temp/StagingArea/android-libraries/facebook-android-wrapper-release/AndroidManifest.xml:3] Main manifest has but library uses targetSdkVersion='23'
    [Unity] at UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0
    [Unity] at UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0
    [Unity] at UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0
    [Unity] Error building Player: CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
    [Unity] Warning: [Temp/StagingArea/AndroidManifest-main.xml:24, /BUILD_PATH/bigviking.yowomo.default-android/client/Temp/StagingArea/android-libraries/facebook-android-wrapper-release/AndroidManifest.xml:3] Main manifest has but library uses targetSdkVersion='23'
    [Unity] Player export failed. Reason: Error building Player: CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
    [Unity] Warning: [Temp/StagingArea/AndroidManifest-main.xml:24, /BUILD_PATH/bigviking.yowomo.default-android/client/Temp/StagingArea/android-libraries/facebook-android-wrapper-release/AndroidManifest.xml:3] Main manifest has but library uses targetSdkVersion='23'
    ! build of 'default-android' failed. compile failed

    Would be really useful if that SDK could be installed so that my cloud build could stop failing.
     
    pchuri likes this.
  2. patrickc

    patrickc

    Unity Technologies

    Joined:
    Jan 23, 2015
    Posts:
    67
    We'll look into this. Thanks.

    Cheers,
    Patrick
     
  3. poolts

    poolts

    Joined:
    Aug 9, 2012
    Posts:
    110
    I'm also experiencing the same issue. Is there any ETA on when Unity will be updating the java sdks on UCB? It's effectively stopped all my iOS builds from completing on UCB.
     
  4. kimbler

    kimbler

    Joined:
    Aug 21, 2014
    Posts:
    6
    Yes, we can't build Android at the moment. Please update asap.
     
    urban2000 likes this.
  5. patrickc

    patrickc

    Unity Technologies

    Joined:
    Jan 23, 2015
    Posts:
    67
    We're getting close with Android 6.0 SDK support. It's been a bit more complicated than expected. Thanks for your patience.

    Cheers,
    Patrick
     
  6. dimitroff

    dimitroff

    Joined:
    Apr 3, 2013
    Posts:
    103
    Any news on supporting Android 6.0?
     
  7. patrickc

    patrickc

    Unity Technologies

    Joined:
    Jan 23, 2015
    Posts:
    67
    Cloud Build supports Android SDK up through 23 (aka Android 6.0, Marshmallow). We're working on NDK support in for IL2CPP Android Build.

    Cheers,
    Patrick
     
  8. dimitroff

    dimitroff

    Joined:
    Apr 3, 2013
    Posts:
    103
    I can confirm, that the new Facebook SDK compiles find with Cloud Build now.
     
    poolts likes this.
unityunity