chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
706 stars 559 forks source link

PhoneGap Build issue #191

Closed ccchai closed 8 years ago

ccchai commented 9 years ago

For some reasons, I can't get 'git' to work in Cordova CLI, so I am creating my app using PhoneGap Build NFC plugin. It is working perfectly until I add another PhoneGap Build plugin, and my app fails to build for Android platform with the following error:

Error - Two of the plugins in your app are incompatible as they both add a file with the same name.

I suspect the problem is caused by this file:

[source-file src="src/android/org/apache/cordova/api/Dummy.java" target-dir="src/org/apache/cordova/api"/]

is it possible to offer a PhoneGap Build plugin without this Dummy.java or use more specific name like 'chariotsolutions_nfc_dummy.java'?

don commented 9 years ago

Dummy.java is added for compatibility with old versions of Cordova when there was an API change. If you're using PhoneGap 5 or Cordova 5 you don't need this file. Fork one of the plugins on github and remove Dummy.java from the source tree and plugin.xml. I'll remove this in a future release of the plugin.

Also see https://github.com/don/BluetoothSerial/issues/145

resonantbreath commented 8 years ago

+1 the current repository of plugins will be disconnected October 15th 2015 and will be accessed with 3.0+ only fairly soon

resonantbreath commented 8 years ago

You can use my fork, it removes the Dummy.java cordova plugin add https://github.com/resonantbreath/phonegap-nfc --save

don commented 8 years ago

Dummy.java was removed in version 0.6.4