Hi, I know many people don't like Linux, and some of them don't have OSX machine, so how to compile JUCE-Android project on Windows is their desires. I found an easy way to accomplish it. If this little tip could help you, it'll be my pleasure.
1. Setup Compile Envionment On Windows (7)
1.1 Download and install/unzip JDK, Android SDK, NDK to your local disk. For example, SDK and NDK locate in (you may change the bold texts to adapt your situation):
C:\Users\yourLoginName\SDKs\android-sdk
C:\Users\yourLoginName\SDKs\android-ndk
1.2 Add envionment variables to Windows. For example:
PATH: %JAVA_HOME%\bin;C:\Users\yourLoginName\SDKs\ant\bin;C:\Users\yourLoginName\SDKs\android-sdk\tools;C:\Users\yourLoginName\SDKs\android-ndk;C:\Users\yourLoginName\SDKs\android-ndk\toolchains\arm-linux-androideabi-4.8\prebuilt\windows-x86_64\bin
1.3 Open the SDK Manager which locates in Android SDK dir, download and install Tools, API, etc. The API version must matching the "Minumum SDK version" which you will find it in Introjucer's Android project settings later on.
Get the things above done once and for ever, there is no need doing these boring grinds again if the stupid Windows works normal.
2. Create Android project in Introjucer
Just create, do some settings and save the project.
3. Modify the build.xml
3.1 The file build.xml locates in "..\yourProject\Builds\Android". Using a text editor application open it, search for "${ndk.dir}/ndk-build", replace to "${ndk.dir}/ndk-build.cmd". There are 2 places need to be modified: line 9 and line 23. This is the most important step for compile the JUCE-Android project on Windows.
However, I hope JUCE team could add few lines, using a JUCE platform MACRO and a String object to replace the literal "${ndk.dir}/ndk-build" in "..\extras\Introjucer\Source\Project Saving\jucer_ProjectExport_Android.h", line 617 and 646. If so, it'd very helpful for all JUCE Windows-Android user. I know Windows is a bad thing for Android though...
3.2 Save build.xml in the text editor. Don't save the project again in Introjucer since it'll generate the build.xml again.
4. Compile
4.1 Run "cmd" (Windows commad-line window), into "..\yourProject\Builds\Android". You could do this easily from the file browser: don't select any file or dir, shift+right click, in the popup menu select "Into command-line window from here" (maybe another words since my Windows OS is non-English version).
4.2 In the cmd window, type: "ant debug", or "ant release". After a while, the Android APK file of your project will be generated in "..\Builds\Android\bin".
5. Enjoy!
