Sonar System cocos helper crash on activity startup and headers error on newest version

Hello

I have this error on function.onCreate(b):

08-12 00:00:55.820: E/AndroidRuntime(16438): FATAL EXCEPTION: main
08-12 00:00:55.820: E/AndroidRuntime(16438): Process: com.likonstudio.game1, PID: 16438
08-12 00:00:55.820: E/AndroidRuntime(16438): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.likonstudio.game1/org.cocos2dx.javascript.AppActivity}: java.lang.NullPointerException
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.app.ActivityThread.access$900(ActivityThread.java:161)
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.os.Handler.dispatchMessage(Handler.java:102)
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.os.Looper.loop(Looper.java:157)
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.app.ActivityThread.main(ActivityThread.java:5356)
08-12 00:00:55.820: E/AndroidRuntime(16438): at java.lang.reflect.Method.invokeNative(Native Method)
08-12 00:00:55.820: E/AndroidRuntime(16438): at java.lang.reflect.Method.invoke(Method.java:515)
08-12 00:00:55.820: E/AndroidRuntime(16438): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
08-12 00:00:55.820: E/AndroidRuntime(16438): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
08-12 00:00:55.820: E/AndroidRuntime(16438): at dalvik.system.NativeStart.main(Native Method)
08-12 00:00:55.820: E/AndroidRuntime(16438): Caused by: java.lang.NullPointerException
08-12 00:00:55.820: E/AndroidRuntime(16438): at sonar.systems.framework.SonarFrameworkActivity.onCreate(SonarFrameworkActivity.java:56)
08-12 00:00:55.820: E/AndroidRuntime(16438): at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:63)
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.app.Activity.performCreate(Activity.java:5426)
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
08-12 00:00:55.820: E/AndroidRuntime(16438): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)
08-12 00:00:55.820: E/AndroidRuntime(16438): … 11 more

please help.

Also the new sonar system version has error when using cocos2d js it cant find headers for cpp.

Cheers.

well seems like sonar cocos helper is dead…

@SonarSystems

Please check this issue.

Why is it dead?

What steps have been taken?

I implemented this admob plugin like I did earlier in cocos2d 3.6 but on 3.7 it crashes on startup…
Please read my first post.

Try downloading the latest version form GitHub https://github.com/SonarSystems/Cocos-Helper

ok I’ll try it later today :slight_smile:

well still the same error
In file included from jni/…/…/Classes/JNIResults.cpp:9:0:
jni/…/…/Classes/JNIResults.h:19:46: fatal error: SonarCocosHelper/SonarFrameworks.h: No such file or directory
#include “SonarCocosHelper/SonarFrameworks.h”

Please try to add it on cocos2d js …

The line 19 is incorrect:
#include “SonarCocosHelper/SonarFrameworks.h”

Change to:
#include “SonarFrameworks.h”

What file is this incorrect?

JNIResults.h

SonarSystems can’t just create a simple cocos2d js project and try to implement it cocos helper, I think you will than fix all bugs…

What is wrong?

we wrote the errors above…

can you fix that please?

Try it now

Ok I managed to make it working! great thanks :smile:

When Airpush support? :slight_smile:

but another problem on ios and admob

src/SonarFrameworks.js:192:Error: js_cocos2dx_JSObjCBridge : call result code: -5

its when calling IOS.Setup();

Any idea why?

so can you please help me? :slight_smile: