Android how to update android studio
Android how to update android studio
I have not updated my Android Studio for a while and am presented with this dialog box when trying to update:
I feel like I’m missing something blaringly obvious, but how can I just update like I have been able to before?
12 Answers 12
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
That means that the current version can not be automatically updated. You should download the new version manually.
and Update & Restart button was back.
YMMV, and so will your versions when you see this, but maybe try not going from a really old version straight to the recent canary channel build.
I too ran into this problem. I did not want to uninstall and reinstall it again. What I did was to unzip the downloaded file and just copy and replaced the bin, lib, license and plugins folder into my original install path and it worked.
I am on Windows.
Go to Help > Check for Update
Check these steps.
If anybody uses Ubuntu and has the same problem.
For me, AS always crashed after the download of a patch was complete. Then I wanted to figure out what’s going on by launching AS from the console to see the output (I have AS as icon in Dash menu and usually launch it from there). After launching AS from console I clicked the update popup again, it downloaded but suddenly, it did not crash anymore. Suddenly it asked me if I want to exit a running background process, I clicked «exit», AS installed the patch and rebooted (what is usually not working either).
Here is how you update when you are not presented with a Update and Restart button, but instead only have a Download button. The solution involves a side-by-side installation, which is an acceptable and supported configuration 1
At some point, probably once you’re satisfied that the new installation will work you you, you may remove the previous installation.
1 Here is an official page to show that it’s ok to have side-by-side installs: Android site multiple installation page
3 Answers 3
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
Note: There is not a patch update available from 0.1.9 to 0.2. To update from Android Studio 0.1.x to 0.2.x, you must install a new Android Studio bundle from this page. The reason for that is that we have made changes to the bundled SDK such that it includes a pre-configured local Maven repository which can serve up the v4 support library and which is required for creating new projects.
So why not downloading a new version of Android Studio?
Update: If you can’t update by network. Try this:
Running Windows 8 (as a local admin), I needed patch from a reasonably recent version to 0.9.2. However I ran into the «unable to delete files» issue when trying to patch directly from within Android Studio (running as admin). After doing the 100 MEG download twice (Aussie slow Internet), I needed something smarter. Follows is what worked for me (your mileage may vary):
Best of luck with manually patching on Windows 8. I really love Android Studio, but its definitely on the clunky side in this regard.
How to update Android Studio automatically?
I need to Update Android Studio, to the 0.9.9 version, but when I press «Download» (On the update info dialog box) it sends me here:
Isn’t there a way to make the update happen automatically, because I don’t even know how to update it manually.
Also, in the dialog, there is this recommendation:
To configure automatic update settings, see the Updates dialog of your IDE Settings.
The word «Updates» is a link, but it doesn’t work.
14 Answers 14
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
For this task, I recommend using Android Studio IDE and choose the automatic installation program, and not the compressed file.
don’t recommend Beta or Canary
channel which is the unstable version and they are not automatic installation, instead a zip file is provided in that case.
Warning: Among different version of Android Studio, the steps may be different. But hopefully you get the idea, as I try to be clear on my intentions.
How to update gradle in android studio?
I installed Android Studio 0.1.9. Today I got and update to version 0.2 and of course I updated. After the installation I restarted Android Studio but now I get this message:
Project is using an old version of the Android Gradle plug-in. The minimum supported version is 0.5.0. Please update the version of the dependency ‘com.android.tools.build:gradle’
How do I do that? I can’t find any update tools for the gradle plugin in android studio.
16 Answers 16
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
Step 1 (Use default gradle wrapper)
File → Settings → Build, Execution, Deployment → Build Tools→Gradle → Use default Gradle wrapper (recommended)
Changing to Gradle Wrapper in the new version of Android Studio:
Step 2 (Select desired gradle version)
File → Project Structure → Project
The following table shows compatibility between Android plugin for Gradle and Gradle:
Latest stable versions you can use with Android Studio 4.1.2 (March 2021):
Official links
This may not be the exact answer for the OP, but is the answer to the Title of the question: How to Update Gradle in Android Studio (AS):
after release of android studio v 3.0(stable), It will show popup, If gradle update is available
Manually, just change version of gradle in top-level(project-level) build.gradle file to latest,
check below chart
(you might need to search for it). Save the file and open the project again.
Open File > Project Structure > Project Tab
Android Studio has a built in project structure menu to check and update the gradle and plugin used in the current project.
The website below gives a detailed explanation on how to update the gradle and gradle plugin for Android Studio: Update gradle plugin Android Studio.
For those who still have this problem (for example to switch from 2.8.0 to 2.10.0), move to the file gradle-wrapper.properties and set distributionUrl like that.
I changed 2.8.0 to 2.10.0 and don’t forget to Sync after
On Mac, open terminal and run the following commands as per instructions:
Once the installation is complete, the terminal would ask whether to set it as a default version so type y and make it the default version.
/.bash_profile to make the sdk executable if it’s not already in your path
Open your root build.gradle file and change Gradle version like this
For Gradle version compatibility see this.
I can’t comment yet.
Same as Kevin but with different UI step:
This may not be the exact answer for the OP, but is the answer to the Title of the question: How to Update Gradle in Android Studio (AS):
How to Update Gradle in Android Studio?
The Android Studio build system is based on Gradle, and the Android Gradle plugin adds several features that are specific to building Android apps. Although the Android plugin is typically updated in lock-step with Android Studio, the plugin (and the rest of the Gradle system) can run independent of Android Studio and be updated separately. For the best performance, you should use the latest possible version of both Gradle and the plugin. When you update Android Studio, you may receive a prompt to automatically update the Android Gradle plugin to the latest available version. You can choose to accept the update or manually specify a version based on your project’s build requirements. In this article, we are going to discuss both methods. So, let’s dive into the five different ways in which Gradle can be updated.
Different Ways To Update Gradle
Method 1
Step 1: Open Android Studio and navigate to File → Settings
Then just click on Build, Execution, Deployment Tab Build → Tools → Gradle → Use default Gradle wrapper (recommended) option.
Step 2: Selecting desired Gradle version.
Go to File → Project Structure
Then click on the Project option.
then choose the latest version of Gradle. After that click on Ok. Latest stable versions you can use with Android Studio 4.1.2 (March 2021):
Method 2
Open gradle-wrapper.properties(go to Gradle > wrapper > gradle-wrapper.properties and manually change the distributionUrl property in the file.
Method 3
Grab latest version supported by Android Studio: http://www.gradle.org/downloads (Currently 1.9, 1.10 is NOT supported by AS yet)
Install: Unzip to anywhere like near where AS is installed: C:\Users[username]\gradle-1.9\
Источники информации:
- http://stackoverflow.com/questions/18457818/how-to-update-android-studio-jar-file
- http://stackoverflow.com/questions/28133518/how-to-update-android-studio-automatically
- http://stackoverflow.com/questions/17727645/how-to-update-gradle-in-android-studio
- http://www.geeksforgeeks.org/how-to-update-gradle-in-android-studio/