cannot compile on andorid with 78h

Monkey Targets Forums/Android/cannot compile on andorid with 78h

Raul(Posted 2014) [#1]
Still using 78h because there are some modules I need them.

I receive this error message when trying to compile to Android

BUILD FAILED
C:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:283: null returned: 1

Total time: 3 secondsTRANS FAILED: Android build failed.

Abnormal program termination. Exit code: -1


I already made the update on sdk for Android Build Tools 19.1


therevills(Posted 2014) [#2]
Can you show us the full output?


Raul(Posted 2014) [#3]
C:\MonkeyXPro78h\Bin\transcc_winnt.exe -build -config=debug -target=Android_Game   "F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.monkey"
TRANS monkey compiler V1.68
Parsing...
Semanting...
Translating...
Building...
Buildfile: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\build.xml
  [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.0
 [checkenv] Installed at C:\adt-bundle-windows-x86_64-20140321\sdk

-setup:
     [echo] Project Name: MonkeyGame
  [gettype] Project Type: Application

-pre-clean:

clean:
   [delete] Deleting directory F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin
   [delete] Deleting directory F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\gen
[getlibpath] Library dependencies:
[getlibpath] No Libraries
   [subant] No sub-builds to iterate on

BUILD SUCCESSFUL
Total time: 0 seconds
Buildfile: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\build.xml
  [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.0
 [checkenv] Installed at C:\adt-bundle-windows-x86_64-20140321\sdk

-setup:
     [echo] Project Name: MonkeyGame
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.1.0
     [echo] Resolving Build Target for MonkeyGame...
[gettarget] Project Target:   Android 3.2
[gettarget] API level:        13
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin
    [mkdir] Created dir: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin\res
    [mkdir] Created dir: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin\rsObj
    [mkdir] Created dir: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin\rsLibs
    [mkdir] Created dir: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\gen
    [mkdir] Created dir: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin\classes
    [mkdir] Created dir: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for MonkeyGame...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 3 source files to F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin\classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\src\com\monkeycoder\monkeygame\MonkeyGame.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 3 warnings

-post-compile:

-obfuscate:

-dex:
      [dex] input: F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin\classes
      [dex] input: C:\adt-bundle-windows-x86_64-20140321\sdk\tools\support\annotations.jar
      [dex] Converting compiled files and external libraries into F:\_projects\HackerChallanges\monkeyHacker - iPhone\Hacker\main.buildv78h\android\bin\classes.dex...
       [dx] 
       [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
       [dx] java.io.FileNotFoundException: C:\adt-bundle-windows-x86_64-20140321\sdk\tools\support\annotations.jar (The system cannot find the file specified)
       [dx] 	at java.util.zip.ZipFile.open(Native Method)
       [dx] 	at java.util.zip.ZipFile.<init>(ZipFile.java:220)
       [dx] 	at java.util.zip.ZipFile.<init>(ZipFile.java:150)
       [dx] 	at java.util.zip.ZipFile.<init>(ZipFile.java:164)
       [dx] 	at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
       [dx] 	at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
       [dx] 	at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
       [dx] 	at com.android.dx.command.dexer.Main.processOne(Main.java:596)
       [dx] 	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
       [dx] 	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
       [dx] 	at com.android.dx.command.dexer.Main.run(Main.java:230)
       [dx] 	at com.android.dx.command.dexer.Main.main(Main.java:199)
       [dx] 	at com.android.dx.command.Main.main(Main.java:103)
       [dx] 1 error; aborting

BUILD FAILED
C:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:283: null returned: 1

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




Raul(Posted 2014) [#4]
EDIT:
AVD Manager is the worst program ever made by a human!

issue solved..


therevills(Posted 2014) [#5]
EDIT:
AVD Manager is the worst program ever made by a human!

issue solved..


What was the issue? A setup problem?


Raul(Posted 2014) [#6]
The initial issue.. I had no idea what was. Second one (after deleting ALL my android tools and java and jdk and adt...)was that the initial API 13 was never installed...