Can't update Android Studio on Windows - android-studio

Whenever I check for update, I keep getting this error
And I have no problem with my connection.

I would suggest updating manually by downloading and installing the latest version from the Android Studio homepage. Depending on the "jump" in versions (e.g. from 1.9 to 2.1), this will either update the currently installed version or install the new version alongside it, letting you import your settings from the old version. The updated version should then be able to check for updates correctly.
Otherwise: Try deleting the Android Studio settings folder in your Windows user directory. Are you behind a proxy? Make sure your PC's date/time settings are correct.

Related

Android Studio 4.1 updates gives internal error and can't start

I have checked the newly opened threads about the issue but none fixed the problem
I am using a mac and I don't understand what should I delete to make it work. Or should I just completely delete the IDE and freshly reinstall it?
I am using Android studio 4.1 on Linux Mint 19.3 after update had the same error.
Some of the plugins(Marketplace and Makrdown) are not compatible with the new version.
Some suggestions were to delete /.local/share/google(but there was no such folder on Linux Mint 19.3)
I solved it by renaming(or deleting) marketplace plugin folder in /home/user/.var/app/com.google.AndroidStudio/data/Google/AndroidStudio4.1
After that Andorid Studio starts normal and plugins can be udated.
I just deleted and reinstalled the IDE and it works fine.
Google should really check their releases before going out official - If I were to work on an important project this would waste many hours for nothing.

Android Studio upgrade automatic to 2.1 from 1.5 won't work

Ever since version 2.0 there is no way that I can get the button "Update and Restart" back when checking for updates. This missed button downloaded and applied automatically the patch to the newer version. It stopped working when 2.0 came to be. I am currently on 1.5, and would like to get 2.1 but not downloading the zip.
Now all I get is this, which forces me to download the zip file, but doesn't install the application. I have seen other posts related but none of them have solved my problem.
In my case I just had to close that dialog and click again on Check for Updates until 'Update and Restart' appeared. I had to re open the dialog like 3 times.
I had 1.5.1 and updated to 2.1.1
There was no Update and restart button from 1.5 to 2.0. You need to go to download page and download the newest version --> 2.1. If you had a version 2.0 and you want to upgrade to 2.1, the functionality of downloading & restarting would be fully operational.
The differences between 1.5 and 2.0 are too major just to download a patch and update your old Android Studio. Here you have all revisions and changes.
You can still add your settings from the previous Android Studio, so there should be no problem for you.
Steps to install Android Studio from a .zip folder:
If you have Windows:
Open the .zip folder using Windows Explorer.
Click on 'Extract all' (or 'Extract all files') option in the ribbon.
Enter any extract location you like. Extract them.
Go to the extract location. Go to android-studio\bin and run
studio.exe.
Go through the installation wizard. You are done
If you have any other OS:
Go here or here (the second link is preferred).
If you chose the first link then run application and unzip your
folder. If you chose the second link then upload your file, get it
unzipped and download it.
Go to the extract/download location. Go to android-studio\bin and
run the studio executable for your OS.
Go through the installation wizard. You are done.
My Android Studio was 1.5.1. After closing the dialog 2 times and checking again for the update solved the issue. Got the "Update and Restart" button 3rd time

How to update Android Studio in Linux

I'm on Linux Mint KDE and want to update Android Studio. When I update PHPStorm (also a JetBrains product) the directory always has the version number so there is no overwriting. Android Studio does not. Do I just overwrite the old directory? Or delete it first? Or what?
Usually you can simply use the built in update function found in
Help -> Check for Update...
If it is not a small patch, but a larger update (happens from time to time) you need to download a new archive. For me it was always safe to remove (or rename) the old installation folder first since all your configuration settings are stored in
~/.AndroidStudio
anyways and Android Studio will automatically reuse these (or ask you if it shall migrate them).
I am using Android Studio for 2 years now and that was always working for me.
BTW: I use IntelliJ IDEA as well and it also has the version number in the installation folder.

Rendering problems for Android Studio

Since yesterday I have start to working with Android studio. My problem is when I make my layout. I've next error (watch the screenshot for more information):
Rendering Problem: This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio
If I check for updates he say that I already have the latest version of Android studio and so I can't update.
I have also install some things in the SDK manager, see screenshot below.
Can anyone help me to fix this problem?
Thanks.
I had the same problem, current update, but rendering failed because I need to update.
Try changing the update version you are on. The default is Stable, but there are 3 more options, Canary being the newest and potentially least stable. I chose to check for updates from the Dev Channel, which is a little more stable than Canary build. It fixed the problem and seems to work fine.
To change the version, Check for Updates, then click the Updates link on the popup that says you already have the latest version.
Good luck in the class!
This issue has been fixed now with the latest update 1.2.2 from stable channel, so no need to install beta or canary versions.
Click on image to view more information

Android studio doesn't create project structure

I am new to Android studio. I tried to create my first project and there is no project structure only gradle files. What am I doing wrong? I keep getting these files with creation of another new project.
Update SDK via Android SDK Manager. You need all packages in Tools to be installed.
But even after doing so, I can't make it to auto generate resources. So I continue to deal with it...
I found what was my problem. I updated Android studio from version 1.x to 2.x. On official site is written that if you try to install version 2.x into same location Android studio might not work properly and there could be some unexpected behavior.
So just removing Android studio and then reinstaling it, worked perfectly.

Resources