Android Studio Error: "You Must Install The Android Support Repository Though The SDK Manager"
Solution 1:
With 2.7 update I got the same issue. It looks like now Android Studio thinks sdk
lays in under its own folder at android-studio/sdk
.
You should be able to use android
app under android-studio/sdk/tools
to get missing components (not tested).
Another solution would be to fix sdk
path (tested):
Close any projects then drop to Welcome to Android Studio Dialog
- Select Configure -> Project Defaults -> Project Structure
- Select SDKs -> Android SDK -> Android SDK Home Path
- Update it to your previous sdk location.
Solution 2:
got the same problem when applying the last patch (2.7). I've resolved it by copying SDK Manager.exe from android-studio\sdk\tools\lib to android-studio\sdk\ then I've launched it and install the missing component.
After restarting Android Studio it works again !
Solution 3:
You must manually run SDK Manager.
Folder: android-studio/sdk/tools
Search for android
or android-sdk
The new Support Repository must be already selected, and you need only click the "Install" button.
Solution 4:
Just as Leonidos said, install ASR through SDK Manager:
Tools > Android > SDK Manager ; Navigate to the Extras folder, and select Android Support Repositories.
Click install packages and it will work fine
Solution 5:
I did a fresh install of Java, SDK and Android Studio, update it to 0.2.7 and install the ASR through SDK Manager, but the messages comes again.
So i found this solution.
The most common problem for Android Studio and 64Bit Windows System is the no 8.3 short path for C:\Program Files and C:\Program Files (x86).
find_java.exe
couldn't handle it and give a wrong path back.
Finally do this:
dir /x C:
-- It shows no 8.3 short paths.
fsutil 8dot3name query C:
-- It shows NtfsDisable8dot3NameCreation is 1 on "C:", means 8.3 short path won't be created in "C:".
Then I enable the generation of 8.3 short name by:
fsutil 8dot3name set C: 0
and create short names for C:\Program Files and C:\Program Files (x86) in windows recovery mode by:
fsutil file setshortname "C:\Program Files" PROGRA~1
fsutil file setshortname "C:\Program Files (x86)" PROGRA~2
And now dir /x C:
can show the short names.
And now find_java.exe -s
can show the short path C:\PROGRA~1\Java\JDK17~1.0_2\bin\java.exe
.
And now find_java.bat
and android.bat
can work good now!
Also copying SDK Manager.exe from android-studio\sdk\tools\lib to android-studio\sdk\
Post a Comment for "Android Studio Error: "You Must Install The Android Support Repository Though The SDK Manager""