SandroMachado / openalpr-android

Android Automatic License Plate Recognition library (http://www.openalpr.com) ported for android.
Apache License 2.0
770 stars 272 forks source link

Crash immediately after pressing the "Take Picture" button. #53

Closed wilsonhws closed 7 years ago

wilsonhws commented 7 years ago

Hi, can you make a detailed tutorial about this openalpr library? I've been trying to import this lib to my project, but there's errors everywhere. Please help.

arnoldcoder commented 7 years ago

I've just created a new project, added the dependencies and copied the sample project's Mainactivity. You also have to add WRITE_EXTERNAL_STORAGE permission to the AndroidManifest.xml file.

arnoldcoder commented 7 years ago

If you are using Android Studio, you should have an error related to this permission miss.

Here is my sample working project https://www.dropbox.com/s/920i716rgv2yud4/licence.zip?dl=0

wilsonhws commented 7 years ago

image

@arnoldcoder Thanks for the dropbox link, but this is the error that I've been getting on my S7 edge. Is this the permission error you talked about?

wilsonhws commented 7 years ago

@arnoldcoder Thanks, I've solved it by setting the target sdk version to 22.

SandroMachado commented 7 years ago

Looks like the issue is fixed. I will close the issue, please let me know if I need to reopen.