0
我在phonegap方面很新颖,现在我试图安装nfc插件而没有任何成功。 我认为这可能适用于任何插件。在Phonegap(NFC)中安装插件
我试图手动安装它,因为插件没有为我工作。 我试过不同的方法,但没有。
我现在拥有的是:添加
的Config.xml以该字符串:
<gap:plugin name="com.chariotsolutions.nfc.plugin"/>
与脚本中的index.html正确放置:
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/phonegap-nfc.js"></script>
<script type="text/javascript" src="js/index.js"></script>
在文件插件目录名为:
com.chariotsolutions.nfc.plugin
放置在项目的根具有这种结构
/src/com/chariotsolutions/nfc/plugin/
随着2个文件内的SCR文件夹:NfcPlugin.java和Util.java
收到错误总是:
Failed to initialize the NfcPlugin Class not found
谢谢