Closed kanishkamehta801 closed 7 years ago
This error indicates the Gradle dependency on the OkHTTP library has not been satisfied. If you build from the command-line using the Cordova CLI or using Android Studio, these Gradle dependencies are automatically satisfied. However, if you're using Eclipse IDE to build a Cordova project, you will have to figure out how to get it to work with Gradle.
Please try building and running the example project using the Cordova CLI for verification that the plugin itself works fine.
Closing this as it's not an issue with the plugin but with a non-standard build environment.
Hello Team,
Please find the error below as launcher navigator is not working in android in eclipse.
Plugin Used: cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator
Link of plugin: https://github.com/dpa99c/phonegap-launch-navigator
Library Added: v3.6.0(okhttp3 library)
Link of library: http://square.github.io/okhttp/
Error:
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): at android.os.Handler.dispatchMessage(Handler.java:102)
03-27 12:15:08.937: W/System.err(32008): at android.os.Looper.loop(Looper.java:136)
03-27 12:15:08.937: W/System.err(32008): at android.os.HandlerThread.run(HandlerThread.java:61)