How to add plugins to cordova embedded webview in android studio? -


I have taken steps to embed the Cordova webview in the Androda studio project by following these steps and it has been successfully created. :

I am trying to install the Cordova plugin.

What I have done so far was making the empty Cordova project. Add the Android File Plugin.

Then I copied the cordova.js and cordova_plugins to an Android studio property / www directory to the plugin folder. I've also added the config.xml file in the / xml directory.

The error I am getting is:

  11-04 12: 00: 37.310 12146- 12146 / com.example.cord Christian Brid W / System. Er: java.lang.ClassNotFoundException: org.apache.cordova.file.FileUtils 11-04 12: 00: 37.310 12146-12146 / Com Explore Crordiodid W / Systems : At java.lang.Class.classForName (Basic Method) 11-04 12: 00: 37.320 12146-12146 / com.example.cord Christubrid W / System.err: at java.lang.Class.forName (Class Java: 251) 11-04 12: 00: 37.320 12146-12146 / Com. Explore Coirvayibid W / Systems Er: java.lang.Class.forName (Class Java 1616) 11-04 12: 00: 37.320 12146-12146 /com.example.cord ChristiBrid W / System.ar: at org.apache.cordova.PluginManager.instantiatePlugin ( PluginManager.java:345)  

Anything more:

  11-04 12: 00: 37.350 12146-12146 / Com. Explore Cordiibid W / System. Er: By: java.lang.NoClassDefFoundError: org / apache / Cordova / file / file by utilities Reason: java.lang .classNotFoundException: idn to not find "org.apache.cordova.file.FileUtils" on the path. 'T: DexPathList [[zip file "/data/app/com.example.cordovahybrid-1.apk"],nativeLibraryDirectories=[/data/app-ob/com.example.corkovahybrid-1, / vendor / lib, / System / lib]]  

I have also seen this resource: but my problem was not fixed.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -