报错 如下
W/System.err: java.lang.NoSuchFieldException: layoutInDisplayCutoutMode
W/System.err: at java.lang.Class.getField(Class.java:1549)
W/System.err: at com.cocos.lib.CocosActivity.setImmersiveMode(CocosActivity.java:110)
W/System.err: at com.cocos.lib.CocosActivity.onCreate(CocosActivity.java:100)
W/System.err: at com.cocos.game.AppActivity.onCreate(AppActivity.java:38)
W/System.err: at android.app.Activity.performCreate(Activity.java:6859)
W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125)
W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2689)
W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2797)
W/System.err: at android.app.ActivityThread.-wrap12(ActivityThread.java)
W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1523)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err: at android.os.Looper.loop(Looper.java:154)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6267)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:793)
另一段报错
E/VivoSystemReflect: Failure register UserProfilingManager
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at android.app.VivoSystemReflect$7.createService(VivoSystemReflect.java:461)
at android.app.SystemServiceRegistry$CachedServiceFetcher.getService(SystemServiceRegistry.java:860)
at android.app.SystemServiceRegistry.getSystemService(SystemServiceRegistry.java:801)
at android.app.ContextImpl.getSystemService(ContextImpl.java:1512)
at android.content.ContextWrapper.getSystemService(ContextWrapper.java:659)
at android.app.Application.getUserProfilingManager(Application.java:328)
at android.app.Activity.onResume(Activity.java:1291)
at com.cocos.lib.CocosActivity.onResume(CocosActivity.java:183)
at com.cocos.game.AppActivity.onResume(AppActivity.java:46)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1276)
at android.app.Activity.performResume(Activity.java:6963)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3477)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3540)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1523)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6267)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:793)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘int java.lang.String.length()’ on a null object reference
at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116)
at org.json.JSONTokener.nextValue(JSONTokener.java:94)
at org.json.JSONObject.(JSONObject.java:156)
at org.json.JSONObject.(JSONObject.java:173)
at com.vivo.services.userprofiling.UserProfilingManager.getApplicationConfig(UserProfilingManager.java:79)
at com.vivo.services.userprofiling.UserProfilingManager.(UserProfilingManager.java:40)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at android.app.VivoSystemReflect$7.createService(VivoSystemReflect.java:461)
at android.app.SystemServiceRegistry$CachedServiceFetcher.getService(SystemServiceRegistry.java:860)
at android.app.SystemServiceRegistry.getSystemService(SystemServiceRegistry.java:801)
at android.app.ContextImpl.getSystemService(ContextImpl.java:1512)
at android.content.ContextWrapper.getSystemService(ContextWrapper.java:659)
at android.app.Application.getUserProfilingManager(Application.java:328)
at android.app.Activity.onResume(Activity.java:1291)
at com.cocos.lib.CocosActivity.onResume(CocosActivity.java:183)
at com.cocos.game.AppActivity.onResume(AppActivity.java:46)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1276)
at android.app.Activity.performResume(Activity.java:6963)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3477)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3540)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1523)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6267)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:793)