After installing the new windows10 i am facing issue with newer version of android studio dolphin everytime when I open android studio with a new project or an existing project it starts downloading the gradle 7.4 and after sometime i got an error of timeout. I tried a method found on youtube where the gradle wrapper properties are replaced but it did not work.
I faced some difficulties too when I was updating android studio to dolphin version.
Go to gradle-wrapper.properties and try to change distributionUrl value to distributionUrl=https://services.gradle.org/distributions/gradle-7.4-bin.zip
Go to the project structure and change gradle version to 7.4
Related
After updating my apps build gradle and dependencies (I did not update Android Studio itself), Android Studio is giving me this error: Error: Unsupported desugared library configuration version, please upgrade the D8/R8 compiler.
Before the update everything compiled fine.
I am using:
com.android.tools:desugar_jdk_libs:1.2.0 (This was the newest version I could find)
Gradle plugin version 7.2.0
Gradle version 7.5
Android Studio version Chipmunk (2021.2.1)
Did I configuration something wrong? How can I fix this? Thanks in advance!
According to this page, the minimum version of Android Gradle plugin required is 7.3.0-beta03 to be able to upgrade the desugar library to 1.2.0, and 7.3.x is not yet available for Android Studio Chipmunk.
How to Solve this error I amm using Android Studio Version 3.1.2
My Build tool is 27.1.1 and I also download the build tool 21.1 for the Project in which I am working:
You need to upgrade your Gradle version.
Edit the file as shown in the images.
See the official Google plugin page
I am new to android studio. I have updated gradle recently. However, every time I try to build a previously built project, I get a gradle prompt telling me to upgrade to the latest version of gradle.
Question is, is there a way for all android projects to be automatically updated to the latest version of gradle without the prompt? Clicking update now is tiresome.
I am using Android Studio 3.1 with the March 22 Update. Thanks.
No you can't because every project have its own Gradle Build. And at the time you create your first project it is being created for your project separably taking reference from android studio for the latest android gradle build at that time. Now Gradle is being updated in android studio so whenever you open your first project it check whether your Gradle is latest or not and if not it always shows a prompt to update the gradle until you update it.
Go to File->Settings->Build,Execution,Deployment->Build Tools->Gradle and Select 'Use default gradle wrapper (recommended)'
and go to File->Project Structure->Project, set Gradle Version to 4.4 and Plugin version to 3.1.0
Check to your root project file and update it with below classpath in android 3.1
dependencies {classpath com.android.tools.build:gradle:3.0.1}
that new popup dialog inform you to about android new updates that you want to update in that your current project or not so don't worry about update dialog and neglect it.
I followed the instructions on here http://www.programmingmoney.com/setup-libgdx-android-studio/ for installing and using LibGdx on Android Studio 1.0(official release). I am on step 4, the actual generation step. When I tried import project, I got this exception
Gradle version 2.1 is required. Current version is 2.2.1. If using the gradle wrapper, try editing the distributionUrl in C:\Users\chris\AndroidStudioProjects\SetUpGame\gradle\wrapper\gradle-wrapper.properties to gradle-2.1-all.zip.
This was a similar error to what this person got in this thread - Upgrading project to Android Studio 1.0 (Gradle problems).
When i went to view gradle-wrapper.properties with notepad ++, this was what i saw
distributionUrl=http\://services.gradle.org/distributions/gradle-2.1-all.zip
which meant that this didn't have to be changed. (the answer that was given in the other thread)
Does anyone know what the issue is? Is Android studio version 1.0 too new for Libgdx? I m not that familiar with Gradle.
Look through all your build.gradle files and update the version of the Android Gradle plugin that's specified. If you see buildscript --> dependencies blocks, update them to version 1.0.0 of the Android Gradle plugin like so:
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
I think there may be a bug where if you have the wrong version of the plugin, it gives you a bogus error about having the wrong version of Gradle, and you get ping-ponging error messages when you change it back and forth because it's not fixing the root cause of the error, which is this different version number.
I want to migrate from Eclipse to Android Studio, but unfortunately Eclipse was crashed so I couldn't build gradle-build files, so I reinstalled Eclipse, and luckily I still had those, I copied my old files which where in my old workspace (the workspace from before the crash) to a new workspace.
But, when I build the gradle-build files now and I import them in Android Studio it says my gridlayout_v7 is missing.
Does anyone of you know how I can solve this?
Run SDK Manager and check that you have installed:
Android Support Repository
Android Support Library
Google Repository
Then check if your build.gradle has next lines:
dependencies {
compile 'com.android.support:gridlayout-v7:18.0.0'
}
You dont need separate gridlayout library subproject anymore with new build system.