Unity publish help

0 votes
asked Nov 10 by nfx3ds (120 points)
Im trying to export to Android, and this error shows up.

Error:C:\Program Files (x86)\Android\android-sdk\tools is not a directory. calculated from system property com.android.sdkmanager.toolsdir
UnityEditor.HostView:OnGUI()

CommandInvokationFailure: Unable to resolve build tools directory. See the Console for more details.
C:\Program Files\Java\jdk1.8.0_144\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Program Files (x86)/Android/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Error:C:\Program Files (x86)\Android\android-sdk\tools is not a directory. calculated from system property com.android.sdkmanager.toolsdir
]
stdout[

UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
UnityEditor.HostView:OnGUI()

Error:C:\Program Files (x86)\Android\android-sdk\tools is not a directory. calculated from system property com.android.sdkmanager.toolsdir

UnityEditor.HostView:OnGUI()

CommandInvokationFailure: Unable to resolve build tools directory. See the Console for more details.
C:\Program Files\Java\jdk1.8.0_144\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Program Files (x86)/Android/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Error:C:\Program Files (x86)\Android\android-sdk\tools is not a directory. calculated from system property com.android.sdkmanager.toolsdir
]
stdout[

Error building Player: CommandInvokationFailure: Unable to resolve build tools directory. See the Console for more details.
C:\Program Files\Java\jdk1.8.0_144\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Program Files (x86)/Android/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Error:C:\Program Files (x86)\Android\android-sdk\tools is not a directory. calculated from system property com.android.sdkmanager.toolsdir
]
stdout[

]
exit code: 64

UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
UnityEditor.HostView:OnGUI()

Please log in or register to answer this question.

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...