On how to build an app for Android devices. The tutorial was going fine up until I got to the part where you download and install the SDK tools
It says in the tutorial to download:
Download the Android SDK Tools (also referred to on the site as “the command line tools”), rather than the full download of Android Studio.
Which I did, only when I open up the folder and double click on the "Android: file
I do NOT get the pop up window they say I should all I get instead is a terminal window that reads an error?
Can someone please help me out as to why this is happening? I followed every step exactly as the tutorial laid out, the project file downloaded and installed just fine but just getting nowhere with the SDK tool
I even tried downloading Android studio and in unity pointing the external tools folder address to the SDK address in Android studio:
/Users/michaelknight/Library/Android/sdk
And it tells me in the unity console that it’s wrong!! WTF??
ommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/michaelknight/Library/Android/sdk/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -
stderr[
Error:Invalid command android
]
stdout[
]
exit code: 64
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.HostView:OnGUI()
And
Error building Player: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/michaelknight/Library/Android/sdk/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -
stderr[
Error:Invalid command android
]
stdout[
]
exit code: 64
Over 30 people have viewed this post and no-one has an answer???What am I doing wrong?
Why can’t I get this to work?