Comments (3)
This package is not actively maintained at the moment, so I am not 100% sure. However it doesn't look like something changed for Ionic Native modules. Are you using the Ionic Native module in combination with the @ionic-native/camera
module?
I think your problem is not related to Ionic, but to the OpenALPR settings. Can you share more about your usecase / config?
from cordova-plugin-openalpr.
Hi iMicknl,
I'm using this plugin in ionic v4. Plugin installed successfully but got error while making the build for android. Here are the errors:
BUILD FAILED in 2s
27 actionable tasks: 5 executed, 22 up-to-date
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:10: error: package com.openalpr.jni does not exist
import com.openalpr.jni.Alpr;
^
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:11: error: package com.openalpr.jni does not exist
import com.openalpr.jni.AlprException;
^
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:12: error: package com.openalpr.jni does not exist
import com.openalpr.jni.AlprPlate;
^
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:13: error: package com.openalpr.jni does not exist
import com.openalpr.jni.AlprPlateResult;
^
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:14: error: package com.openalpr.jni does not exist
import com.openalpr.jni.AlprResults;
^
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:15: error: package com.openalpr.util does not exist
import com.openalpr.util.Utils;
^
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:149: error: cannot find symbol
private Alpr initAlpr(JSONObject options, CallbackContext callbackContext) {
^
symbol: class Alpr
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:184: error: cannot find symbol
private JSONArray buildResponse(AlprResults results, JSONArray array) throws JSONException {
^
symbol: class AlprResults
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:79: error: cannot find symbol
Alpr alpr = initAlpr(options, callbackContext);
^
symbol: class Alpr
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:80: error: cannot find symbol
AlprResults results = null;
^
symbol: class AlprResults
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:85: error: cannot find symbol
} catch (AlprException e) {
^
symbol: class AlprException
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:114: error: cannot find symbol
Alpr alpr = initAlpr(options, callbackContext);
^
symbol: class Alpr
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:115: error: cannot find symbol
AlprResults results = null;
^
symbol: class AlprResults
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:120: error: cannot find symbol
} catch (AlprException e) {
^
symbol: class AlprException
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:164: error: cannot find symbol
Utils.copyAssetFolder(context.getAssets(), "runtime_data",
^
symbol: variable Utils
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:170: error: cannot find symbol
Alpr alpr = new Alpr(country, conf_file, runtime_dir); //Make new ALPR object with country EU and the config files from assets.
^
symbol: class Alpr
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:170: error: cannot find symbol
Alpr alpr = new Alpr(country, conf_file, runtime_dir); //Make new ALPR object with country EU and the config files from assets.
^
symbol: class Alpr
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:185: error: cannot find symbol
for (AlprPlateResult result : results.getPlates()) {
^
symbol: class AlprPlateResult
location: class OpenALPR
/Users/developer/Documents/Rahulmaurya_projects/vipark/vipark/platforms/android/app/src/main/java/org/apache/cordova/openalpr/OpenALPR.java:186: error: cannot find symbol
for (AlprPlate plate : result.getTopNPlates()) {
^
symbol: class AlprPlate
location: class OpenALPR
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
19 errors
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 2s
Please suggest something to solve this issue.
thank you in advance.
from cordova-plugin-openalpr.
Anyone got this working on Ionic 4?
I'm taking the photo but the result of the scan is not returned.
Did you successfully installed the plugin and made build successfully? Because After plugin installation in ionic v4 I'm not able to make the build.
from cordova-plugin-openalpr.
Related Issues (20)
- Example/Usage With Cordova-Plugin-Camera HOT 4
- Issue with Cordova Platforms : android 7.0.0 HOT 4
- No rego recognized or error message - 0: No image found for given file path. HOT 5
- Scanning retunrs nothing HOT 11
- Plugin Not Fetching Data From South Africa License Plate HOT 3
- TypeError cannot read property 'scan' of undefined HOT 2
- Error in Success callbackId: OpenALPR1194570412 : TypeError: callback.success.apply is not a function HOT 5
- I'm not able to use this plugin in ionic v4. HOT 1
- Not working on arm64-v8a, x86 or x86_64 Android devices. HOT 8
- add full support setDefaultRegion HOT 3
- Always returning empty array HOT 2
- Not working no response no error HOT 2
- Android 64-bit support HOT 2
- openalpr.conf changes not being picked up when app built HOT 2
- Enable Bitcode for ios HOT 1
- this.openalpr.scan is not a function / undefined
- Modern iOS / XCode / Capacitor support HOT 3
- Android armeabi-v7a issue? HOT 1
- java.lang.UnsatisfiedLinkError: dlopen failed: library "libopenalprjni.so" not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-openalpr.