Problem while compiling

Monkey Targets Forums/Android/Problem while compiling

Josepho(Posted 2012) [#1]
I think I followed the steps that explains how to compile in android but when i try to compile i get this error

TRANS FAILED: TRANS Failed to execute 'adb start-server', return code=1
Abnormal program termination. Exit code: -1

Anybody knows what is happening? :(


Raz(Posted 2012) [#2]
In (MonkeyDir)/bin/ check the config.winnt.txt just to make sure all of the Android relevant settings are pointing to the right locations.

I would guess the error above suggests Monkey can't fine the adb executable.


DruggedBunny(Posted 2012) [#3]
Are you using a phone or the emulator? Whichever it is, make sure that it's started and ready before trying to execute.


Josepho(Posted 2012) [#4]
Ooh it appears to work now, i think i had the android-sdk wrong in the trans file, many thanks all!


Sub_Zero(Posted 2012) [#5]
Using Android 4.1 (api 16) I get this error when compiling:

-build-setup:
     [echo] Resolving Build Target for MonkeyGame...
BUILD FAILED
C:\Program Files\Android\android-sdk\tools\ant\build.xml:518: Unable to resolve project target 'android-13'
Total time: 2 seconds
TRANS FAILED: Android build failed.


What could be wrong here?


DruggedBunny(Posted 2012) [#6]
@Sub_Zero: You just need to install the 3.2 Android SDK from the SDK Manager.


Sub_Zero(Posted 2012) [#7]
@DruggedBunny: Thanks got it sorted now