打包Android运行黑屏

2019-05-15 20:11:28.383 20678-20678/org.cocos2d.helloworld W/System.err: org.json.JSONException: No value for serviceClassPath
2019-05-15 20:11:28.383 20678-20678/org.cocos2d.helloworld W/System.err: at org.json.JSONObject.get(JSONObject.java:392)
2019-05-15 20:11:28.383 20678-20678/org.cocos2d.helloworld W/System.err: at org.json.JSONObject.getJSONArray(JSONObject.java:587)
2019-05-15 20:11:28.383 20678-20678/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.SDKWrapper.loadSDKClass(SDKWrapper.java:70)
2019-05-15 20:11:28.383 20678-20678/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.SDKWrapper.setGLSurfaceView(SDKWrapper.java:102)
2019-05-15 20:11:28.383 20678-20678/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.AppActivity.onCreateView(AppActivity.java:58)
2019-05-15 20:11:28.383 20678-20678/org.cocos2d.helloworld W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.addSurfaceView(Cocos2dxActivity.java:427)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.init(Cocos2dxActivity.java:259)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:324)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:39)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.Activity.performCreate(Activity.java:7210)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.Activity.performCreate(Activity.java:7201)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.os.Looper.loop(Looper.java:201)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6806)
2019-05-15 20:11:28.384 20678-20678/org.cocos2d.helloworld W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2019-05-15 20:11:28.385 20678-20678/org.cocos2d.helloworld W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
2019-05-15 20:11:28.385 20678-20678/org.cocos2d.helloworld W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

用了什么内置服务?关掉试试~ 也没说什么版本!

兄dei,你这个解决没有啊,我也遇到相同的问题了,用的 2.0.9版本的,打包后运行就出现这个问题 了!