-
Notifications
You must be signed in to change notification settings - Fork 761
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
Gradle 6.5 - "Could not find method leftShift()" #425
Comments
It appears to be caused by
However I don't see anywhere how this gradle file is included, and for me this gradle file doesn't actually run. Would you mind sharing a sample reproduction app? |
@breautek I think you have to add it manually according to the instructions here: https://github.com/apache/cordova-plugin-file#slow-recursive-operations-for-android_asset
|
I think this is a low hanging fruit to fix - any Hacktoberfest volunteers here? :) |
I know how to fix it, honestly. Just remove the << and wrap the whole block inside a doLast { } - block. and @steinjak is right. The script is added manually. It is possible to make changes to it locally and using this version, but I felt it was in good sport to have a non-deprecated version of the script included. |
I see. I wonder if there is any reason why this is an opt-in. Imo the plugin should just include the gradle reference automatically. |
PR is welcome, I just wanted to make sure the code that appeared to be offending was actually something used. |
Bug Report
gradle.extras fail with gradle 6.5
Problem
When using gradle 6.5 to build a cordova Android app, the build crashes with the following error:
What is expected to happen?
It is expected to build without issues.
What does actually happen?
See problem.
Information
This seems to relate to the fact that the << - notation is deprecated in newer gradle versions.
https://stackoverflow.com/questions/55793095/could-not-find-method-leftshift-for-arguments-after-updating-studio-3-4
Command or Code
building a cordova app to Android
Environment, Platform, Device
Fresh installed Ubuntu with the Angular/Cordova stack.
Version information
Angular: 10.0.14
Cordova: 10
cordova-plugin-file: 6.0.2
Gradle 6.5
Checklist
The text was updated successfully, but these errors were encountered: