I am having a problem that I cannot solve using UNITY 4. I need your help:
I cannot compile for android, I obtain this window:
"No platforms found Android SDK does not include any platforms ! Did you run Android SDK setup to install the platform(s). Minimum platform required for build is Android 4.0 (API level 14)".
I have tried to solve like this without luck:
Download the SDK Tools for Windows
Execute the installer as administrator. It checks for the jdk (it says it found it: 1.6)
Double click in the Android SDK Manager as administrator. Install all the platforms, tools, starting from 3.0. Checking Android SDK Manager I do see all installed
In Unity: Change the preferences to select the location of the android sdk: C:\Program Files (x86)\Android\android-sdk (IN FACT, the preferences propose android-sdk-windows, but I only find android-sdk)
Add to the environment variable “Path”:
C:\Program Files (x86)\Android\android-sdk\platform-tools;
C:\Program Files (x86)\Android\android-sdk\tools
Restart the computer
Open unity4 as admin
Restart the computer… and the error is always there…
My PC is Quad CPU 2.5G, RAM 4Go, 64 bits in windows vista.
Thank you very much… any help will be appreciated.
I have removed all the java stuff (jre and jdk) and re-installed re-installed jre et jdk 6 (update 37). I refetched/reload android platforms with the sdk mananger that I launched as an admin.
Same problem… am I missing something ? do I need to execute something else or change/modify “another” environment variable ?
help
just if this helps:
a) Each time I launch the android compilation, I get ‘quite always’ the message “Moving file failed” Moving Temp/StagingArea/Data to Temp/StagingArea/assets/bin/Data… that I solve by clicking in “Try again”
b) just before the error I have also another error in the log console of unity saying:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I always experience problems when trying to install the android sdk. Too bad its hard to find the cause.
Only thing I can think of is, make sure the android sdk, jre, and jdk are all 32 bit (and use java 6). (Though it looks like that may already be the case, so I dont know)
Thanks a lot !! Right ! that was the problem, but not only.
In fact, I think I tried everything, even putting java 6 then java 7 and viceversa… nothing seemed to work until … now I will explain:
I am using Vista 64, and I was downloading for java for 64 bits. OK until here.
but the path to java.exe was bad, still pointing to the 32 bits version … the one in Program Files (x86) (I did that long time ago since I am still using mozilla 32 bits).
I changed the value of the environment variable (PATH) to the 64 bits distribution: Something like this:
Notice that the previous path pointed to Program Files (x86), so 32 bits.
I turned off the computer (just in case)
I removed the Android installation. And installed it again… and this time I’ve got an error before installing Android because it said that it couldn’t find java.exe. So to fix that:
Copy c:\windows\system32\java.exe to c:\windows\syswow64
Set JAVA_HOME to path, use / instead of \
This thread is old, but we have received support tickets related to the “No Platforms Found” error. For that reason I’m adding here a few trouble shooting steps:
Uninstall the current Android SDK and make sure that you don’t have any more copies of it.
Update Java with an stable version. Bear in mind the latest version shouldn’t have conflicts, but users have experienced problems in the past.
It’s a known issue with the jvm on windows. As of 4.1 we added a workaround for this problem - basically reducing the heap allocation until the jvm fits in memory That said, if someone is still seeing this message after upgrading to 4.1 please file a bug, or post your current setup in this thread.
I have tried the exact steps below, but still having the same problem. I am currently running windows 8 x64 edition. I have the Java v7u21 for 64bit installed. Alongwith that I have installed the sdk for the latest android version (v17).
In Unity, when selecting android sdk, prompt window asks me to search for “android-sdk-windows” folder. While, I have android api installed at "C:\Program Files (x86)\Android\android-sdk\platforms\android-17. I have tried to select both android-sdk, and android-17 folder instead and received the similar error. Kindly do let me know what other troubleshooting methods I can use.
P.S. I have a very slow internet connection, so downloading and reinstalling Unity will be very difficult for me.
jitendragarg, what version of Unity are you running? Do you see this error in the console?
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
If you are not running 4.1, then I would suggest upgrading. If you still don’t want to do that due to slow internet connection, try installing a 32bit version of the JVM - I’m not sure if that helps, but you can always try.
I am working on Unity4. Here is the error mentioned in console.
“Exception in thread “main” java.lang.NullPointerException
at SDKMain.main(SDKMain.java:62)”
Apart from this, there is the no platform found error. Someone on stackoverflow suggested using x86 edition of JDK instead of x64 one. Tried that too, same result. I will try updating Unity to 4.1 too. Let’s hope that works.
“Exception in thread “main” java.lang.NullPointerException
at SDKMain.main(SDKMain.java:62)”
is a different error than what was previously discussed in this thread
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
The error you see is most likely due to 4.0 being incompatible with the latest Android SDK (r22). The options you have are either upgrading Unity to at least 4.1.4, or you can downgrade your SDK.
Sorry for the delayed response. Took me a day to download the unity setup. And yes, you were right. It was the compatibility issue. Latest Unity version worked well.
Although I am not sure, if it is using x64 or x86 edition of JDK. Also, I have both Android 4.0 and android 2.3 platforms. I guess, 2.3 is just not supported with Unity either. Sadly, I am currently using 2.3 on my phone so, I have another problem to deal with, now. Till then, I guess, virtual device will suffice.