I would like to install the SDK for several android platforms on my chromebook using Ubuntu with crouton when I get it. The problem is that the chromebook I might get only has 16gb minus the OS. Installing the android SDK to eclipse also seems to install the whole emulator as well and it takes up A LOT of storage. Last time I did it I install 3 SDKs and the total space was almost 10gb.
Is there a way to install just the bare essentials for android development?
I don't want to run an emulator since I have several devices at my disposal and the chromebook won't be able to handle it anyway. Thanks! :)
Assuming you already have a JDK installed, the bare minimum you need for Android development is the standalone SDK, the platform tools, and at least one version of the Android platform. All of that takes up less than 1/2gb.
You can get the standalone SDK from here. Scroll down to the bottom and it's under Other Download Options / SDK Tools only. Once you have that downloaded and unzipped somewhere, go into the android-sdk-linux/tools directory and run the android command there. It will popup the Android SDK manager. Uncheck everything except for the following and click install:
Tools
Android SDK Platform-tools
Android SDK Build-tools
Android 5.1.1. (API 22) // or different version
SDK Platform
Google APIs
Extras
Android Support Library
other packages if your app needs them
You can find more information about how to use the standalone SDK for setting up your project and whatnot here.
I need to install Android Studio in a third world country with very poor internet connection. Is it possible to download everything I need into a USB stick in the US and then go there and install?
Yes it possible but you would need to download both Android Studio and the SDK. You can do so from this page http://developer.android.com/sdk/installing/index.html.
Downloading Android Studio is simple enough. Copy it to USB and then transfer it to your machine and install. You will need an internet connection to update Android Studio when updates come out though.
The SDK is a bit different. Download the SDK tools from the above link. Once that is download save the SDK tools to a USB. The SDK can be saved anywhere and transferred to another machine easily as Android Studio points to an external location for the SDK. In this case, once the SDK is downloaded, update the SDK and get the API's and emulator images that you want by calling either of the two below:
On Windows, double-click the SDK Manager.exe file at the root of the
Android SDK directory.
On Mac or Linux, open a terminal and navigate to the tools/ directory
in the Android SDK, then execute android sdk.
Then you can transfer the SDK tools folder (which should now have grown in size) wherever you want on your machine and just point Android Studio to it by following the below steps:
File -> project Structure into Project Structure
SDK Location (in the left hand panel)
Select Android SDK location (for versions of Android Studio before 1.0.1, press +, add another sdk)
I have downloaded and unzipped the file android-sdk_r15-windows.zip from the
URL http://developer.android.com/sdk/index.html, however the install instructions
I have installed the SDK and the ADT plugin for eclipse as described with no hitches, however when I go to create a new AVD using the AVD Manager.exe that came with the install archive there are no targets. This seems to be because i haven't installed any platforms into my system. This is where the question comes. All the install instructions and tutorials refer to executables, 1) SDK setup.exe and 2) Android SDK and AVD Manager, neither of these applications came with the install zip described above. There are however 2 files SDK Manager.exe and AVD Manager.exe. So without the tools described ongline it seems impossible to install the platforms into the SDK, does anyone know where these tools went or how to install platforms into my system using the SDK Manager or AVD Manager
[Edit]
Here is an image of what I am describing,
In the root of the sdk zip file, there is an SDK Manager executable. If you run that, you can use it to select which platforms you want to download and install. Don't forget to install the platform-tools package as well.
The image below shows the available package screen within the manager:
I was also facing the same problem.
I have followed following steps.
Uninstall above installation from Eclips
Follow steps as described into the link: http://sochinda.wordpress.com/2011/04/28/step-by-step-guide-on-how-to-install-android-sdk-offline-not-completely-offline/#comment-428
I've been facing issues with my installation of Android sdk on my MAC.
As instructed on the google website I've followed their instructions to install
ADT Plugin
Android SDK
Eclipse platform
The installation is not on this order but as directed by the website. After installation I followed the instructions to create a .bash_profile(it was not present on my computer) and I updated it with the directory settings. Now I've installed it and set the path folder on Eclipse using the preferences->android. When I click apply and I exit I get an error stating that Android component is missing. Also to note that the android sdk->platform is supposed to contain an adb is empty.
I used this question's solution and yet I get the same error
Thank you for your input
UPDATE: It asks me to use the SDK manager to install I am unable to locate this component
It sounds like you haven't installed any actual Android SDK platforms.
Go to the tools directory of the Android SDK and run android. The Android SDK manager GUI will appear allowing you to install an android platform. Click on available packages, expand Android repository, and install the platform versions you want.
I am trying to add the add SDK Platform 1.6 to an existing Install of 2.2, with the help of this thread.
As suggested, I ran Help → Check for Updates which found and installed the following:
+ Android DDMS 8.0.1.v201012062107-82219
+ Android Development Tools 8.0.1.v201012062107-82219
It prompted for restarting Eclipse and when it restarted it gave me the following error message:
"SDK Platform Tools component is missing!
Please use the SDK Manager to install it."
Huh? Why? I still have the SDK Platform Tools on C:\android-sdk-windows that was working perfectly before I did this "upgrade".
What do I need to have both 2.2 and 1.6 supported in my development environment?
OK, here is what I did to fix the problem:
Open Eclipse. Then:
Window > Android SDK and AVD Manager
> Available Packages:
> Android Repository:
+ Android SDK Tools, revision 8
+ Android SDK Platform-tools, revision 1
[Install Selected]
The downloaded sdk software does not contain sdk platform tools.
For this, using cmd go to "C:\Program Files\Android\android-sdk\tools" directory and then type the following command to download those missing tools:
android.bat update sdk --no-ui
Then type y to accept all the licenses in cmd. Downloading will start in cmd itself.
Installing Android SDKs is done via the "Android SDK and AVD Manager"... there's a shortcut on Eclipse's "Window" menu, or you can run the .exe from the root of your existing Android SDK installation.
Yes I think installing the 2.3 SDK will fix your problem... you can install older SDKs at the same time. The important thing is that the structure of the SDK changed in 2.3 with some tools (such as ADB) moving from sdkroot\tools to sdkroot\platform-tools. Quite possibly the very latest ADT plugin isn't massively backwards-compatible re that change.
I don't understand why the files were relocated to /platform-tools from /tools.
It seems ALL development tools I have tried, appcelerator for one, have their setup software look for these files in /tools and fail setup. The "work around" involves a few different bits of trickery wherein you either...1) set up a soft link to tell the operating system "if you look for file "x" here it is really over here. or 2) simpler method ... make a copy of all the /platform-tools default (pre-additional android sdk installations) files and place them into the /tools folder. this circumvents the relocation that the newer sdk have done.
Then of course YOU MUST SET PATH ENVIRONMENT VARIABLES TO POINT TO THE SDK LOCATION (sometimes to the Android-sdk-[operating system name:Android-sdk-windows or Android-sdk-mac_x86 ect. ] and to the /platform-tools and sometimes to /tools.
it is a trial and error pain. But when it finally is working ...it works.
Before update SDK components, check in Android SDK Manager → Tools → Options and set HTTP proxy and port if it is set in local LAN.
The latest version of the Android SDK ships with two different applications: an SDK Manager and an AVD Manager rather than one single app that was valid when this question was originally asked.
My particular problem was unrelated to the other suggestions. I'm on a network at the moment where HTTPS traffic is mostly disallowed. In order to install the Android Platform Tools I needed to turn on the option to "Force https://... sources to be fetched using http://..." and then this allowed me to install the other tools.
Here is another alternative. Download it directly here: http://androidsdkoffline.blogspot.com.ng/p/android-sdk-tools.html.
The present version as of this writing is Android SDK Tools 25.1.7. Unzip it when the download is done and place it in your sdk folder. You can then download other missing files directly from the SDK Manager.
I have been faced with a similar problem with SDK 24.0.2, and ADT 23.0, on windows 7 and Eclipse Luna (4.4.0). The android SDK Manager comes with default Proxy IP of 127.0.0.1 (localhost) and port 8081. So as you try to run the SDK Managers as advised by earlier solutions, it will try to connect through the default proxy settings, which keep on failing(...at least on my system). Therefore, if you do not need proxy settings, simply clear default proxy settings (i.e. remove proxy server IP and Port, leaving the fields empty). Otherwise set them as necessary. To access these settings in eclipse, go Window-> Android SDK Manager->Tools->Options.
Hope this helps someone.
step 1:
click on the blue icon on taskbar. It is "SDK MANAGER". Then next click on the Appearance & Behaviour -> System Settings -> Android Sdk
step2:
select on "Android SDK location" and choose edit option.It will prompt you update/install the components. Then start the download or update and this may take a while , all you have to do is wait patiently. "In case you have previously installed the sdk it will show that the sdk android sdk is installed"
step3:
once this is done the program will compile fine ,and no error will exist whatsoever.
Thanks Udit Sood
android.bat update sdk --no-ui not worked on windows 10 powershell but
.\android.bat update sdk --no-ui worked