Beta3 broke my app, broke BasicGame!

Hi I have an app which worked fine on JME3-alpha. Just tried it with beta and it wont install.



I made a new BasicGame project and same problem. I get an vague error on the phone and this in JMP Ouput:


E/AndroidRuntime(19023): FATAL EXCEPTION: main
E/AndroidRuntime(19023): java.lang.RuntimeException: Unable to pause activity {com.mycompany.mygame/com.mycompany.mygame.MainActivity}: java.lang.NullPointerException
E/AndroidRuntime(19023): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2842)
E/AndroidRuntime(19023): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2789)
E/AndroidRuntime(19023): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3370)
E/AndroidRuntime(19023): at android.app.ActivityThread.access$1600(ActivityThread.java:135)
E/AndroidRuntime(19023): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1058)
E/AndroidRuntime(19023): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(19023): at android.os.Looper.loop(Looper.java:150)
E/AndroidRuntime(19023): at android.app.ActivityThread.main(ActivityThread.java:4385)
E/AndroidRuntime(19023): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(19023): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(19023): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
E/AndroidRuntime(19023): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
E/AndroidRuntime(19023): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(19023): Caused by: java.lang.NullPointerException
E/AndroidRuntime(19023): at com.jme3.app.AndroidHarness.onPause(AndroidHarness.java:240)
E/AndroidRuntime(19023): at android.app.Activity.performPause(Activity.java:4046)
E/AndroidRuntime(19023): at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1313)
E/AndroidRuntime(19023): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2819)
E/AndroidRuntime(19023): ... 12 more
W/ActivityManager( 1448): Force finishing activity com.mycompany.mygame/.MainActivity


I am targetting Android 2.3.3, my device is 2.3.5.

Can anyone help?

Thanks

Simon

You’re using an old nightly build

But I am up to date via the plugins menu, or do you mean somewhere else?

All I know is that the line number you gave me has a comment:

[java]E/AndroidRuntime(19023): Caused by: java.lang.NullPointerException

E/AndroidRuntime(19023): at com.jme3.app.AndroidHarness.onPause(AndroidHarness.java:240)[/java]



AndroidHarness:240

[java]Line 240>> //pause the audio

AudioRenderer result = app.getAudioRenderer();

if (result != null) {

logger.info("pause: " + result.getClass().getSimpleName());[/java]

So probably you need to clean and build your project, or get a nightly build.