Class not found for plugin installed by plugman

泪湿孤枕 提交于 2020-01-07 04:51:28

问题


I have added a plugin to my cordova application using the following command

plugman install --platform android --project ./platforms/android --plugin https://github.com/zendrive/zendrive-sdk-phonegap-plugin.git

But, if I run

cordova run android --device 

The config.xml file of android project automatically changes to remove the zendrive-sdk-phonegap-plugin and I receive "class not found" error when using the plugin api from code.

NOTE: The apk generated by phonegap cloud build has the same behaviour "class not found" and this plugin works just fine if I add plugin using

cordova plugin add https://github.com/zendrive/zendrive-sdk-phonegap-plugin.git

回答1:


Because your class src/android/com/zendrive/phonegap/ZendriveCordovaPlugin.java not found that you declared inside plugin.xml.



来源:https://stackoverflow.com/questions/27578487/class-not-found-for-plugin-installed-by-plugman

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!