Dynamsoft / capture-vision-cordova-samples

Dynamsoft Capture Vision Cordova SDK Samples
Other
5 stars 8 forks source link

Android application consuming the dynamsoft-capture-vision-cordova plugin fails to build #55

Open ragrum opened 8 months ago

ragrum commented 8 months ago

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 commented 8 months ago

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.