which packages do i install from sdk manager in android studio - android

i was installing android studio
and when i went to sdk manager it told me to install 10 packages by default .. while these packages were installing i lost my internet connection so i cancelled the whole process. now when i opened the android studio again on the home screen it says rendering fail and the phone which shows up in the middle of the screen (design view ) doesn't show up. i guess this happened due to some packages where not installed .. so i want to know what the the basic packages that i need to install. could someone post a list or a screen shot of your installed packages

You need
Android SDK tools
Android SDK platform-tools
Android SDK build-tools
Install everything in Android 5.0.1 (API 21) - or whatever the version you want
From Extras: Android Support Repository, Android Support Library, Google Play Services, Google Repository, Android Auto API Simulators, Intel x86 Emulator Accelerator(HAXM installer)
FYI, I'm using Eclipse IDE, so the names can be different. But these will be there in Android Studio too

Recommended packages by android developers
Android SDK Build Tools - Includes tools to build Android apps.
Android SDK Platform-tools - Includes various tools required by the Android platform, including the adb tool.
Android SDK Tools - Includes essential tools such as the Android Emulator and ProGuard.
Android Support Repository - Includes local Maven repository for Support libraries, which provide an extended set of APIs that are compatible with most versions of Android. It's required for products such as Android Wear, Android TV, and Google Cast.
Google Repository - Includes local Maven repository for Google libraries, which provide a variety of features and services for your apps, such as Google sign-in, Google Maps, Games achievements and leader boards, and much more.
In the SDK Platforms tab, you must also install at least one version of the Android platform. Required. At least one platform is required in your environment so you're able to compile your application. In order to provide the best user experience on the latest devices, use the latest platform version as your build target.

Related

How to install latest Android SDK with Delphi SDK Manager?

I am using Delphi 10.4 and I would like to install Android 31 API SDK. Delphi has its own SDK manager, available e.g. from 'Options - Deployment - SDK Manager'. And this SDK Manager has option 'Add...' 'Add a New SDK' - 'Select an SDK version' - 'Add New...'.
So far everything is fine. But 'Add New...' opens 'Create a new Android SDK' which does not provide options for downloading and installing SDKs, it just requires to the directories to an already installed SDK. It also suggests, that 'Android SDK Base path' could be '/Documents/Embarcader/Studio/21.0/CatalogRepository/AndroidSDK-2525'.
So, this suggests, that I should manually downaload Android SDK (specific API level) in unzip/install into the CatalogRepository for the specific Delphi version.
The strange thing is that Google/Android does not provide the option to download specific, standalone SDK. Android, instead, suggests to download its own SDK Manager tools https://developer.android.com/studio/#command-tools and then do all the SDK management from that tool. While I can expect that this command line tool smoothly integrates with Android Studio, there is not suggestion that it integrates with Delphi SDK Manager.
I am aware of Target Android API 29 on Delphi 10.3.3 and https://docwiki.embarcadero.com/RADStudio/Rio/en/Adding_an_Android_SDK, there is no suggestion how can I get SDK of specific API level to my computer.
So - how to get SDK of specific API level to my computer ready to be used by Delphi SDK manager.
Additional Information: I am reading https://delphiworlds.com/2020/09/manual-android-sdk-ndk-install-delphi/ and http://delphi.org/2019/06/manually-installing-android-sdk-ndk-and-java-for-firemonkey-development/ and they may give the answers. Delphi has it own peculiarities.

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

Categories

Resources