cmxia / beginning-android-games

Automatically exported from code.google.com/p/beginning-android-games
0 stars 0 forks source link

Mr Nom doesn't start #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. starting the game

What is the expected output? What do you see instead?

Instead of the main menu of the game, i see continuosly crashing messages

I've tried to compare the source codes from repository and mine (wrote line per 
line by hands, reading the book), and i can't find any difference but my 
MrNomGame javaclass that ask me to implement all of the methods (extending 
AndroidGame class)...and i think is normal...but your doesn't!!! It implements 
only one method and the compiler doesn't ask for any other unimplemented 
method...

thanks

Original issue reported on code.google.com by fabioci...@gmail.com on 22 Oct 2011 at 11:41

GoogleCodeExporter commented 8 years ago
solved. sry...was my mistake..

Original comment by fabioci...@gmail.com on 23 Oct 2011 at 12:27

GoogleCodeExporter commented 8 years ago
I'm actually having the very same problem, and I can't find what I'm doing 
wrong. What exactly was the mistake you were making? It would help me a great 
deal to know what to do to fix this issue; as far as I know I'm doing 
everything correctly. I appreciate any help or advice you can provide.

Original comment by t.walter...@gmail.com on 2 Feb 2012 at 12:46

GoogleCodeExporter commented 8 years ago
I made a mistake on rewriting the code. I don't remember where was the problem, 
but, try to look carefully what you wrote, and compare with the original 
version. I'm sure that the problem is that like was mine.

Original comment by fabioci...@gmail.com on 2 Feb 2012 at 8:02

GoogleCodeExporter commented 8 years ago
I had a similar problem to this! It was caused by the fact my package 
declaration in the manifest file was different from the package my MrNomGame 
class was in! 

Ex: xxx.android.com

while MrNom is in: xxx.android.com.mrnom

Original comment by almando....@gmail.com on 7 Feb 2012 at 12:40

GoogleCodeExporter commented 8 years ago
mrnom crashes on startup with this:
06-24 13:52:57.983: E/AndroidRuntime(888): java.lang.RuntimeException: Unable 
to instantiate activity 
ComponentInfo{com.badlogic.androidgames.mrnom/com.badlogic.androidgames.mrnom.Mr
NomGame}: java.lang.ClassNotFoundException: 
com.badlogic.androidgames.mrnom.MrNomGame
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
android.app.ActivityThread.access$600(ActivityThread.java:123)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
android.os.Handler.dispatchMessage(Handler.java:99)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
android.os.Looper.loop(Looper.java:137)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
android.app.ActivityThread.main(ActivityThread.java:4424)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
java.lang.reflect.Method.invokeNative(Native Method)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
java.lang.reflect.Method.invoke(Method.java:511)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
dalvik.system.NativeStart.main(Native Method)
06-24 13:52:57.983: E/AndroidRuntime(888): Caused by: 
java.lang.ClassNotFoundException: com.badlogic.androidgames.mrnom.MrNomGame
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
java.lang.ClassLoader.loadClass(ClassLoader.java:501)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
java.lang.ClassLoader.loadClass(ClassLoader.java:461)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
android.app.Instrumentation.newActivity(Instrumentation.java:1023)
06-24 13:52:57.983: E/AndroidRuntime(888):  at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)

Original comment by neaves...@gmail.com on 24 Jun 2012 at 7:58

GoogleCodeExporter commented 8 years ago
In the manifest at the top you need to change the package.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.badlogic.androidgames.mrnom"
    android:installLocation="preferExternal"
    android:versionCode="1"
    android:versionName="1.0" >

Original comment by markrom...@gmail.com on 18 Aug 2012 at 5:51

GoogleCodeExporter commented 8 years ago
I have similar problem. When I start my application, error apears: 
"Unforunately, MrNom stopped.". 
I have this text in console: 
[2013-07-08 13:37:03 - mrnom] Android Launch!
[2013-07-08 13:37:03 - mrnom] adb is running normally.
[2013-07-08 13:37:03 - mrnom] Performing 
com.badlogic.androidgames.mrnom.MrNomGame activity launch
[2013-07-08 13:37:03 - mrnom] Automatic Target Mode: using existing emulator 
'emulator-5556' running compatible AVD 'AVD_for_3_2in_QVGA_ADP2'
[2013-07-08 13:37:03 - mrnom] Uploading mrnom.apk onto device 'emulator-5556'
[2013-07-08 13:37:13 - mrnom] Installing mrnom.apk...
[2013-07-08 13:37:40 - mrnom] Success!
[2013-07-08 13:37:40 - mrnom] Starting activity 
com.badlogic.androidgames.mrnom.MrNomGame on device emulator-5556
[2013-07-08 13:37:41 - mrnom] ActivityManager: Starting: Intent { 
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
cmp=com.badlogic.androidgames.framework/com.badlogic.androidgames.mrnom.MrNomGam
e }

and this text in Log Cat:

Original comment by Shut.Vla...@gmail.com on 8 Jul 2013 at 9:55

Attachments: