插件安装的插件找不到类 [英] Class not found for plugin installed by plugman

查看:197
本文介绍了插件安装的插件找不到类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用以下命令向cordova应用程序添加了一个插件:

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

但是,如果我运行

  cordova运行android --device 

android项目的config.xml文件自动更改以删除zendrive-sdk-phonegap-plugin,并在使用时收到class not found插件api从代码。



注意:
由phonegap云构建生成的apk具有相同的行为类未找到,这个插件工作正常,如果我添加插件使用



  cordova插件添加https://github.com/zendrive/zendrive-sdk-phonegap-plugin.git 
<因为你的类 src / android / com / zendrive /

phonegap / ZendriveCordovaPlugin.java 未发现您在 plugin.xml 中声明。


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

解决方案

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

这篇关于插件安装的插件找不到类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆