Downloaded AndroidStudio for Windows and importing sample projects from within the AndroidStudio GUI.
Everytime I import a project, it asks me to upgrade Gradle
To take advantage of all the latest features (such as Instant Run),
improvements and security fixes, we strongly recommend that you update
the Android Gradle plugin to version 2.3.0 and Gradle to version 3.3.
You can learn more about this version of the plugin from the release
notes.
Is this normal?
AndroidStudio 2.3
Yes this is normal if the projects you are importing are more than a few weeks old. The latest version of Android Studio and Gradle are pretty new at this point, so it will ask you to update older projects.
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'm using Unity3D to build an Android game, but it looks like Unity is using old versions of Gradle. For example it's using Gradle Wrapper 4.6 instead of the latest one 5.0, or at least the previous latest 4.10.2.
I've tried replacing the gradle lib folder in Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib with a gradle version from Android Studio, Unity started saying invalid gradle installation
P.S: I've asked this on Unity, but either that place is dead, or not much support
I successfully upgrade gradle from 2.10 to 3.5 to build APK in android studio 3, but have problem like this
And this is my build gradle
If you are going to update gradle version specially 3.1+ than you might need to upgrade support lib version too. its weird but it seems compatibility issues between gradle version and support lib version.
I am trying to open a Android Project in Android Studio 1.0.2 which uses
classpath 'com.android.tools.build:gradle:0.12.+'
as its dependency. On opening the project with above dependency I get the following error message.
The project is using an unsupported version of the Android Gradle plug-in (0.12.2). The recommended version is 1.0.0.
Is there a way to run such projects in Android Studio 1.0.+ without upgrading the Gradle plug-in version
Note:
I can upgrade the gradle version and plugin to get it to work OR simply use older version of Android Studio to open the project.
First approach is not desirable since this being a community project I will prefer to leave majority of files unchanged and changing gradle version will also hinder me from testing the build with 0.12.
To successfully build Android project using Android Studion and Gradle you need to use the AS, Gradle and Android Gradle Plugin with versions which are compatible with each other. Check out this page, it's said here, that you can use Android Gradle Plugin 0.12 with Android Studio 0.8.0 - 0.8.11 and there is no way to use it under Android Studio 1.0.
I suggest you convince other people to switch to the newest version of Android Gradle Plugin because 1.0.0 is the stable one and doesn't contain some bugs which were out there in the 0.12.+.