You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cordova build should be successful with cordova-android 11 like with previous versions.
Confirmed to be OK with cordova-android 10.1.2.
Actual Behaviour
1: Task failed with an exception.
-----------
* Where:
Script 'C:\cdv-scanner\hello\platforms\android\@red-mobile\cordova-plugin-barcodescanner\hello-barcodescanner.gradle' line: 9
* What went wrong:
A problem occurred evaluating script.
> Could not find method compile() for arguments [{name=barcodescanner-release-2.1.7, ext=aar}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
cordova: 11.0.0
cordova-android: 11.0.0
Plugin version
cordova plugin version | grep @red-mobile/cordova-plugin-barcodescanner: 9.0.7
Sample Code that illustrates the problem
Logs taken while reproducing problem
While building with cordova-android 10.1.2, the following warning is shown:
WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
To those facing Android v11 with build error, edit the file "platforms/android/@red-mobile/cordova-plugin-barcodescanner/app-barcodescanner.gradle", replace the "compile" to "implementation", then build again.
Expected Behaviour
cordova build
should be successful with cordova-android 11 like with previous versions.Confirmed to be OK with cordova-android 10.1.2.
Actual Behaviour
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
Plugin version
Sample Code that illustrates the problem
Logs taken while reproducing problem
While building with cordova-android 10.1.2, the following warning is shown:
And yes, cordova-android 11 updated
AGP 4.2.2 -> 7.1.0 -> 7.2.1
(see apache/cordova-android#1410 and apache/cordova-android#1446)!The text was updated successfully, but these errors were encountered: