-
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
How can I fix this problem? error: package android.support.v4.app dosen't exit. #45
Comments
Hello @zjq19930322 i will need more information in order to help you. Have you setup the project to use "gradle" instead of "ant"? (here is the location of this setting: #34 (comment)) Can you provide me with some logs? Best regards |
What is the different between "ant" and "gradle"? Actually I am developing my project in Android which is also use the qzxing lib to decode the QRcode. It is normal when I install my project to Android 5.1, but it dosen't work in Android 6.0 because it can't call the camera. I'm trying to find the solution. It may be the reason that I should apply permission dynamically after Android 6.0. May I ask for your help? |
Ant and gradle are different tools for building Android apps. Just always use "gradle" (follow the steps from my previous comment). Moreover, for the permissions i would suggest you first look at QZXingLive example at the following:
Modify and embed these to your code and it should work. In case you face any issue, you are free to contact back and i will try to find some time to take a look at it. |
Am 01.09.17 um 10:01 schrieb Nikolaos Ftylitakis:
for the permissions:
take a look at this cool solution:
https://bugreports.qt.io/browse/QTBUG-50759?focusedCommentId=366811&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-366811
ekke
|
Thanks a lot. I will have a try. Oh, I fogot to tell you that I have built QZXingLive project in Android 6.0 using "ant". But It crash. I have no idea why this happened. The debug info like this:
|
Have you already done the change to the project to use gradle? Moreover, you are targeting Android 6 (API 23). On what device are you testing it on? Is it Android 6 device? |
Now I use gradle and I have built QZXingLive project successfully. When I open app, it ask me for the permissions of camera and RW SDcard and I confirm it. But nothing happend when I get in app. My testing device is Redmi note4 with Android 6.0. Qt give me the debug info like this:
|
@ftylitak Error also happened when I built your project "QZXingLive". The log is as follows:
|
@zjq19930322 in both of your 2 previous comments you refer to the QZXingLive project though in the last comment you mention it as if it was something separate from the previous one. I am a bit confused. Could you please explain better? To my understanding, it is this one project (QZXingLive) that you are trying to make it work. |
I‘m sorry I hadn't express exactly. It actually can decode the QRcode in Android 5.1 but there is nothing shows and it seems that the app can't call camera. When I put my phone camera in front of the QRcode, the app can't decode the QRcode. Its inconceivable. But when I try it in Android 6.0 phone. Nothing happened. Among the bug info there is a red info:
It's so wired. My English is not very good. Glad you can help me debug. |
Confirm the bug! On Android 6.0 does not recognize QR codes. Moreover, if I try to parse the code not using a filter, and directly using the code from the readme
it seems the line
is not working. Although the image displays in the picture on the screen. But in a library like misses. I think the problem here may be with the data buffer. The only way to work with the library that I could implement is to save the image to a file by pressing a button
and then read it from a file
|
Closing this as unresolved. If you continue to experience problems, reopen the issue with updated info. |
@ftylitak My platform system is Android.please give me a hand
The text was updated successfully, but these errors were encountered: