Skip to content
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

bug: Android Build gradle 4.0.0 #3003

Closed
1 of 4 tasks
andirsun opened this issue May 28, 2020 · 6 comments · Fixed by #3016
Closed
1 of 4 tasks

bug: Android Build gradle 4.0.0 #3003

andirsun opened this issue May 28, 2020 · 6 comments · Fixed by #3016

Comments

@andirsun
Copy link

andirsun commented May 28, 2020

Bug Report

Capacitor Version

npx cap doctor output:
Latest Dependencies:

@capacitor/cli: 2.1.1

@capacitor/core: 2.1.1

@capacitor/android: 2.1.1

@capacitor/electron: 2.1.1

@capacitor/ios: 2.1.1

Installed Dependencies:

@capacitor/electron not installed

@capacitor/cli 2.1.1

@capacitor/android 2.1.1

@capacitor/ios 2.1.1

@capacitor/core 2.1.1

[success] Android looking great! 👌
Found 2 Capacitor plugins for ios:
@codetrix-studio/capacitor-google-auth (2.1.1)
capacitor-apple-login (0.0.6)
[success] iOS looking great! 👌

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Current Behavior

My Android build gradle crash after upgrade from 3.6.3 to 4.0.0

Android studio autoupdate to v4.0
before :
distributionUrl=https://services.gradle.org/distributions/gradle-5.6.4-all.zip
after :
distributionUrl=https://services.gradle.org/distributions/gradle-6.1.1-all.zip

im getting this error in Android studio console

Cause: org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext

Expected Behavior

Sample Code or Sample Application Repo

Reproduction Steps

Other Technical Details

npm --version output:
6.14.4
node --version output:
v12.16.0
pod --version output (iOS issues only):

Other Information

Stack similar error
https://stackoverflow.com/questions/61066014/ionic-capacitor-app-give-me-lots-of-errors

@bleuscyther
Copy link
Contributor

bleuscyther commented May 29, 2020

This is happening after the last Android Studio update to 4.0. You are prompted to update to the new stable version of the plugin and if you accept it will put it on version 4.0.0. This version has a minimum requirement of Gradle version 6.0.0.
You can temporarily fix the issue by downgrading both versions Gradle and Gradle plugin in File -> Project Structure -> Project.

@smpeters
Copy link
Contributor

From #3009

There is a known issue with the bintray-release Gradle plugin used in the capacitor-android Gradle file included in Android apps

novoda/bintray-release#298

For now, the workaround is don't update the Android build tools and Gradle plugin after upgrading to Android Studio 4.0.

Also, bintray-release isn't really needed for app developers. Can this be removed from the capacitor-app build.gradle and added but commented out in one android-template build.gradle files? It's not needed for app developers. Plugin developers could then uncomment it as needed.

@imhoffd
Copy link
Contributor

imhoffd commented May 30, 2020

👋 This issue is fixed in Capacitor 2.1.2. Please let us know if you have any further issues! Thanks!

@guiltm
Copy link

guiltm commented May 30, 2020

👋 This issue is fixed in Capacitor 2.1.2. Please let us know if you have any further issues! Thanks!

Fixed. Thank you.

@rickynguyenc
Copy link

Fixed. Thank you so much !

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 11, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants