01-22 10:58:51.991 29612-29612/org.cocos2d.helloworld W/System.err: java.lang.ClassNotFoundException: com.anysdk.framework.PluginWrapper
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.Class.classForName(Native Method)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.Class.forName(Class.java:309)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.Class.forName(Class.java:273)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.SDKWrapper.getInstance(SDKWrapper.java:20)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.AppActivity.onCreateView(AppActivity.java:60)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.init(Cocos2dxActivity.java:415)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:288)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:40)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Activity.performCreate(Activity.java:6102)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2403)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.access$1200(ActivityThread.java:165)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Looper.loop(Looper.java:135)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5593)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Native Method)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.anysdk.framework.PluginWrapper” on path: DexPathList[[zip file “/data/app/org.cocos2d.helloworld-1/base.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_dependencies_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_0_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_1_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_2_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_3_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_4_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_5_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_6_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_7_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_8_apk.apk”, zip file “/data/app/org.cocos2d.helloworld-1/split_lib_slice_9_apk.apk”],nativeLibraryDirectories=[/data/app/org.cocos2d.helloworld-1/lib/arm64, /vendor/lib64, /system/lib64]]
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: … 21 more
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: Suppressed: java.lang.ClassNotFoundException: com.anysdk.framework.PluginWrapper
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.Class.classForName(Native Method)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: … 22 more
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.reflect.Method java.lang.Class.getMethod(java.lang.String, java.lang.Class[])’ on a null object reference
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.SDKWrapper.setGLSurfaceView(SDKWrapper.java:44)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.AppActivity.onCreateView(AppActivity.java:60)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.init(Cocos2dxActivity.java:415)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:288)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:40)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Activity.performCreate(Activity.java:6102)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2403)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.access$1200(ActivityThread.java:165)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Looper.loop(Looper.java:135)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5593)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Native Method)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld D/Cocos2dxActivity: model=ATH-AL00
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld D/Cocos2dxActivity: product=ATH-AL00
01-22 10:58:52.001 29612-29612/org.cocos2d.helloworld D/Cocos2dxActivity: isEmulator=false
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.reflect.Method java.lang.Class.getMethod(java.lang.String, java.lang.Class[])’ on a null object reference
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.SDKWrapper.init(SDKWrapper.java:32)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:51)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Activity.performCreate(Activity.java:6102)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2403)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.access$1200(ActivityThread.java:165)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Looper.loop(Looper.java:135)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5593)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Native Method)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.reflect.Method java.lang.Class.getMethod(java.lang.String, java.lang.Class[])’ on a null object reference
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.SDKWrapper.onStart(SDKWrapper.java:164)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.AppActivity.onStart(AppActivity.java:133)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Activity.performStart(Activity.java:6118)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2413)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.access$1200(ActivityThread.java:165)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Looper.loop(Looper.java:135)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5593)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Native Method)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
01-22 10:58:52.031 29612-29612/org.cocos2d.helloworld D/Cocos2dxActivity: onResume()
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld V/AudioManager: requestAudioFocus streamType: 3 durationHint: 1
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld V/AudioManager: registerAudioFocusListener…
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld D/AudioFocusManager: requestAudioFocus succeed
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.reflect.Method java.lang.Class.getMethod(java.lang.String, java.lang.Class[])’ on a null object reference
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.SDKWrapper.onResume(SDKWrapper.java:54)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.AppActivity.onResume(AppActivity.java:68)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1257)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.Activity.performResume(Activity.java:6188)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3226)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3268)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2517)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.access$1200(ActivityThread.java:165)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.os.Looper.loop(Looper.java:135)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5593)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Native Method)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
01-22 10:58:52.041 29612-29612/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
看似是找不到这个类,com.anysdk.framework.PluginWrapper,可是没有勾选anysdk呀?
而且android黑屏问题也还是存在
Mark下 等
遇到了
遇到相同问题
我也遇到了 晕,怎么解决的啊
一般情况下,我先会新建个新的项目,创建个button在里面,然后打包成apk测试:
- 如果不能打包,那就是游戏引擎的问题,那就卸载重新下载
- 如过能打包,那就是项目的问题:
- 重新打开项目,删除所有的第三方插件,裸项目打包(建议备份再弄)
- 以此添加第三方插件打包,依次排除原因~,应该就可以
一个人开发游戏,没有人交流,不会debug,断点,只能通过这种死办法,呵呵~
搞定.买的别人的原生程序。