-
Notifications
You must be signed in to change notification settings - Fork 346
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
Can't compile QZXingLive example #34
Comments
Hello, are you still experiencing issues with the compilation? |
I try to compile examples today with following results:
|
I would suggest you increase the target API level from 19 (Android 4.4.x) to something larger. I would expect that after downloading the new SDKs your application would be functional for Android 4.4 as well. For instance, i use target API level 25 and in have installed the same APK to an Android 4.2 and it worked. Could this be a solution to your case? |
I installed API 25 via SDK Manager.exe and opened QZXingLive example and checked whether API 25 is selected (it was - even it not existed before), run qmake, and rebuild. But still no luck... I got following error: -set-mode-check: -set-debug-files: -check-env: -setup: -set-debug-mode: -debug-obfuscation-check: -pre-build: -build-setup: -code-gen: -pre-compile: -compile: BUILD FAILED Total time: 1 second |
Ok! Now I got other error:
BUILD FAILED Total time: 6 mins 6.382 secs |
This is because the path name becomes very long. In the project settings either deactivate the shadow build, or just shorten the shadow build folder name (i.e. from "build-QZXingLive-Desktop_Qt_5_9_0_MinGW_32bit2-Debug" to "QZXingLive-android"). |
from time to time I'm also getting this error from my projects. |
@ftylitak - Many thanks! Now it works on Android! Now you can close this thread. |
I am glad i helped! :) |
Hello Can you please guide on what could be wrong here.
Greatful for your time. |
Hi
Some time ago I successfully compile and run QZXingLive example. But I cant remember what it is needed to be done in order to do this. First thing what I need to do is fix this line in Utilities.java:
ArrayList<String> permissionsToRequest = new ArrayList<>();
Correct is:
ArrayList<String> permissionsToRequest = new ArrayList<String>();
What is strange to me is the necessity some Java code (personally I hate this language!).
But it helps only a little. And more serious bug incoming:
Why I want again compile this example? Because I want to check whether it hangs when capture rectangle is bigger than 0,5width and 0,5height of the mobile screen. When I set it bigger (say full screen size or 0,8width and 0,8height then my app hangs when capture screen runs (it runs correctly when it had 0,5width and 0,5height).
I need bigger capture rectangle, because for our need is essential to capture QZXing.DecoderFormat_CODE_128 codes. And with capture rectangle in size 0,5width and 0,5height of the screen it does not capture at all. So I think that resolution is too low. But bigger capture rectangle hangs my app (as I mention above).
I try to run QZXingLive example on Android 4.4.2 (Api 19). Maybe do you use feature some newer Api in this example?
The text was updated successfully, but these errors were encountered: