添加Ionic cordova-plugin-facebook4后,应用程序在启动时崩溃

时间:2019-06-24 14:10:09

标签: cordova-plugins ionic4 phonegap-facebook-plugin

应用添加cordova-facebook4-plugin

后崩溃
  

I / System.out:添加插件org.apache.cordova.facebook.ConnectPlugin时出错。   D / AndroidRuntime:关闭VM   E / AndroidRuntime:致命异常:main       程序:io.ionic.starter,PID:16951       java.lang.RuntimeException:无法启动活动ComponentInfo {io.ionic.starter / io.ionic.starter.MainActivity}:java.lang.NullPointerException:尝试调用虚拟方法'void org.apache.cordova.CordovaPlugin.privateInitialize( java.lang.String,org.apache.cordova.CordovaInterface,org.apache.cordova.CordovaWebView,org.apache.cordova.CordovaPreferences)”上的空对象引用           在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2723)           在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2784)           在android.app.ActivityThread.-wrap12(ActivityThread.java)           在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1523)           在android.os.Handler.dispatchMessage(Handler.java:102)           在android.os.Looper.loop(Looper.java:163)           在android.app.ActivityThread.main(ActivityThread.java:6238)           在java.lang.reflect.Method.invoke(本机方法)           在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:933)           在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)        引起原因:java.lang.NullPointerException:尝试调用虚拟方法'void org.apache.cordova.CordovaPlugin.privateInitialize(java.lang.String,org.apache.cordova.CordovaInterface,org.apache.cordova.CordovaWebView,org。 apache.cordova.CordovaPreferences)'上的空对象引用           在org.apache.cordova.PluginManager.getPlugin(PluginManager.java:171)           在org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:97)           在org.apache.cordova.PluginManager.init(PluginManager.java:86)           在com.getcapacitor.cordova.MockCordovaWebViewImpl.init(MockCordovaWebViewImpl.java:62)           在com.getcapacitor.BridgeActivity.load(BridgeActivity.java:80)           在com.getcapacitor.BridgeActivity.init(BridgeActivity.java:64)           在io.ionic.starter.MainActivity.onCreate(MainActivity.java:16)           在android.app.Activity.performCreate(Activity.java:6857)           在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)           在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2676)           在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2784)           在android.app.ActivityThread.-wrap12(ActivityThread.java)           在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1523)           在android.os.Handler.dispatchMessage(Handler.java:102)           在android.os.Looper.loop(Looper.java:163)           在android.app.ActivityThread.main(ActivityThread.java:6238)           在java.lang.reflect.Method.invoke(本机方法)           在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:933)           在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)   I / Process:正在发送信号。 PID:16951 SIG:9   与目标VM断开连接,地址:“ localhost:8600”,传输:“ socket”

0 个答案:

没有答案