Skip to content
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 application consuming the dynamsoft-capture-vision-cordova plugin fails to build #55

Open
ragrum opened this issue Jan 8, 2024 · 1 comment

Comments

@ragrum
Copy link

ragrum commented Jan 8, 2024

The Android application consuming the dynamsoft-capture-vision-cordova plugin fails to build with the following error:

[23:42:39]: ▸ FAILURE: Build completed with 2 failures.
[23:42:39]: ▸ 1: Task failed with an exception.
[23:42:39]: ▸ -----------
[23:42:39]: ▸ * Where:
[23:42:39]: ▸ Script '/home/runner/work/project/platforms/android/dynamsoft-capture-vision-cordova/test-barcodereader.gradle' line: 16
[23:42:39]: ▸ * What went wrong:
[23:42:39]: ▸ A problem occurred evaluating script.
[23:42:39]: ▸ > No signature of method: test_barcodereader_8rt3ypgrvfhme12j7io6xr0vw.android() is applicable for argument types: (test_barcodereader_8rt3ypgrvfhme12j7io6xr0vw$_run_closure1) values: [test_barcodereader_8rt3ypgrvfhme12j7io6xr0vw$_run_closure1@37a72807]
[23:42:39]: ▸ * Try:
[23:42:39]: ▸ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[23:42:39]: ▸ ==============================================================================
[23:42:39]: ▸ 2: Task failed with an exception.
[23:42:39]: ▸ -----------
[23:42:39]: ▸ * What went wrong:
[23:42:39]: ▸ A problem occurred configuring project ':app'.
[23:42:39]: ▸ > compileSdkVersion is not specified. Please add it to build.gradle
[23:42:39]: ▸ * Try:
[23:42:39]: ▸ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[23:42:39]: ▸ ==============================================================================

We are building the Android app with this command: bundle exec fastlane android build.

We are using cordova-android@9.1.0 and dynamsoft-capture-vision-cordova@1.0.5.

Would you happen to know what's the issue here?

@Dynamsoft-Henry
Copy link
Collaborator

Dynamsoft-Henry commented Jan 10, 2024

Hi @ragrum

Our SDK is suggested to work with Cordova 10.1.1+. We don't support Cordova 9.

It seems that the above errors are not caused by the Cordova version. However, you still can't use dynamsoft-capture-vision-cordova@1.0.5 together with cordova-android@9.1.0 even if the errors are resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants