I want to set local documentation path in android studio 0.8, but i cant do this. I google this, but i can't find any solution for this problem. Can any body help me please.
Thanks a lot.
I found the solution in Android Studio 2.1 :
First, you have to see which Android SDK you are using from the Project Structure. Currently I am using Android 7.0 because the problem was caused by Android 7.1.1 SDK (I will explain why).
Now, open the Standalone SDK Manager. Find the SDK version that you use, then select Documentation for Android SDK then Install package and you will have a local copy of the docs automatically used by your AS.
As you can see, there is no documentation available to download for Android 7.1.1, that's why Android Studio was loading it from the Android developer website.
So, the solution is to use an Android SDK that has a downloadable documentation.
I had the same problem.Documentation was empty when I used documentation shortcut(ctrl + Q) and I also couldn't change the documentation paths because it wasn't there! so here is the solution:
Delete C:\Users[user name].AndroidStudioBeta folder.(Don't worry it just delete your configurations! ;) )
rename C:\Program Files (x86)\Android\android-studio\sdk (SDK path)folder to something else.
run Android studio and make sure you don't import you configurations.
Now you can change new sdk folder's name back to SDK .
Android studio will ask you new path for SDK ,so you can continue.
If you have downloaded the documentation using SDK manager, it'll get added automatically when you add an SDK in "Project Structure"
In Android Studio, You can verify this by selecting File -> Project Structure -> SDKs (on left pane).
Select one added SDK from the list, Select the tab "Documentation Paths" from right most pane. Check whether the path is automatically added. If not, add it manually by clicking the plus (+) button on right.
The only way I could accomplish this on AS 1.0 is to run local web server (Abyss Web Server) to host the documentation from here (C:\Program Files (x86)\Android\sdk\docs). And use Fiddler as proxy to remap url developer.android.com to 127.0.0.1:8080 (Abyss address), setting Fiddler's address as proxy in AS settings.
Oh, and created a .bat file to run and stop this all together.
Really dirty trick, but the only I found.
Related
I'm trying to setup Android Studio on a new install of Mac OS X Yosemite. I downloaded the Android Studio Beta v0.8.14 from here: https://developer.android.com/sdk/installing/studio.html and upon launching it complained about not having an SDK (although the download page indicates it should include the SDK). I tried searching after installing for the SDK and can't find it (a few other posts indicate /Applications/Android Studio.app/sdk but that location doesn't exist). Where is the SDK installed and what is required to set it up?
Go to the SDK Manager and click Edit... next to the field for the location of the SDK. Then an "SDK Setup" window should display. There you can download the SDK.
Edit: This answer is deprecated as Android Studio seems to bundle everything since a while already.
Old answer
It seems the android-studio-bundle version is no longer available in the download page (instead there are only android-studio-ide). When you start Android Studio, it won't let you create a new projet until you configure the SDK location.
That means you have to download the SDK separately here, extract it somewhere, and configure it on Configure->Project Defaults->Project Structure. After that, the SDK Manager icon will be enabled and you can download the tools you want.
I had the same problem on Windows. After I re-installed it a few times, I found that the SDK was installed but hidden in C:\Users\<user name>\AppData\Local\Android\sdk.
Information for Windows
For some reason, which I have no time to investigate, Android seems to provide, currently, the IDE and the SDK separately, while in the Dev Webpage says the opposite.
This is the "complete" (false!) tool I have just downloaded: android-studio-ide-171.4443003-windows.exe (SDK is missing here, note the "ide" in the file name).
And this is the real complete tool I had downloaded few months ago, from the same place...: android-studio-bundle-162.3871768-windows.exe
Note that this last one has the "bundle" in the file name.
Please, download the bundle (IDE+SDK) from here:
https://dl.google.com/dl/android/studio/install/2.3.1.0/android-studio-bundle-162.3871768-windows.exe?hl=ko
I want to suppose (¿?) that similar link you can find for Linux or macOS just Googling for it.
Hope this helps!
It worked like this for me
Downloaded the Android Studio
Install Android Studio
Open Android Studio after installation.
You will get a dialog box to import settings if you already have Intellij installed on your machine. Say "Do not Import". Otherwise continue to next step.
It will ask you in the dialog box to pre-configure such as theme, path etc.
Just click next next...and then Finish. You will see the SDK tool will start downloading.
After installation is finished. You can find it in this path: C:\Users\<user name>\AppData\Local\Android\sdk
If you have ever installed Android Studio before and then removed it, it won't reinstall the SDK automatically (speculation: some Windows setting somewhere).
The solution is starting Android Studio and then
File -> Manage IDE Settings -> Restore Default Settings
This will wipe any custom settings you don't have at this point and trigger the SDK install
What Pablo wrote is misleading.
This is the "complete" (false!) tool I have just downloaded:
android-studio-ide-171.4443003-windows.exe (SDK is missing here, note
the "ide" in the file name).
Yes, it is IDE only, but after you install this IDE and first time run it, SDK will be downloaded automatically. So there is no need to download some outdated bundles. Just use default "green button" on https://developer.android.com/studio/index.html
I'm using Ubuntu, and had previously installed Android Studio. It was using too much space, so I deleted it. Now when I downloaded it and started ./studio.sh, it found my previous installation configuration directory and asked to import from there. I did, and then this problem occurred.
I put the directory .Android Studio 3.3 in the trash and restarted ./studio.sh, and it imported the SDK automatically for me. That was good, because I couldn't find it where it was supposed to be according to the dialog box. The 3.3 above is from the version of Android Studio I was installing.
in my case, my country is forbidden from google, and my PC's time zone was set by my counrty.
after I change my timezone to another country my problem solved and android studio download SDK and nkd easily
Re-install studio. If ANDROID_HOME is set to custom location then it will install sdk there else it will install SDK in C:\Users<user name>\AppData\Local\Android\sdk
Note:this is a temporary fix
If you have Eclipse then you can use that SDK for emulation.
Just run the sdk manager and emulate a version of android. Then while you are asking for emulating something ie while running code it will show your emulator as online and you can even use it.
Hope this helps you.
All the Best...
I installed android studio but while selecting android SDK I am getting following error. I tried solution which is on this post but no luck. How can I solve this?
I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)
I resolved with the instructions here,
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
Just close current error window and let run the android studio
Open the SDK manager as shown below
Click on Edit SDK location as shown below
Simply press next button if there is correct location for SDK you want to install there
Let it be downloaded
Install platform and SDK tools and
Enjoy
Try restarting the application. Close all related studio processes, then right click "run as administrator".
You should be fine after this.
I got the same issue. You must enable the Android Support Plugin
Configuration > Plugin > Android Support Plugin. Check it.
Close error window
Go to gradle tab
select "Gradle settings", wrench icon
Search for SDK setup
Select appropriate sdk for your device.
Next, two times
Wait for install
There is all..
None of the other answers work. After the installation, immediately close Android Studio, then start it as administrator. A message might popup asking for the sdk manager location. Ignore it (Close the popup). Go to Tools > SDK Manager and click on the edit button on the right of Android SDK Location. Then click Next, next and you're good to go. Android Studio will let you install the sdk manager.
I had the same problem but what I found is that it requires the parent folder of the following things AVD manager,SDK manager,tools,platform-tools,build-tools etc.So what you need is to find the parent directory of these things, which you might find with a name such as android-sdk or android-sdk-windows(in case you are using windows OS).Make sure the above said contents are in that folder and select it.I hope you will find this useful.
Download the SDK from http://developer.android.com/sdk/index.html
Start SDK manager and make everything up to date
Also, make sure you have set the language level to
7.0 Diamonds, ARM, Multi-catch, etc
I had this problem on Linux. Apparently you need write access to some place in that directory, so I just took ownership of the entire thing:
sudo chown -R thomas:thomas /opt/android-sdk
Could be that something similar is going on on Windows as well.
If like me, a MacOs user which has installed Android Studio on my Mac and if you've tried everything you can think of but was still unable to set the Android SDK directory in Android Studio, follow the next steps (I know the site where I got the bundle is a freeware site but the package is the right one):
1. Download adt-bundle-mac (Android Developer Tools) from [here][1].
2. Unzip the file and browse into the unzipped folder.
3. Copy only the sdk dir to /Users/username/Library/Android
4. Open Android Studio, the error about the SDK folder which is not set will pop up, set the path to the SDK to "/Users/username/Library/Android/sdk".
5. Now Android Studio will accept the path and you're good to go.
I wasted about 2 hours until I fixed it so I hope that by writing this answer I'll save you some 2 hours.
The sdk folder contains the platform-tools folder.
I copied this folder and named it platforms, then it worked for me.
Just delete(preferably permanently) all the android directories in whatever location they are present(e.g. C:\Program Files\Android, C:\users\respective user\respective android folders). Remove the installer as well(if possible). Make sure to save all your Android Studio files in some external storage (preferably).
The main thing is to get Android studio with SDK.
Now go to the android studio website and install android studio leaving all settings default. There you will also get to install the SDK and it's linking.
It will take some time to load and will load nearly 1.5 GB files.
This worked for my case.
In my case I wasn't giving him admin permission
Steps to follow:
Close Android Studio.
Restart Android Studio and Give the path of Empty Folder .
Install Sdk in that folder(Sdk will automatically install and will get configure automatically.)
With Android Studio 4.1.2 the easiest thing is to close the project (file / close project). That's how you get to the wizard that automatically sets up the SDK for you.
The default location that it suggests is /Users/stan/Library/Android/sdk (exactly the same that I was trying to set up manually but AS kept saying it's invalid)
Has anyone had any luck getting IntelliJ to recognize and display the android java docs?
It works out of the box since Android SDK configuration in IDEA automatically adds JavaDoc directory into Documentation Paths.
Make sure you've downloaded the SDK completely including the documentation using the SDK Manager. On my system they are located under SDK_ROOT/docs/reference and this directory is automatically configured in IDEA Android SDK.
Make sure that the directory containing the documentation is in Documentation Paths. For this, do the following:
In Android Studio, open File -> Project Structure
Click on SDKs under Platform Settings
Select Android <version> in the middle panel
Add the following path under the Documentation Paths tab:
path_to_android_sdk/docs/reference
If you have not downloaded the documentation in SDK Manager, please do so before performing this procedure.
i am a student in africa and in our land, there actually exist slow and expensive internet connections, which is why we tremble in fear whenever we hear the word "online repository" method of installing software. Damn, that usually means you have to look elsewhere.
The problem.(i cant install android without connecting eclipse to the internet)
It is possible to manually download individual components as .zip files but there is no way of installing them into android eg i have managed to download
platform-tools_r03-windowsandroid-sdk_r10-windowsetcbut no matter what i do, i can't get android to recognise them as components. It seems tens of thousands of other developers have a similar problem (see below)
This qn has 10k views(meaning 10k people had a similar problem)
another lost developer
webpage sudgesting solution that failed to work on windows seven ultimate
If someone has actually ever installed android without connecting eclipse to the internet, please let us know the magic you used. Thanks in advance :)
EDIT:
if someone out there is still interested check out http://qdevarena.blogspot.com/2010/05/download-android-sdk-standalone-for.html
and make sure your folder structure is as shown in http://developer.android.com/sdk/installing.html
For SDK and platform tools you can just extract the zip content, Eclipse has nothing to do here.
For Eclipse ADT plugin:
Download the zip file from http://dl.google.com/android/ADT-10.0.1.zip
Help -> Install New Software -> Add
Select Archive and then provide the location of the zip file
These steps are clearly explained in Eclipse ADT documentation.
Only in Windows
Install (if not installed) Oracle JDK jdk-7-windows-i586.exe
install Eclipse SDK
Add to the PATH environment variable the path to the JDK (for example c:\Program Files\Java\jdk1.7.0\bin)
Edit the file hosts (c:\WINDOWS\system32\drivers\etc\hosts), add the entry "127.0.0.1 dl-ssl.google.com"
It's important! Port 80 must be free at the time of installation Android SDK
Run the Abyss Web Server X1 (abyssws.exe). Works best if you download a fresh copy
Run the Android SDK "SDK Manager.exe" installer
In the "Android SDK Mannager" in the menu "Tools" >> "Options" put the check ("force https:// ... sources to be fetched using http:// ...")
Android SDK Manager will fetch packages in your computer. Choose the packages for API you want to program against, select and install packages
After installation the file hosts (c:\WINDOWS\system32\drivers\etc\hosts) entry "127.0.0.1 dl-ssl.google.com" you entered in step 3
Good Luck!! and remember to update to lastest APIs and revision
You can download Eclipse ADT and install
IN Eclipse: Click Help tab and Install New Software tab
Click add button
In Add Repository Window, add in Name Field Eclipse ADT and Location field click archive to browse in local machine where you downloaded ADT
Press Ok and tick all, Eclipse will install the less
The answer by dtmilano is not valid for the current version of android SDK. (androdi 4.2.2)
The android website says that after the unzipping of the ADT:
Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment. To get these packages for your SDK, continue to Adding Platforms and Packages.
http://developer.android.com/sdk/installing/installing-adt.html
Instead, try
http://qdevarena.blogspot.in/2010/05/download-android-sdk-standalone-for.html
as mentioned by
Installing android SDK in eclipse offline
I'M a Ghanaian..I did it about a week ago on ubuntu it might work on windows
your question indicates that you have eclipse installed..so i will just move on to setting it up to run android apps ...
step 1: go to developer.android.com to download the sdk for windows(i recomend you download the one with the installer).
step 2: launch ur favourite browser and open this site.
you will see an xml page using ctr+f (any shortcut for finding a text on your browser) type andoroid 2.2 or any android version you like latest is kitkat 4.4...you will find ur prefered android version in zip file for ur OS i.e windows...just copy the text and append it to this address.
this will download the the platform for you in .zip format....just navigate to where you extracted ur sdk and go to platform folder and then create a new folder with any name and then extract the platfor you downloaded earlier i.e android version into the new folder you created...just launch the sdk.exe and it will auto detect your platform for you...
just go and creae your Android virtual device and start running your apps..
I've just installed IntelliJ IDEA 10.0.0.2 Community edition
I've installed Android SDK ... (C:\Program Files\Android\android-sdk-windows)
I want to make a new android project, so I a create a new project, select Android Module, next , next...
Then when i need to choose the JDK, I go to the android folder, and when i try to choose it, I get this error:
The selected directory is not a valid
home for JSDK
What am I doing wrong ? what can i do to fix this ?
I Installed android SDK with all the updates
When I choose IntelliJ IDEA Plugin SDK i get:
The selected directory is not a valid
home for IntelliJ IDEA Plugin SDK
EDIT:
Still not solved...
I've already chose the SDK itself and chose android 2.2 Platform when creating the project.
Can't load the JDK files. So i won't me compile, i get this error
Cannot start compiler: the SDK is not
specified for module "blah".
Specify the SDK at Project Structure
dialog.
To develop Android applications in IntelliJ IDEA you need to set both Java SDK (JSDK) and Android SDK:
Configuring Project SDK
Java SDK
Setting Android SDK/Platform
You also need to run SDK Manager application and download Android platforms which you are going to use.
Note that you can detach all the jars from the JSDK configuration in IDEA if you are going to use it only for Android, this will help with the code completion so that only classes available in Android will be suggested by the IDE.
I also recommend to read the following tutorials:
Developing applications for Android in IntelliJ IDEA
Developing Android applications on the base of existing sources
EDIT:
Configuring project's link has been updated
JSDK is the Java SDK. On my Debian it's under /usr/lib/jvm/java-6-sun
My installation path was "C:\Users\User\AppData\Local\Android\android-sdk." That confused IDEA since it doesn't seem to be able to see hidden folders, even when typing in the full path. Bummer...I fixed it though, by setting AppData as visible.
I just wasted a whole lot of time on this problem. My work station is running IntelliJ Ultimate 11 on Windows 7 64-bit. I was setting up my first Android project. Therefore, no SDKs were configured. First I selected the JDK, which was a no-brainer (C:\ProgramFiles (x86)\Java\jdk1.6.0_30). Next comes the part where you need to specify the Android SDK. First you click the elipsis ("...") and then click "Add New". Now here's the kicker... If you look carefully at the dialog box, you'll notice that "Configure new JSDK" is highlighted by default. What you need to do is change the selection to "Android SDK". Now you can select the directory of your Android SDK and you won't get that stupid error message.
I literally wasted about a half an hour before I realized why the app kept telling me "This is not a valid SDK directory." Hopefully this will help someone else having the same problem.
Don here: I had the same trouble in Windows 64 with 11.1.2 and 64bit java. found that only by clicking on the left window could I register my Android SDK.
When you first create Android project/module, you must choose JDK, for this click "+" and select "JSDK" in menu, then select where your Java SDK is, for instance "c:\Program Files\Java\jdk1.6.0_20". Then click "Next" and in "SDK Properties" panel click "New" and select path to your Android SDK (a directory where "SDK Manager.exe" is).
Click the + symbol in the left most pane in the Select android sdk window during the creation of the project and then select the android SDK (default= c/program files/android/android-sdk)
I had a real hard time seeing how to do this on a mac, since you can't download the jdk from sun's site
#Szabolcs Berecz #Yochai On a mac, you'll need to get the source as described here:
or just jump to the download here:
Then it stored in this location:
1.6.x /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/src.jar
If you right click in the leftmost window you can create a new Android Plugin or some such. I was just fighting with this myself. I have never used IntelliJ before and really their docs are out of date. Apparently not up to the current version.
In the JDK part you need to choose the JAVA JDK that was downloaded. (not the android)
C:\Program Files\Java\jdk1.6.0_24\
Make sure you have installed JDK 1.5 or 1.6
(1.7 is not works for some reason with Android SDK).
I had the same problem ("The selected directory is not a valid home for Android SDK"),
but after installing 1.6 JSDK - it`s work for me.
I've got the same problem with version 12 on linux, Android module does not show java sdk location and android sdk location selection fails because java sdk is not set.
I've solved by making a java project, that lets me select java sdk and android sdk (strange right?), after making such a project I can make an android project because android sdk is now configured
I've spent 30 minutes solving a foolish problem
For IntelliJ & Android on Linux.
If the "Android SDK" Menu comes up with a red 'No Android SDK' Click the browse button to the RIGHT of the drop down. - Its a different layout in Linux to Windows.
In my case, I needed to add support for android, so, I searched for android in the plugins settings.
Fixed! I needed to run IntelliJ as Administrator IDEA. Now it will approve my Android SDK directory of "C:\Program Files (x86)\Android\android-sdk"