Android SDK
Monkey Targets Forums/Android/Android SDK
| ||
I'm trying to compile my game to android platform but its dont appear in build menu. I installed Android SDK, Ant, and Java. The Ant created a folder on c:\apache-ant-1.8.2-bin Android sdk: c:\Program Files(x86)\android\Android Java is allready working since I'm compiling to flash normally. So what is the problem? Can someone help me with it ? My Config file: '-------------------- 'HTML player path. ' 'Must be set for HTML5 target support. ' HTML_PLAYER="${TRANSDIR}\mserver_winnt.exe" '-------------------- '-------------------- 'Ant build tool path ' 'Must be set to a valid dir for ANDROID target support ' ANT_PATH="${SYSTEMDRIVE}\apache-ant-1.8.2-bin" ANT_PATH="${SYSTEMDRIVE}\ant" '-------------------- '-------------------- 'MinGW path. ' 'Must be set to a valid dir for STDCPP target support. ' MINGW_PATH="${SYSTEMDRIVE}\MinGW" '-------------------- '-------------------- 'Java dev kit path ' 'Must be set to a valid dir for ANDROID and FLASH target support ' JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_23" JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_21" JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_19" '-------------------- '-------------------- 'Android SDK and tool paths. ' 'Must be set to a valid for for ANDROID target support ' ANDROID_PATH="${SYSTEMDRIVE}\Program Files (x86)\android\Android" '-------------------- '-------------------- 'Flex SDK and flash player path. ' 'Must be set for FLASH target support. ' FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.5.1" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.1.0.16076" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.1" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.0.0.14159" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.0" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk" FLASH_PLAYER="${TRANSDIR}\mserver_winnt.exe" '-------------------- '-------------------- 'MSBUILD path. ' 'Must be set for XNA and GLFW target support. ' MSBUILD_PATH="${WINDIR}\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" '-------------------- |
| ||
Just from glancing at it, you seem to have both ANT_PATH lines uncommented...so I would be guessing if you uncomment out the one with the wrong path it should work... |
| ||
Thats is not the problema. I have a lot of FLEX_PATH= paths and its work for flash. I was downloading Ant but its have source and bin version. Will be good if someone put on a fixed topic about Adroid development instalation. Still not working. |
| ||
Try this, m8: http://wiebo.wordpress.com/2011/05/08/how-to-monkey-and-android-development-setup/ |
| ||
Thanks dude! I will read it carefully! |
| ||
I`m getting this too. I have double checked everything and cannot see the problem. Flash works fine but Android build doesn`t show up. I have re-installed everything (checked paths etc...) but still no luck. Vinians, I see that you have managed to get Android builds working, what was wrong with your setup? Jason. |
| ||
dunno if this helps but this was the prob i had http://www.monkeycoder.co.nz/Community/posts.php?topic=636& also someone suggested the line might be better in a folder without spaces i dont know if thats correct or not because i managed to sort my prob out ANDROID_PATH="${SYSTEMDRIVE}\Program Files (x86)\android\Android" |
| ||
Still no luck, here`s my config file, hopefully someone can spot the obvious error that I am missing? Do I need to install more than Platform Android 2.1 from the Android Manager? I`m using the binary version of Ant which I`m sure is the correct one. Not sure what else to try??? '-------------------- 'HTML player path. ' 'Must be set for HTML5 target support. ' HTML_PLAYER="${TRANSDIR}\mserver_winnt.exe" '-------------------- '-------------------- 'Ant build tool path ' 'Must be set to a valid dir for ANDROID target support ' ANT_PATH=”${SYSTEMDRIVE}\TargetSDK\apache-ant-1.8.2" 'ANT_PATH="${SYSTEMDRIVE}\apache-ant-1.8.2" 'ANT_PATH="${SYSTEMDRIVE}\ant" '-------------------- '-------------------- 'MinGW path. ' 'Must be set to a valid dir for STDCPP target support. ' MINGW_PATH="${SYSTEMDRIVE}\MinGW" '-------------------- '-------------------- 'Java dev kit path ' 'Must be set to a valid dir for ANDROID and FLASH target support ' JDK_PATH="${SYSTEMDRIVE}\TargetSDK\Java\jdk1.7.0" 'JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_23" 'JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_23" 'JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_21" 'JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_19" '-------------------- '-------------------- 'Android SDK and tool paths. ' 'Must be set to a valid for for ANDROID target support ' ANDROID_PATH=”${SYSTEMDRIVE}\TargetSDK\Android\android-sdk" 'ANDROID_PATH=”${SYSTEMDRIVE}\TargetSDK\Android\android-sdk” 'ANDROID_PATH="${SYSTEMDRIVE}\android-sdk-windows" '-------------------- '-------------------- 'Flex SDK and flash player path. ' 'Must be set for FLASH target support. ' FLEX_PATH="${SYSTEMDRIVE}\TargetSDK\flex_sdk_4.5.1" 'FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.5" 'FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.1.0.16076" 'FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.1" 'FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.0.0.14159" 'FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.0" 'FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4" 'FLEX_PATH="${SYSTEMDRIVE}\flex_sdk" FLASH_PLAYER="${TRANSDIR}\mserver_winnt.exe" '-------------------- '-------------------- 'MSBUILD path. ' 'Must be set for XNA and GLFW target support. ' MSBUILD_PATH="${WINDIR}\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" '-------------------- |
| ||
Hi QuickSilva, did you solve the problem ? Anyway, there's a strange character at the beginning (and sometime at the end) on some of your path definition, for example: ANDROID_PATH=”${SYSTEMDRIVE}\TargetSDK\Android\android-sdk" Do you spot that graphic green rectangle ? When I paste it as text, it makes a different double quotes: ANDROID_PATH=”${SYSTEMDRIVE}\TargetSDK\Android\android-sdk" ” instead of " Could be that the problem ? Anyway, in the Android SDK installed package form, I have only checked the Android sdk 1.2 and up, leaving all the other components below unchecked - is that right, or should I install everything ? |
| ||
Try to substitute the ${SYSTEMDRIVE} variable with your drive letter to make sure it is not looking at the wrong drive. That's all I can think of right now. |
| ||
Hello, thanks for the help everyone. All is working well now. The problem was that I had only installed Android SDK 1.2 and not the later versions. I was following the docs that say to install a minimum of 1.2. Maybe they should read, install a minimum of 1.2 and all later versions to avoid confusion. Jason. |