FranGhe opened a new issue, #1758:
URL: https://github.com/apache/cordova-android/issues/1758

   I would like to scan the QR code with my Cordova app but I'm having trouble 
build it.
   I searched for some plugins to do this but the ones I found are old and it 
fails in the build.
   
   These are the plugin found:
   https://github.com/bitpay/cordova-plugin-qrscanner
   this is the error:
   ```
   FAILURE: Build completed with 2 failures.
   
   1: Task failed with an exception.
   -----------
   * Where:
   Script 
'/Users/francescoghezzi/NetBeansProjects/wma-paesemio-cortona_android/platforms/android/phonegap-plugin-barcodescanner/cortona-barcodescanner.gradle'
 line: 9
   
   * What went wrong:
   A problem occurred evaluating script.
   > Could not find method compile() for arguments 
[{name=barcodescanner-release-2.1.5, ext=aar}] on object of type 
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
   
   * Try:
   > 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.
   > Get more help at https://help.gradle.org.
   
==============================================================================
   
   2: Task failed with an exception.
   -----------
   * What went wrong:
   A problem occurred configuring project ':app'.
   > compileSdkVersion is not specified. Please add it to build.gradle
   
   * Try:
   > 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.
   > Get more help at https://help.gradle.org.
   
==============================================================================
   
   Deprecated Gradle features were used in this build, making it incompatible 
with Gradle 9.0.
   
   You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.
   
   For more on this, please refer to 
https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings
 in the Gradle documentation.
   ```
   
   and the other one
   https://github.com/phonegap/phonegap-plugin-barcodescanner
   this is the error:
   
   ```
   FAILURE: Build completed with 2 failures.
   
   1: Task failed with an exception.
   -----------
   * Where:
   Script 
'/Users/francescoghezzi/NetBeansProjects/wma-paesemio-cortona_android/platforms/android/cordova-plugin-qrscanner/cortona-qrscanner.gradle'
 line: 6
   
   * What went wrong:
   A problem occurred evaluating script.
   > Could not find method compile() for arguments 
[com.journeyapps:zxing-android-embedded:3.3.0] on object of type 
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
   
   * Try:
   > 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.
   > Get more help at https://help.gradle.org.
   
==============================================================================
   
   2: Task failed with an exception.
   -----------
   * What went wrong:
   A problem occurred configuring project ':app'.
   > compileSdkVersion is not specified. Please add it to build.gradle
   
   * Try:
   > 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.
   > Get more help at https://help.gradle.org.
   
==============================================================================
   
   Deprecated Gradle features were used in this build, making it incompatible 
with Gradle 9.0.
   
   You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.
   
   For more on this, please refer to 
https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings
 in the Gradle documentation.
   ```
   
   The issues is the same.
   
   Is it possible that there are no plugins to scan qr code?... or is there 
another way that I haven't evaluated?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to