Giter VIP home page Giter VIP logo

Comments (3)

iMicknl avatar iMicknl commented on May 24, 2024

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.

rahul-ionic avatar rahul-ionic commented on May 24, 2024

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.

rahul-ionic avatar rahul-ionic commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.