Game Doesn't Build for Android Because Missing Sym
Monkey Targets Forums/Android/Game Doesn't Build for Android Because Missing Sym
| ||
My game can run in HTML5, and I can get clock.monkey (from bananas) to compile fine for Android, but when I try to build my game for Android, I get errors like this:-compile: [javac] Compiling 3 source files to C:\Users\c.k.lester\Documents\My Programs\Video Games\random_genius\random_genius_nobaas.build\android\bin\classes [javac] C:\Users\c.k.lester\Documents\My Programs\Video Games\random_genius\random_genius_nobaas.build\android\src\com\monkey\MonkeyGame.java:3351: cannot find symbol [javac] symbol : variable app [javac] location: class com.monkey.MonkeyGame [javac] MonkeyGame.app.input.keyStates[i] = 0; [javac] ^ And errors like this: [javac] C:\Users\c.k.lester\Documents\My Programs\Video Games\random_genius\random_genius_nobaas.build\android\src\com\monkey\MonkeyGame.java:3569: cannot find symbol [javac] symbol : variable activity [javac] location: class com.monkey.MonkeyGame [javac] MonkeyGame.activity.runOnUiThread(new Runnable() { [javac] ^ A whole slew of "cannot find symbol" errors. So, what's going on here with my Android build? |
| ||
Delete build folder? |
| ||
I wish it could be that easy! :-) But no, even with new build, I get same errors... :-/ |
| ||
MonkeyGame.activity doesnt exist in the latest versions of Monkey if you are using custom mods.. I've got a fix somewhere |
| ||
private static Activity activity; activity=BBAndroidGame.AndroidGame().GetActivity(); activity.runOnUiThread(new Runnable() etc etc |
| ||
pantson, when you say custom mods, do you mean stuff like diddy and ignition? Where does your fix code go? |
| ||
all mods like that are custom and they should be fixed by the authors for the latest versions. Have you tried downloading the latest diddy etc as I think they have fixed it. The latest Diddy states it does work with the latest Monkey builds for Android. https://code.google.com/p/diddy/ That reminds me... I need to fix my mods ;-) |
| ||
Ahhhh... OK. I'll have to check on that. Thanks! UPDATE: I think that was it! I updated diddy and now I don't get those error messages. I don't know if it will go onto the phone, but I'll check that when I get home. THANK YOU! :-) |