Problem with latest Android SDK

Monkey Targets Forums/Android/Problem with latest Android SDK

Felix(Posted 2011) [#1]
Hi!

I downloaded and installed the latest Android SDK & ADT yesterday.
After that Monkey builds for Android stopped working.

I get the following output in monk:


Translating liftboy
/Applications/Monkey/bin/trans_macos -target=android -run /Users/fx/Monkey/LiftBoy/liftboy.monkey

TRANS monkey compiler V1.21
Parsing...
Semanting...
Translating...
Building...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Buildfile: /Users/fx/Monkey/LiftBoy/liftboy.build/android/build.xml
BUILD FAILED
/Users/fx/Monkey/LiftBoy/liftboy.build/android/build.xml:65:
Error. You are using an obsolete build.xml
You need to delete it and regenerate it using
android update project
Total time: 0 seconds
Android build failed.

Process Complete


Now if I do what the error message suggests and afterwards load the project in Motodev (Eclipse) I can build and run it just fine.
But if I build the project using monk I get this output:


Translating liftboy
/Applications/Monkey/bin/trans_macos -target=android -run /Users/fx/Monkey/LiftBoy/liftboy.monkey

TRANS monkey compiler V1.21
Parsing...
Semanting...
Translating...
Building...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Buildfile: /Users/fx/Monkey/LiftBoy/liftboy.build/android/build.xml

clean:

BUILD SUCCESSFUL
Total time: 0 seconds
Buildfile: /Users/fx/Monkey/LiftBoy/liftboy.build/android/build.xml

install:
[echo] Install file not specified.
[echo]
[echo] 'ant install' now requires the build target to be specified as well.
[echo]
[echo]
[echo] ant debug install
[echo] ant release install
[echo] ant instrument install
[echo] This will build the given package and install it.
[echo]
[echo] Alternatively, you can use
[echo] ant installd
[echo] ant installr
[echo] ant installi
[echo] ant installt
[echo] to only install an existing package (this will not rebuild the package.)
BUILD FAILED
/Applications/android-sdk-mac_x86/tools/ant/build.xml:1098: The following error occurred while executing this line:
/Applications/android-sdk-mac_x86/tools/ant/build.xml:1141: No message
Total time: 0 seconds
Android build failed.

Process Complete


This is happening on Mac OS X Lion using Monkey V46.
Any ideas on how to solve this?
I'd rather not be loading up the project in Eclipse after every build just to run it.

thx,
felix


devolonter(Posted 2011) [#2]
I confirm this problem. The same thing happens on Windows and Monkey v47b. It seems to me that it is due to the change of the application building process for Android


devolonter(Posted 2011) [#3]
More info - http://tools.android.com/recent/buildchangesinrevision14


DarkyCrystal(Posted 2011) [#4]
arf :( I don't understand how to solve this :(


Volker(Posted 2011) [#5]
Time for a bug report?


DarkyCrystal(Posted 2011) [#6]
I try to uninstall and install an r12 but each time android want and download the r14 version after installation at the same as I uncheck it :(


Cartman(Posted 2011) [#7]
Has anyone found a solution to this issue? It happened to me today on one of my development machines. The other machine everything is running fine.


dave.h(Posted 2011) [#8]
i had this problem when i upgraded to 49 from 45 and all i did was update android using the SDK manager.This took about 90 mins,I think its up to v15 now.Dont forget to delete your build folder.Once i did this everything worked fine.


Cartman(Posted 2011) [#9]
Thanks dave. That did the trick. I had forgotten to upgrade Monkey.