breautek commented on issue #1758:
URL: 
https://github.com/apache/cordova-android/issues/1758#issuecomment-2580317639

   Based on the given output for the first one, barcodescanner it looks like it 
might include its own gradle files which hasn't been updated.
   
   > Could not find method compile() 
   
   This refers to dependency references, in most cases the suitable replacement 
is `implementation`.
   
   Old:
   
   ```
   dependencies {
       compile 'foo:1.0.0'
   }
   ```
   
   New:
   
   ```
   dependencies {
       implementation 'foo:1.0.0'
   }
   ```
   
   > A problem occurred configuring project ':app'.
   > compileSdkVersion is not specified. Please add it to build.gradle
   
   This is saying that the `app` module (a module that Cordova manages) is 
missing `compileSdkVersion`. Does not appear to be related to the plugin. So 
this suggest that you might be using an older cordova-android version, but 
perhaps with gradle version overrided. cordova-android@13 should be setting 
this property in its builds. It might be that the plugin is causing the native 
project to not fully generate too.
   
   For the QR scanner plugin, it looks like it suffers from the same issues, 
but I had a peak at 
https://github.com/bitpay/cordova-plugin-qrscanner/blob/master/src/android/qrscanner.gradle
 and it uses `jcenter` which is now defunct. If the required dependencies are 
not available elsewhere this plugin may not be fixable.
   
   Additionally it uses `com.android.support:appcompat-v7:23.1.0` which might 
not be compatible with AndroidX applications (which Cordova now uses).
   
   > Is it possible that there are no plugins to scan qr code?... or is there 
another way that I haven't evaluated?
   
   Certainly is possible. You can try scanning through forks 
(https://github.com/phonegap/phonegap-plugin-barcodescanner/forks or 
https://github.com/bitpay/cordova-plugin-qrscanner/forks), or even fork the 
plugin itself. It seems obvious that the original authors are no longer 
maintaining these plugins. Alternatively [a new 
plugin](https://cordova.apache.org/docs/en/12.x/guide/hybrid/plugins/index.html)
 can be created.
   
   I'm closing this issue because it doesn't describe any issues related to 
Apache's Cordova Android. But I hope the information I've provided helps.


-- 
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

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