Is there any minimum recommended or required Gradle or Gradle Plugin versions if we intend to target Android 30?
You can have reference to this https://developer.android.com/studio/releases/gradle-plugin
It is always best to use the latest Gradle and AGP, if you're using Beta or Canary distribution, back down one small version if you encounter errors when compiling.
Related
the google play console advised me to use the debugSymbolLevel option, but it seems that requires a higher gradle plugin version(4.1). Currently my Android Gradle Plugin Version is 3.5.4 and my Gradle Version 5.6.4
I know very little about gradle. Is there any reason i shouldn't just select the highest versions for both? If yes which ones should i use?
Android Gradle Plugin Version offers options up to 7.3.1
Gradle Version upt to '8.0-milestone2'
Since the two versions span a lot, there might be a lot of breaking changes for your project. I suggest you doing some backup, trying to choose a stable version of it (7.x) and running the project. Good luck.
So let's say I have an application on android studios using Gradle version 4.1 with Gradle plugin version of 3.0. I have added implementation 'com.facebook.android:facebook-login:8.2.1' to my build.gradle file. However com.facebook.android:facebook-login:8.2.1 is using Gradle version 4.4.
So the only way for me to use this library (and that version) is if my project is on Gradle version 4.4 or greater?
Or is there a way for me to use that library (and that version) without changing my Gradle version?
Thanks.
Update: More Info
So specifically I am talking about using the stripe API. I was on version 6.1.2 but because of some new EU law, I need to update the version I am using to at least 9.1.1.
I noticed the only time I get this error 'apptransformClasseswithdesugarfordebug' when trying to run my app, is after they update there Gradle to use version 3.4.1 from 3.4.0 (not the Gradle plugin). On version of Stripe 9.0.0, my app is able to run, however, after switching to version 9.1.1, I get that error.
Note, my project is on Gradle version 3.1.4 and when it's on Stripe version of Gradle 3.4.0, my app is able to run.
So to wrap it up, I need to know if I need to be on the same version, although I doubt it because my app works with 9.0.0 of Stripe, which is using a different version of Gradle.
I've been staying on the beta channel of Android Gradle Plugin for a while now. Periodically an AGP update will also bump the Gradle version in gradle-wrapper.properties.
When this happens is AGP bumping Gradle to the minimum supported version. Or is this the "desired" version that AGP wants to work with?
What happens if I manually bump Gradle past this? For example, right now I'm on AGP 3.4beta5, which has set Gradle to 5.1.1.
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
What happens if I manually set the version to 5.3 or 5.4? https://gradle.org/releases/ Is this generally a good idea?
https://developer.android.com/studio/releases/gradle-plugin#3-4-0. This link suggests that we can use 'Gradle 5.1.1 or higher'.
In release 3.1.0 of the Android gradle plugin release notes (https://developer.android.com/studio/releases/gradle-plugin) Google writes that the plugin requires:
Build Tools 27.0.3 or higher. Keep in mind, you no longer need to
specify a version for the build tools using the
android.buildToolsVersion property—the plugin uses the minimum
required version by default.
It says it will auto-select the "minimum". So what happens if a fix or improvement is released to the android tools? For example the minimum is 27.0.3 but 28.0.2 has been released with a new version of D8 that may have fixes or improvements but the plugin will continue using 27.0.3 if not otherwise specified so it still seems best to manually select the build tools as needed so you aren't stuck on the minimum version required?
It's the minimum required version, you can keep it as it is now but it's highly recommended to update to the newest version.
I am trying to use plugin com.android.tools.build:gradle:3.0.0-alpha4 in IntelliJ.
But I've got the error
Error:This Gradle plugin requires Studio 3.0 minimum
The android gradle plugin version 2.3.3 supports Intellij.
I need IntelliJ due to I want to use AspectJ + Java 8 in IDE. Android Studio IDE doesn't support AspectJ yet, only gradle plugin.
Is it possible to use new version Android Gradle Plugin 3.0.0 with exactly IntelliJ, not Android Studio?
Thank you.
Android Studio 3.0 features will be merged in IntelliJ IDEA 2017.3.x which is not released yet, you can't update just Android plug-in separately, since it's a bundled plug-in and the synchronization with Android Studio is performed manually at JetBrains.
You can track the progress here.
As workaround you can add in gradle.properties this option:
android.injected.build.model.only.versioned=3
Full answer: https://stackoverflow.com/a/46634836/4050911
As the error states, you'll have to download Android Studio 3.0 (Canary) in order to use gradle plugin 3.0.0.
You need update your gradle version of both file Module level and Project Level as per the error '3.0.0' and then try to build the project