Hello, please I need help. When i want build my project for Android, will appear errors and building is canceled. How Can I solve it?
Thank you very much.
Error:
Error building Player: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
C:\Program Files (x86)\Java\jdk1.8.0_131\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir=“D:/Android ools” -Dfile.encoding=UTF8 -jar “D:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -
If there will be errors on Android Studio, clean , rebuild, relaunch ide, delete build folder can help.
1 - This is strange. You shouldn't see this in your project. This strangely looks like the folder layout of the cache. Can you give me the path of your project? 4 - In 2017.2 or 2017.3, the package manager is not used at all. Nothing should be populated. The intention was there to enable the feature but in the end we did not had the time to introduce a proper UI.
Does anyone know if this problem is planned to be fixed anytime soon?
I have tried this fix (going through SDK Tools r25.2.5) without success…
It’s been two~three days I am trying to build my game on Android without success because of this bug, though it successfully builds on Windows and IOs…
When I apply @zakirshikhli solution I get many errors when I try to build on Android Studio, very unclear errors that I have no clue how to solve…
Eureka! I found a bypass that works: I am using SDK Tools R25.2.5 and jdk jdk1.8.0_172. I could successfully build within unity and tested my app on my phone. Keep us informed of any new version of SDK and JDK that would work. In the meantime I'll keep using these old versions.
1 - This is strange. You shouldn't see this in your project. This strangely looks like the folder layout of the cache. Can you give me the path of your project? 4 - In 2017.2 or 2017.3, the package manager is not used at all. Nothing should be populated. The intention was there to enable the feature but in the end we did not had the time to introduce a proper UI.
– okcompute_unity