i had a problem when building my unity project to apk file. during build and run all scene are build but when the time that it ask path file for sdk that had been save in my unity folder it suddenly stop building. and also i already path sdk in preferences that why i am wondering why it ask again the path of my sdk.
please help i need to deploy my project in android tablet
Okay… the problem to this is already been discussed here on the forum.
Make a search for it.
I will tell in brief what I did, so you won’t have to read all things.
Install Java for 32-bit operating systems.
And set an Enrivonment Variable as ‘JAVA_HOME’ through right-clicking ‘My Computer’.(Like setting Java ‘path’)
set the value field to your 32-bit java location.
ANd now try to build your project. If it asks for sdk location, give it once, next time it won’t ask.
It will build your project to an apk.
I did this 2 days ago.
The reason you have to have 32-bit Java is for some reason the android sdk is not compatible with 64-bit java.
I read some place that android sdk uses 32-bit java, so its not compatible to 64-bit.
But I am not sure.
The link I shared and also some Googling will show you that same problem has been faced by others and its been worked upon.
If this answer helps you, mark it as solved.