Error building Player: Win32Exception: ApplicationName='java.exe', CommandLine='-Dcom.android.sdkmanager.toolsdir="C:/Program Files (x86)/Android/android-sdk\tools"
When Im trying to build the game for Android, any adviced on what should I do? install/uninstall? After I click build, a couple second then unity ask me to select android sdk folder manually, might be error on Android SDK. This the rest of error:
-classpath "C:/Program Files (x86)/Android/android-sdk\tools\lib\sdkmanager.jar" com.android.sdkmanager.Main list targets', CurrentDirectory=''
Shader is using clip instruction (usually caused by alpha test). It might cause problems on some Qualcomm/Adreno drivers. UnityEditor.HostView:OnGUI()
Answer by GianormousGames
Oct 18, 2012 at 08:03 PM
For the shader error - you're probably using a particular transparency shader that does an alpha test. All of the cutout shaders do IIRC, fyi.
The problem is this compiles into a clip instruction that causes a 100% hang/reboot-crash on some popular phones like HTC Thunderbolt. If you ignore the error you your game will run fine on 90% of the phones out there, and hang->crash->reboot on 10%.
Answer by EthanWoo
Aug 20, 2013 at 04:38 PM
If you have a problem with shader due to building adk.
Try to build Android with Texture compression : Adreon ATC that is in the build setting you won't find any more " Shader is using clip instruction (usually caused by alpha test). It might cause problems on some Qualcomm/Adreno drivers."
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
11 People are following this question.
How do I create an apk file
Problem with Android SDK..?
minSDKVersion on Android?
Android Project into Unity Project - R.layout does not recognize
Android sdk root folder