Cordova 3.5 embedded webview with plugins

前端 未结 2 612
你的背包
你的背包 2021-01-14 05:57

I have an existing native Android app to which I\'m adding a cordova webview. This is in the new gradle project format with Intellij. I\'ve successfully gotten the cordova a

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-14 06:21

    Here is some input on how I came though, I am in a similar position like the OP, embedding a Cordova Web View in my Native Android Application. After executing plugman install --platform android --project --plugin org.apache.cordova.battery-status --www /assets/www/scripts What happens is you get a new 'Cordova' folder in your original 'main' Folder, (Where your AndroidManifest.xml is). Besides that, there is the 'src' folder with the code you actually need generated.

    What I did, was copying the org folder from src to the 'java' folder. And everything worked.

提交回复
热议问题