Compile Error

Monkey Targets Forums/Android/Compile Error

matty47(Posted 2012) [#1]
I get this error when trying to compile for android. I believe I have set up all the dependencies/ programme chain correctly.
Any help??
C:\MyPrograms\MonkeyPro54\bin\trans_winnt.exe -run -config=debug -target=android "C:\MyPrograms\MonkeyPro54\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.monkey"
TRANS monkey compiler V1.30
Parsing...
Semanting...
Translating...
Building...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Buildfile: C:\MyPrograms\MonkeyPro54\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\android\build.xml

-pre-clean:

clean:

BUILD SUCCESSFUL
Total time: 0 seconds
Buildfile: C:\MyPrograms\MonkeyPro54\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\android\build.xml

-set-mode-check:

-set-debug-files:

-set-debug-mode:

-debug-obfuscation-check:

-setup:
     [echo] Gathering info for MonkeyGame...
    [setup] Android SDK Tools Revision 16
ERROR:
BUILD FAILED
C:\android\android-sdk\tools\ant\build.xml:440: Unable to resolve target 'android-13'

Total time: 0 secondsERROR:
TRANS FAILED: Android build failed.
Abnormal program termination. Exit code: -1 

thanks
Matthew


secondgear(Posted 2012) [#2]
Do you have SDK 3.2 installed?
Check this http://sagistech.blogspot.com/2010/05/android-sdk-error-unable-to-resolve.html


matty47(Posted 2012) [#3]
Thanks. I'll give that a go. i checked the build.xml file and the target.api is not explicitly set in that file. Does Monkey trans set it? How do I change it?
Thanks again
Matthew


secondgear(Posted 2012) [#4]
Target is usually set in project.properties and in AndroidManifest.xml for your app.