我在eclipse中在android中集成启动器导航时遇到错误,请看一下。这对我有很大帮助。
使用的插件: cordova插件添加uk.co.workingedge.phonegap.plugin.launchnavigator
插件链接: https://github.com/dpa99c/phonegap-launch-navigator
libs文件夹中添加的库: v 3.6.0 JAR(okhttp3库)
图书馆链接: http://square.github.io/okhttp/
错误:
03-27 12:15:08.927:W / System.err(32008):java.lang.NoClassDefFoundError:okhttp3 / OkHttpClient 03-27 12:15:08.937:W / System.err(32008):at uk.co.workingedge.phonegap.plugin.LaunchNavigator。(LaunchNavigator.java:113) 03-27 12:15:08.937:W / System.err(32008):at java.lang.Class.newInstanceImpl(Native Method) 03-27 12:15:08.937:W / System.err(32008):at java.lang.Class.newInstance(Class.java:1208) 03-27 12:15:08.937:W / System.err(32008):at org.apache.cordova.PluginManager.instantiatePlugin(PluginManager.java:492) 03-27 12:15:08.937:W / System.err(32008):at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:169) 03-27 12:15:08.937:W / System.err(32008):at org.apache.cordova.PluginManager.exec(PluginManager.java:122) 03-27 12:15:08.937:W / System.err(32008):at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) 03-27 12:15:08.937:W / System.err(32008):at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) 03-27 12:15:08.937:W / System.err(32008):at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) 03-27 12:15:08.937:W / System.err(32008):at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:24) 03-27 12:15:08.937:W / System.err(32008):在android.os.Handler.dispatchMessage(Handler.java:102) 03-27 12:15:08.937:W / System.err(32008):在android.os.Looper.loop(Looper.java:136) 03-27 12:15:08.937:W / System.err(32008):在android.os.HandlerThread.run(HandlerThread.java:61)
谢谢, 伽腻色迦