Followed instructions but android does not show

Monkey Targets Forums/Android/Followed instructions but android does not show

Nixx(Posted 2011) [#1]
As in the title... it just wont show in the target list.

ANT_PATH="d:\ApacheAnt"
ANDROID_PATH="${PROGRAMFILES}\Android\android-sdk"
JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_21"


BigAnd(Posted 2011) [#2]
Have you set your ANT_HOME and JAVA_HOME environment variables on your PC as well (as in, not just in the trans config)?


Nixx(Posted 2011) [#3]
It does not mention that in my docs?

If someone could post how exactly to get this working that would be great, the instructions should be with the product...


marksibly(Posted 2011) [#4]
Hi,

> Have you set your ANT_HOME and JAVA_HOME environment variables on your PC as well

You should not have to do this.

The only reason it'll fail to show as a target is if one of the above config files settings points to a non-existant dir, so double check the above are all valid dirs on your machine.

Also, you might want to check your PROGRAMFILES setting - from Windows command line, type:

set PROGRAMFILES


degac(Posted 2011) [#5]
I just re-installed the latest Ant1.8.2, AndroidSDK (rev 10), VC++ 2010, JDK6.24 - configured some env-variables (ANT_HOME, JAVA_HOME, ANDROID_HOME) and *everyhing* works!

Remember to create an AVD and the emulator MUST be running... otherwise you can compile but you cant' see the application (you need to 'tap' on the icon (monkeygame) to run it.


therevills(Posted 2011) [#6]
I didnt have to set ANT_HOME, I just downloaded the zip file, extract it and changed the config file to point to the folder...

I havent had much success with the emulator (it always crashes!), but if you plug in you device and enable USB Debugging your app will get installed onto your device when you compile it. When I did some pure Java coding for Android the app would run straight away, with Monkey you need to start it yourself.