Cannot resolve zxing in phonegap-plugin-barcodescanner #518
Replies: 2 comments
-
It sounds like the Usually this would result in a compile-time error though, not a run-time error so that's a little bit weird. But it's hard to suggest how to fix without knowing more details. The starting place is how the plugin is pulling in the dependency for bar code scanning. A quick google search led me to find https://github.com/zxing/zxing which states that the project is deprecated and that:
So it might be worth trying to find an alternate plugin that is maybe using a different native library? |
Beta Was this translation helpful? Give feedback.
-
As an alternative plugin, you could try @monaca/monaca-plugin-barcode-scanner and see if it works for what you need? That plugin does not use the |
Beta Was this translation helpful? Give feedback.
-
import com.google.zxing.client.android.CaptureActivity;
import com.google.zxing.client.android.encode.EncodeActivity;
import com.google.zxing.client.android.Intents;
In above imports, facing issue with cannot resolve symbol zxing in phonegap-plugin-barcodescanner plugin. Can somone please suggest how to fix this issue?
Main problem is that on opening camera in cordova android app , it is able to open the popup to read barcode but it immediately restarts the application instead of performing scan operation.
When i observe the logcat, the result code was -1.
Beta Was this translation helpful? Give feedback.
All reactions