Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QZXingLive example - Is this up-to-date for and Qt 5.15.5 on android? #208

Open
No-One-Special opened this issue Aug 31, 2021 · 1 comment

Comments

@No-One-Special
Copy link

I have experienced many issues building and then running the QZXingLive example on my android phone.
The same example runs perfectly on Windows.

The BarcodeEncoder example also runs perfectly on both android and Windows.

With a number of changes to I finally managed to build QZXingLive for android but it doesn't run properly.
It shows a blank screen and no camera input is displayed.

To get the build to work I had to modify:

  1. examples/QZXingLive/android/gradle/wrapper/gradle-wrapper.properties
    to use gradle-6.9.1-bin.zip
  2. examples\QZXingLive\android\build.gradle
    to use com.android.tools.build:gradle:4.1.1, and com.android.support:support-compat:28.0.0
  3. examples/QZXingLive/android/AndroidManifest.xml
    to use

Additionally, from Qt Creator, the debugger can be attached but the QML debugger is not.
It shows the following error: "Could not connect to the in-process QML debugger."

Any advice would be much appreciated.

Thank you.

@ftylitak
Copy link
Owner

Just a small update, QZXinigLive has been updated mainly for Qt 6 and greater. For Qt 6.2 and on, all custom android code has been removed since Qt handles permission requests etc. I have made some tests and it works fine when building for Android 10.

It is still pending to check your findings for Qt 5.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants