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.
Related
I know that this is a pretty basic question. But I am new to native android development and I am having trouble wrapping my head around what is what.
I am using the Android Standalone SDK and not using Android Studio so please guide be accordingly.
Let's say that I want to build my app for API level 19. what level of platform tools and build tools do I need to install.
This is what I have currently
As I want to build for API 19, which I have installed. Do I need to have version 19 of Android SDK build tools or they can be higher?
Kindly please explain to me what each term means as well in laymen's terms.
-Thanks
Build-Tools is a component
of the Android SDK required for building Android apps. It's installed
in the /build-tools/ directory
So, build tool is to build your android app. That is like the makefile for C projects. Output is an APK file.
Android SDK Tools is a component for the Android SDK. It includes the
complete set of development and debugging tools for Android. It is
included with Android Studio.
So, Platform tool is where all the tool to interact with the android device you have, such as fastboot and adb. For example, to install your apk into the devices, run it, debug it, and grep some file from it, you need to first connect your device to adb bridge and run all those command on it.
Let's say that I want to build my app for API level 19. what level of
platform tools and build tools do I need to install.
Basically, you should have all the latest thing here. If you are deploying for a API 19 device, you should also have the Android SDK platform 19.
I haven't touch those things in a while, because I install all those things anyway, so I'd appreciate correction.
Android SDK Build-Tools is a component of the Android SDK required for building Android apps. It's installed in the /build-tools/ directory. It includes the complete set of development and debugging tools for the Android SDK like emulator, sdcard, sqlite and apk builder etc.
For more details check Android SDK Build-Tools
Platform-tools are used to support the features for the current android platform including adb which is acting like a bridge to communicate with emulator or device.
You can also know more about this topic by clicking here
This may be old but i appreciate it. I build apk via the command line so I was thinking with this answer, I may not need the Platform-Tools.
By the way, we are on Android 12 already - API Level 32 :)
I'm stumped after doing a fresh install of Android Development Tools r21. http://developer.android.com/sdk/index.html
I've installed this and I am looking to create an AVD for Android 2.1 (API 7) to test some things, but I cannot find an option to install the Android 2.1 system image. In fact, nothing prior to Android 4.0 is an available system image for an AVD.
I've installed the SDK Platform but it doesn't include the system image. Based on the Official Add-on Sites, I tried to go to https://dl-ssl.google.com/android/repository/sys-img.xml but this is essentially an empty XML file.
I've also checked the ADT Known Issues http://tools.android.com/knownissues
Finally, from How install old ADT13 in Eclipse I gleaned the possible add-on site of https://dl-ssl.google.com/android/repository/repository.xml, but that doesn't pull anything into the SDK Manager either.
Does anyone know how to get this working?
Android SDK Manager
Android SDK Manager - Add-on Sites
I've solved my own issue. Apparently starting in Android Developer Tools R21
System images of Android 4.0 and newer
Installed by checking the ARM EABI v7a System Image box in the Android SDK Manager
System images of older than Android 4.0
Installed by checking the SDK Platform box in the Android SDK Manager
This was the source of confusion.
Additionally you must restart Eclipse to get it to be an available option, which I didn't do.
I have been researching for sometime now regarding the process to install android sdk and associated tools . After visiting Android Developers page, i first installed the android sdk and then installed eclipse plugins for my indigo version from the install softwares options.However, it is mentioned in the developers page :
Download the Android SDK. Install the ADT plugin for Eclipse (if you’ll use the Eclipse IDE). Download the latest SDK tools and platforms using the SDK Manager.
I have downloaded the sdk and installed the adt plugins for eclipse.I just need to point the eclipse towards the location of the sdk. However, i am stuck at the last step which is asking me to download the latest tools using the sdk manager. The manager interface pops up and i see a lot of options there. I don't know which ones i must select and install. If some one can help me out here and tell me which options to choose and install(if possible, with a screen shot), it will be very beneficial for me.
I just went through setting things up, myself, actually.
For the most part, you'll figure out pretty quickly through trial and error what you'll need. If you're using Eclipse, it will yell at you when you're missing things, and you simply find what you're missing in the SDK Manager and install it.
That said, here's what I needed to get up and running with a very basic setup (this assumes using Android 4.1, if you plan on building for an earlier version, then you'll need to download the corresponding libraries from that version):
SDK Platform
ARM EABI v7a System Image (optional, you can also grab the Intel x86 Atom and/or Mips System images if you plan on developing for one of those platforms; ARM is the default, from what I've seen)
Android SDK Platform-tools
You get these simply by going to the Android SDK Manager (your SDK folder/tools/android; or click the "SDK Manager" button in Eclipse), selecting what you need, and clicking "Install Packages". Once you do that, you can follow the rest of the guide that you linked for building your first app (I highly recommend it, it's extraordinarily beneficial), and your app should run with no problem.
I wish to update my SDK 2.3 to the latest revision of 2.3. I don't want to update to 3.0 preview and lose the GPS emulation and have a slow emulator. 2.3 is just fine for me. I've updated the ADT plugin to 9.0.0 by the Eclipse 'check for updates'.
If I run the AVD manager from Eclipse and look at my installed packages, I have installed :
and the available packages with the ones that I think I want checked are:
My question is: what do I get with the platform tools? Is it just what goes in the platform-tools folder (i.e. the aapt.exe, adb.exe etc)? I don't want to overwrite the tools folder and end up with the slow emulator.
Yes, platform-tools are adb.exe and friends. You will also want Android SDK Tools, revision 9 as well, and don't worry about Honeycomb stuff - even if you do install them, they won't interfere with you (for example you can filter on platform version within the developer docs).
I want install Android version 1.6 SDK. I already have Android development setup with Eclipse and Android 1.5 SDK.
Wherever i search in Google to download Android 1.6 SDK, it finally goes to link: https://developer.android.com/sdk/index.html
This link has three setup SDK zip files, but no where mentioned what version of SDK setup are those? Why such confusions in this Android website for showing just version of SDK setup files? Where i can get exactly Android 1.6 SDK setup download? Could someone point out me clearly?
Is there any special steps that i need to follow to overwrite 1.6 SDK with my existing setup environment?
If you've got 1.5 setup already, all you need to do is to open Eclipse, goto Window menu > Android SDK and AVD Manager. From there, select "Available Packages" and select the new components you want to download and install from there.
-In the SDK Manager, you may have to select Obsolete(under show) to see 1.6
AIUI the SDK is not versioned. You install the SDK, then install the 1.6-specific components into your development environment. It's all explained on the website, quoting:
Because each version of the Android platform can be installed as an individual component of your SDK, you can customize your development environment to the Android platforms you are targetting. Testing your app on multiple versions of the platform is very important in order to successfully operate on as many devices as possible. Be sure to install each version of the Android platform with which your app is compatible, then test your apps on AVDs that run each platform.
The new platform actually includes the older ones. If you install the latest platform, when you create a project you get to choose what platform you want to build against.
You can manage any Android SDK from the Android SDK and AVD Manager. Download it here
After downloading, unzip the file and run android.bat. You will find this inside the tools folder. You can then download any version of the Android SDK.
To install/update ADT, check out the guide at Google:
http://developer.android.com/guide/developing/eclipse-adt.html
http://developer.android.com/sdk/eclipse-adt.html#installing