not finding android sdk (Unity)

前端 未结 11 1661
难免孤独
难免孤独 2020-12-02 05:28

Error:

Invalid command android
UnityEditor.HostView:OnGUI()

CommandInvokationFailure:

Unable to list target platforms. Ple         


        
11条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 06:15

    The issue is due to incompatibility of unity with latest Android build tools. For MacOS here's a one liner that will get it working for you:

    cd $ANDROID_HOME; rm -rf tools; wget http://dl-ssl.google.com/android/repository/tools_r25.2.5-ma‌​cosx.zip; unzip tools_r25.2.5-macosx.zip
    

提交回复
热议问题