I've followed the steps to embed a cordova webview in an android studio project by following these steps and it built successfully: Cordova Embedded WebView Android
I'm trying to install the cordova plugin.
What I did so far was create an empty cordova project. Add the android file plugin.
Then I copied over the plugins folder along with cordova.js and cordova_plugins to the android studio assets/www directory. I also added the config.xml file to the res/xml directory.
The error I'm getting is:
11-04 12:00:37.310 12146-12146/com.example.cordovahybrid W/System.err﹕ java.lang.ClassNotFoundException: org.apache.cordova.file.FileUtils
11-04 12:00:37.310 12146-12146/com.example.cordovahybrid W/System.err﹕ at java.lang.Class.classForName(Native Method)
11-04 12:00:37.320 12146-12146/com.example.cordovahybrid W/System.err﹕ at java.lang.Class.forName(Class.java:251)
11-04 12:00:37.320 12146-12146/com.example.cordovahybrid W/System.err﹕ at java.lang.Class.forName(Class.java:216)
11-04 12:00:37.320 12146-12146/com.example.cordovahybrid W/System.err﹕ at org.apache.cordova.PluginManager.instantiatePlugin(PluginManager.java:345)
and also:
11-04 12:00:37.350 12146-12146/com.example.cordovahybrid W/System.err﹕ Caused by: java.lang.NoClassDefFoundError: org/apache/cordova/file/FileUtils
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.cordova.file.FileUtils" on path: DexPathList[[zip file "/data/app/com.example.cordovahybrid-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.cordovahybrid-1, /vendor/lib, /system/lib]]
I've also looked at this resource: Cordova 3.5 embedded webview with plugins but it did not fix my problem.