I want to upgrade from Android Studio (AS) 3.1.2 to 3.2. But the first part of this shows problems I had last week with trying to use SDK manager inside AS 3.1.2.
I mention the problems with SDK manager for completeness of info. I got a ton of errors both with SDK manager and upgrading.
Up to the point where Finish was the only SDK manager option, 20 actions (below) had been attempted and half succeeded:
"Install Android SDK Build-Tools 28 (revision: 28.0.0)" READY.
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" READY.
"Install Android SDK Build-Tools 28.0.1 (revision: 28.0.1)" READY.
"Install Android SDK Build-Tools 25.0.2 (revision: 25.0.2)" READY.
"Install Android SDK Build-Tools 25.0.3 (revision: 25.0.3)" READY.
"Install Android SDK Build-Tools 24.0.1 (revision: 24.0.1)" READY.
"Install Android SDK Build-Tools 24 (revision: 24.0.0)" READY.
"Install Android SDK Build-Tools 23.0.3 (revision: 23.0.3)" READY.
"Install Google Play APK Expansion library (revision: 1)" READY.
"Install Google Play Licensing Library (revision: 1)" READY.
“connect timed out” for all these:
"Install Android SDK Build-Tools 28-rc1 (revision: 28.0.0 rc1)" FAILED.
"Install Android SDK Build-Tools 28-rc2 (revision: 28.0.0 rc2)" FAILED.
"Install Android SDK Build-Tools 27.0.2 (revision: 27.0.2)" FAILED.
"Install Android SDK Build-Tools 27.0.1 (revision: 27.0.1)" FAILED.
"Install Android SDK Build-Tools 27 (revision: 27.0.0)" FAILED.
"Install Android SDK Build-Tools 26.0.3 (revision: 26.0.3)" FAILED.
"Install Android SDK Build-Tools 25.0.1 (revision: 25.0.1)" FAILED.
"Install Android SDK Build-Tools 24.0.3 (revision: 24.0.3)" FAILED.
"Install Android SDK Build-Tools 24.0.2 (revision: 24.0.2)" FAILED.
Clicking Finish showed well over 10,000 problems with files (all had Access denied as reason).
I didn’t try again, hoping for the best after upgrading.
Now... Trying to upgrade AS 3.1.2 to 3.2. Up to the point where Finish is the only option, all seemed fine. But clicking Finish showed problems with 1124 files:
1116 had “NONE” as solution, the problem mostly being “Access denied”. Generally, the "Action" was trying to “Update” the file.
Problems are summarized in this table:
Action attempted # of files (1124)
---------------- -------------------
Update 1078
Validate 46
Reason for failure # of files (1124)
------------------ -------------------
Absent 117
Modified 19
Unexpected file 8
Access denied 980
Solution # of files (1124)
------------------ -------------------
DELETE 8
NONE 1116
I assume that all the problems lie in folders within C:\Program Files\Android\Android Studio
, but the files that I checked (very few considering there's over 10,000 of them) aren’t read-only.
Firewall had been off and I had shut down Malwarebytes. I use no other protection.
Here are a few of the 1124 errors:
bin\studio64.exe Update Access denied NONE
gradle\gradle-4.1\ Validate Unexpected file DELETE
gradle\gradle-4.6\bin\gradle Update Absent NONE
jre\bin\java.exe Update Access denied NONE
Some more data:
Ext. count
---- ------
.jar (316 +
.xml 235 +
.ttf 176 +
.ftl 140 +
.exe 77 +
.png 52 +
.lib 2 +
.dll 43 ) = 1041 out of 1124.
Before posting this I wondered if I should run studio64.exe as admin. (I have Windows 7 HOME edition. I "am" the admin. Sort of.)
Number of errors was reduced to 441. ALmost 800 fewer. So I ran again as admin.
Same 441 errors.
With errors found, patch can't be applied. But I kind of like 3.1.2 a lot more today after a few days of upgrade hell ago.
I don't want to kill AS 3.1.2 and install a fresh 3.2 because I know I'd lose some if not almost all (if not all) of the many customizations I've implemented in so many places throughout the IDE configurations.
So what do I do?
What explains all these errors?
Isn't the process supposed to be relatively straightforward?