Closed federicovezzoli closed 9 years ago
@federicovezzoli I can't support manually installing the plugin.
I recommend using the Cordova CLI to install the plugins and build the project. Alternately plugman should work if you get all the arguments correct.
If you really want to install manually, create a new project with Cordova CLI, look where all the files go and try to duplicate in your project.
cordova create nfc com.example.cordova.nfc NFC
cd nfc
cordova platform add android
cordova plugin add com.chariotsolutions.nfc.plugin
corodova run
ok, thanks! I did some improvements thank to your suggestions.
Sorry to bother, I'm pretty new on phonegap, I'm trying to install the nfc plugin without any success for now.
I'm trying to install it manually, since the plugman is not working for me. I've tried different ways but nothing. What I have now is:
Config.xml with this string added:
The index.html with those scripts correctly placed:
The file in the plugins directory named: com.chariotsolutions.nfc.plugin
The scr folder placed in the root of the project with this structure /src/com/chariotsolutions/nfc/plugin/ With 2 files inside: NfcPlugin.java and Util.java
The error i receive is always: Failed to initialize the NfcPlugin Class not found
thanks