Search Unity

Problems with Build and Run

Discussion in 'Linux' started by BenedictH, Jan 6, 2017.

  1. BenedictH

    BenedictH

    Joined:
    Oct 23, 2012
    Posts:
    1
    On Kubuntu Neon. Working well with everything else. Just problems with the Build and Run for Android. Android installed, and path (Edit/Preferences/External Tools): Android
    SDK: (tried both) /usr/lib/android-sdk and /home/cza/Android/Sdk
    JDK: /usr/lib/jvm/java-8-oracle

    When Build and Run:
    Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.

    Console:
    CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
    /usr/lib/jvm/java-8-oracle/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/usr/lib/android-sdk/tools" -Dfile.encoding=UTF8 -jar "/opt/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -

    stderr[
    Error:Invalid command android
    ]
    stdout[

    ]
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    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)
    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)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

    /usr/lib/jvm/java-8-oracle/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/usr/lib/android-sdk/tools" -Dfile.encoding=UTF8 -jar "/opt/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -

    stderr[
    Error:Invalid command android
    ]
    stdout[

    ]

    Any ideas?
     
  2. Nabren

    Nabren

    Joined:
    Mar 7, 2014
    Posts:
    61
    Android SDK recently deprecated the android command. I am looking into alternatives or to see if Unity has a fix for this yet. Will update if I found out anything!
     
  3. pavva94

    pavva94

    Joined:
    Feb 18, 2016
    Posts:
    2