You need to follow the system-requirements, and install the minimal Java-SDK (JDK) version in-order to support Android SDK development tookit (for example, did you know you can’t compile anything if you are using JDK v9 ? :) )…
- Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)
- Mac OS X 10.8.5 or later
- 64-bit distribution capable of running 32-bit applications
- GNU C Library (glibc) 2.11 or later is required.
- Tested on Ubuntu 12.04, Precise Pangolin
- JDK 6 (JRE alone is not sufficient)
- Apache Ant 1.8 or later
- Not compatible with Gnu Compiler for Java (gcj)
Note: Some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development.
- Download JDK 6.45 x64 (latest)
- Uninstall all java SDK and runtime (start from SDK, then use JavaRa and reboot your machine).I’ve used to have latest (v1.9) but Eclipse+ADT+Android SDK does compile with this version,
so this is the ‘latest’ that is supported.
- your pathes should be:
C:\Program Files\Java\jre6\binbut thats no good, some problems happens due to usage of PATHs with spaces,
so we will use its equivilent, using “old” 8.3 format.C:\PROGRA~1\Java
- Using the environment variables:
....all old PATH stuff...;...;..;C:\PROGRA~1\Java\JDK16~1.0_4\bin;