Closed shepherdsiduli closed 10 years ago
Hi,
have you followed instructions https://github.com/PDF417/pdf417-phonegap#android ? This seems like a problem with dependency on pdf417 mobi library project.
to verify this, can you post your project/platforms/android/project.properties contents?
Here are steps I followed
Step 1 : git clone git@github.com:PDF417/pdf417-phonegap.git
Step 2 : cordova create testcordova Step 3 : cd testcordova Step 4: cordova plugin add ../pdf417-phonegap/Pdf417 Step 5: cordova platform add android Step 6: android update project --target 12 --path platforms/android/ --library ../../../pdf417-phonegap/Pdf417/src/android/Pdf417MobiSdk Step 7: android update project --name testphone --target 12 --path platforms/android/ Step 8: android update lib-project --target 12 --path ../pdf417-phonegap/Pdf417/src/android/Pdf417MobiSdk/ Step 9 : cordova build android Then the error followed
Also here are the contents of the project.properties files :
#
#
#
android.library.reference.1=CordovaLib
target=android-17 android.library.reference.2=../../../pdf417-phonegap/Pdf417/src/android/Pdf417MobiSdk
Hi, we have updated MyViefinder class that was causing problems. Please, try reinstalling new plugin version, it should fix your problem.
Thanks its now working
Hi guys,
I need help guys, I have been trying to do the sample project on following link https://github.com/PDF417/pdf417-phonegap I keep getting a compilation error, Please see error log below
BUILD FAILED /usr/local/Cellar/android-sdk/22.6.2/tools/ant/build.xml:720: The following error occurred while executing this line: /usr/local/Cellar/android-sdk/22.6.2/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds Error code 1 for command: ant with args: debug,-f,/Users/xxx/testcordova/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: /Users/xxx/testcordova/platforms/android/cordova/build: Command failed with exit code 2 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:755:16) at Process.ChildProcess._handle.onexit (child_process.js:822:5)