-
Notifications
You must be signed in to change notification settings - Fork 63
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
Android Crash - 64 bit architecture missing #8
Comments
Why would it not find |
I am looking into this issue right now. I will let you know when I have something. The android version of the plugin did work for you when using the |
This crash is on Android in an existing project where I added the plugin. Other plugins used in this project:
|
This one is concerning as I have no way to include this plugin to test in an existing project. What could be causing the exception? Is the plugin not installed correctly (i.e. libopencv_java3.so)? |
I have same issue, maybe this can fix it |
Currently the scan library does not support 64 bit builds. This is most likely the cause. It says libopencv_java3.so is missing because it is looking within the 64 bit folder which does not exist. There must be a way to force a 32 bit build (Temporary solution). Looking into this right now. Will try and add 64 bit support as well. |
Thanks, @ChrisTomAlx for quickly investigating the issue. |
This should work. Will be adding this to the plugin soon. In the meantime, if possible do let me know if this solution works in your apps. If it doesn't, I will try another route. |
For some reason, I can't seem to recreate this issue on my end. Tested on quiet a few devices. Trying to succeed at failure is harder than I thought it would be. @Varun-garg @dylanvdmerwe Do let me know if you guys are having any luck at your end. |
Hi I am not good at gradle, and this config didn't work for me. Could you check it out.
Could not including the line be the cause?
|
I added the ndk stuff from the link above to my
System info
|
hey @dylanvdmerwe could you send your full |
Here it is as a text file. Not sure if it helps or not. |
Thanks @dylanvdmerwe , actually I was trying on
|
Awesome news. @ChrisTomAlx how do we get this change into the plugin so it's setup on adding of the plugin? |
@dylanvdmerwe @Varun-garg Awesome!! Thanks for the help guys. I will implement this into the plugin now. Will get back to you once its done. |
I have made changes to the library, but like I said, I wasn't able to test it. If you guys get the time please do test it out and let me know. |
Let me know when I can test @ChrisTomAlx. I'm not seeing any commits. |
@dylanvdmerwe I am making edits to the library. It did not work and so will be reverting back and looking for a new route to add this to the plugin. If all else fails will update documentation. |
@dylanvdmerwe I have made the necessary edits to the library, allowing it to use 32 bit builds. You won't see commits in the plugin. The plugin has the library as a dependency. I tested it out on my end with no problems. But I don't think it helps since my device is not using a 64 bit build. Please feel free to test it on your 64 bit device when you get the time. If you run into issues, i will see what else can be done. Thank you for taking the time to help us. Really appreciate it. Oh here is the link to the library we are using in the plugin, if you guys need it. I have credited the original authors in my readme (You can get the link to the original library there). |
I have just removed my platform and plugins folder and readded android@7.1.0. The app crashes with the following error:
I checked the build.gradle file and it did not have the ndk stuff in.
I added it manually in Android Studio as described above and the app ran properly and did not crash. |
Yup, It crashed! @ChrisTomAlx This library could be very useful in an app that we are building, and we also appreciate the effort you are putting in it. Great work guys! |
Again, adding the following in plugins
|
I guess a 64 bit build is the way to go now. Will be closing this issue after adding this info to the documentation and a 64 bit build will be added to the future enhancement plans. Thank you guys for all the help! |
Note that I still have to edit the gradle file otherwise this crashes. Retested on version 2.0.1. |
@ChrisTomAlx I have just cloned one of my projects and added android as a platform from scratch (deleted plugins folder) and when I run In Android Studio you still need to edit the gradle file as per my instructions above to prevent the crash. Maybe I am missing something? |
document-scanner version 1.1.1
Crashing in an app with the following code:
Info:
The text was updated successfully, but these errors were encountered: