Problem with And. 3.2 compiler failed
Monkey Targets Forums/Android/Problem with And. 3.2 compiler failed
| ||
Hello, I installed Monkey66b, latest Ant, JavaDDK : Compile Print "Hello World" ends with this error log: what can i do ? Greets Sokrates |
| ||
Yep got the same on mac osx ver 66b . Any ideas out there? -compile: [javac] Compiling 3 source files to /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/bin/classes [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:44: cannot find symbol [javac] symbol : class AssetManager [javac] location: class com.monkey.MonkeyData [javac] static AssetManager getAssets(){ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:163: cannot find symbol [javac] symbol : class Bitmap [javac] location: class com.monkey.MonkeyData [javac] static Bitmap loadBitmap( String path ){ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:188: cannot find symbol [javac] symbol : class SoundPool [javac] location: class com.monkey.MonkeyData [javac] static int loadSound( String path,SoundPool pool ){ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:199: cannot find symbol [javac] symbol : class MediaPlayer [javac] location: class com.monkey.MonkeyData [javac] static MediaPlayer openMedia( String path ){ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:16: duplicate class: com.monkey.MonkeyConfig [javac] class MonkeyConfig{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:42: duplicate class: com.monkey.MonkeyData [javac] class MonkeyData{ [javac] ^ BUILD FAILED [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:228: duplicate class: com.monkey.bb_std_lang /Applications/- - - adt-bundle-mac-x86_64/sdk/tools/ant/build.xml:710: The following error occurred while executing this line: [javac] class bb_std_lang{ /Applications/- - - adt-bundle-mac-x86_64/sdk/tools/ant/build.xml:723: Compile failed; see the compiler error output for details. [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:438: duplicate class: com.monkey.ThrowableObject Total time: 2 seconds [javac] class ThrowableObject extends RuntimeException{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:443: duplicate class: com.monkey.bb_boxes [javac] class bb_boxes{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:445: duplicate class: com.monkey.bb_lang [javac] class bb_lang{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:447: duplicate class: com.monkey.bb_list [javac] class bb_list{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:449: duplicate class: com.monkey.bb_map [javac] class bb_map{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:451: duplicate class: com.monkey.bb_math [javac] class bb_math{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:453: duplicate class: com.monkey.bb_monkey [javac] class bb_monkey{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:455: duplicate class: com.monkey.bb_random [javac] class bb_random{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:457: duplicate class: com.monkey.bb_set [javac] class bb_set{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:459: duplicate class: com.monkey.bb_stack [javac] class bb_stack{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:461: duplicate class: com.monkey.bb_ [javac] class bb_{ [javac] ^ [javac] /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java:45: cannot access com.monkey.MonkeyGame [javac] bad class file: /shared/- - - monkey programming/- - - PROJECTS/FUNC SUM/_FUNCTSUM.build/android/src/com/monkey/MonkeyGame.java [javac] file does not contain class com.monkey.MonkeyGame [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] return MonkeyGame.activity.getAssets(); [javac] ^ [javac] 19 errors TRANS FAILED: Android build failed. |
| ||
Hello, I got a solution for this problem (from Xaron) in a german speaking forum: http://www.monkeycoder.de/community/index.php?threads/probleme-mit-and-3-2-und-monkey.2906/ -> for short : Strict Import mojo Function Main:Int() New TestApp() Return 0 End Function Class TestApp Extends App Method OnCreate:Int() Print "Hello World" Return 0 End Method Method OnUpdate:Int() Return 0 End Method Method OnRender:Int() Cls() Return 0 End Method End Class is the source you need for compiling.... And another Problem you may occur: Java VM doesn't work etc Solution: "Anyway, here is how to fix it: Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New: Variable name: _JAVA_OPTIONS Variable value: -Xmx512M If 512Mb doesn't work, try reducing it from 1024 to lower until it works. Also, when googling around I noticed that some users reported that the order in which the path variables occur makes a difference too. The JRE must be the first one. I am not sure if this is true, but here it is anyway: Variable name: Path Variable value: ;C:\Program Files\Java\jre6\bin;F:\JDK\bin; Change this to your appropriate path." source: http://forum.unity3d.com/threads/88119-Could-not-reserve-enough-space-for-object-heap-RESOLVED Now : the Android Emulator will not start ... (see german forum) So if someone has a solution for this please post... Thanks |
| ||
Okay solved - Emulator must running, before the Monkey compilation starts... |
| ||
So how do you start the emulator manually on a mac? Thanks. It would be nice if Monkey would do this on the fly... Kind of like a turn key... You install all of the target platforms xcode android etc and monkey takes control from there. It would sure help us newbies. |
| ||
I don't have a mac , but maybe this site help you out :) http://www.petefreitag.com/item/763.cfm |