Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Using unity 4.7.2 with latest android SDK problem.

Discussion in 'Android' started by dijital, Jun 21, 2017.

  1. dijital

    dijital

    Joined:
    Apr 28, 2010
    Posts:
    232
    Hi all,

    I am getting the following error when i try to compile my game with the latest android sdk.

    Code (CSharp):
    1.     Error building Player: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
    2.     C:/Program Files/Java/jdk1.8.0_131\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/XXXXXXXXX/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files (x86)/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -
    3.    
    4.     stderr[
    5.     Error:Invalid command android
    6.     ]
    7.     stdout[
    8.    
    9.     ]
    10.  
    Im not sure but I think there was something about folders changing location on later versions of the sdk, can anybody help me out here, any help would be appreciated.

    Thanks,
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562