ftylitak/qzxing

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

Opened this issue · 1 comments

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.

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.