What is Android SDK build-tools, platform-tools and tools? - android

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 :)

Related

Android SDK Tools

Where can I find information about all listed Android SDK Tools, what they mean and (maybe) how to use.
The best place to visit is Android Developers site.
Android SDK Tools is a component of the Android SDK. It includes the complete set of development and debugging tools for Android. It comes as a part of Android Studio. So if you install Android Studio, Android SDK tools will also get installed. You can also install it separately if you are using any other IDE like Eclipse for development.
Please refer the links below to get a better understanding of,
Android SDK Tools released so far.
Android SDK Platform Tools
Android SDK Build Tools
Android Support Library Packages
Android SDK Platform-Tools is a component for the Android SDK. It includes tools that interface with the Android platform, such as adb, fastboot, and systrace. These tools are required for Android app development. They're also needed if you want to unlock your device bootloader and flash it with a new system image.
Although some new features in these tools are available only for recent versions of Android, the tools are backward compatible, so you need only one version of the SDK Platform-Tools.
Check it:
https://developer.android.com/studio/releases/platform-tools
I hope It helps!

Android 7.1 Google APIs ARM - no cpu abi image available for this target

I am new to Xamarin and Android development. I have installed VS 2017. I have installed Google APIs ARM under Android 7.1 API 25. But I am not able to create the emulator. It says "no cpu abi image available for this target". What I might be missing in it?
After googling further i came across a helpful link
The screenshots you have included appear to show the GUI interface for the Google AVD Manager included with Android SDK Tools <= 25.x. Google made the decision to remove the GUI interface for many of their tools in Android SDK Tools 26.
We have been working on creating our own GUI interfaces to replace the ones removed by Google in their SDK Tools. You'll notice that we have our own interface for the Android SDK Manager built right into Visual Studio for Mac. We are working on a similar solution for the AVD Manager.
Until we have published our own solution I would strongly recommend the following:
Update the Android SDK Tools to >= 26.X.
Remove any AVDs that you have already created with the old tooling (they will not work).
Create new AVDs using the avdmanager CLI tools included with v. 26 of the Android SDK Tools
https://developercommunity.visualstudio.com/content/problem/124590/no-cpuabi-system-images-available-for-this-target.html

Install android sdk in eclipse without downloading full os

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.

Android:Where is exactly Android 1.6 SDK download?

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

Target option is disabled in Eclipse window->Preference->android

Why my target option in eclipse is disabled? I cant select the target platform.
On the other hand the platform folder and adds-on are empty.
Plz any ideas?
After you have installed your SDK, you need to download all the platforms you need (like Android 1.5, Google API's, so on...)
Then you should create some virtual devices with some parameters (like screen size, sd card...). Then you should run the app over the platform you like.
I guess you need to install required platforms.
Eclipse > Window > Android SDK and AVD Manager > Available Packages ....
Encountered the same problem. The Android SDK archive does not come populated with a specific Android platform or Google add-on. We can use the SDK Manager to install or update SDK components such as platforms,tools, add-ons, and documentation. I used the eclipse tooling option path provided by the first answer. There is also a "SDK Manager.exe" file that can be used to download outside eclipse.
You need to install the complete API that you're working on.
Suppose, In my case I am working on Android 5.0 SDK Tools and I Froyo 2.2 for minimum SDK Verison support. So Now I have 2 SDK Tools Installed, Android 5.0 and Android 2.2.
To make them support as Target SDK, I need to install the complete package from Android SDK Manager.
In your case install the complete package of the respective API you're using. After installing, restart eclipse and then your Target Option will be enabled.

Categories

Resources