Android SDK manager cannot download samples of android - android

I have downloaded the Eclipse IDE with built-in ADT (Android Developer Tools) of the latest version. Then I run the Android SDK manager to get the samples
as the picture descripted below:
Name API Rev Status
Tools
Android SDK Tools 22.0.1 Installed
Android SDK Platform-tools 17 Installed
Android SDK Build-tools 17 Installed
Android 4.2.2(API17)
SDK Platform 17 2 Installed
ARM EABI v7a System Imange 17 2 Installed
Extras
Android Support Library 13 Installed
There is no "uninstalled " options , So how can I get the samples and other uninstalled packages?
Thanks in advance!

After investigation, "https://dl-ssl.google.com/ " is banned from accessing because of some reasons. And based on the solutions from network I can resolve the problem.
The solution:
environment: WINDOWS 7, Eclipse IDE with built-in ADT
find the file hosts from the directory"C:\WINDOWS\system32\drivers\etc"
edit the file hosts, append "74.125.237.1 dl-ssl.google.com"
save the file
run the Android SDK manager.exe
choose the uninstalled packages and download them

Related

How to change Android SDK Platform-Tools?

I have two Windows 10 machines with the latest Visual Studio 2017 (15.9.18) installed. But one of the machines has a different Android SDK Platform-Tools version in the Android SDK Manager:
One has 28.0.0 and the other one has 29.0.1. How can I get them on the same version?
Now I found a way to change the Android SDK Platform-Tools. You can download the versions from here:
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
https://dl.google.com/android/repository/platform-tools_r29.0.1-windows.zip
https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.zip
Then go to your Android SDK Location (for me it is C:\Users\some-user\AppData\Local\Android\android-sdk\platform-tools) and put the files from the archive in this directory. Make a backup first - just in case.
Don't know why you can't do this in the Android SDK manager (Android SDKs and Tools Version 1.2.192 (d15-9/9312139)) itself and why he doesn't offer an upgrade after initial installation of Xamarin.

What packages are really required for Android Applications Development

I've a 40kb/s Internet. The Android SDK took me 1 and half hour to download(at first I thought it is packaged with all required packages). I am using Ubuntu 14.10(yea, it took me 11 hours to download).
I downloaded and installed Android SDK Tools, Android SDK Platform-tools and Android SDK Build-tools. In Android 5.0.1(API 21), I unticked both Android TV whatever System Image and both Android Wear whatever System Image because I am sure that I'm not going to use it.
My questions is what things are really required for Android applications development? Can anyone explain what are those packages for?
EDIT: I am not new to Java development. I have Java JDK 7, Eclipse(without the ADT plugin) and IntelliJ installed. I'm going to use IntelliJ as it is came with "Android Support" plugin)
Downloading this packages will be enough for you
SDK Platform in Android 5.0.1 (API 21)
Android SDK Tools 24.0.2 in Tools
Android SDK Platform Tools 21 in Tools
Android SDK Build-tools 21.1.2 in Tools
You need eclipse,adt bundle and android sdk tool that's it. No other thing is required for it.
Basically you need:
Eclipse IDE integrated with Android
Select Android version on which you're going to develop your application (Lolipop/KitKat etc) through SDk Manager
Java SDK (with JRE)

Cordova cannot find Android 19 SDK while setting up Android project

I am receiving this error message while trying to run "cordova platform add android":
"Error: Please install Android target 19 (the Android newest SDK). Make sure you have the latest Android tools installed as well. Run "android" from your comm
and-line to install/update any missing SDKs or tools."
However, I have the SDK installed (SDK Tools 23.0.2, SDK Platform-tools 20, SDK Build-tools 19.1). I have my ANDROID_HOME set to "C:\Program Files\Android\android-sdk". This is the tail of the environment variable PATH on my computer:
"...;C:\Program Files\Java\jdk1.7.0_67\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;%USERPROFILE%\AppData\Roaming\npm;C:\Program Files\Android\android-sdk\tools;C:\Program Files\Android\android-sdk\platform-tools;C:\Program Files\Android\android-sdk\build-tools;%USERPROFILE%\AppData\Roaming\npm;C:\Program Files\WinAnt\bin"
Can anyone clarify if I am doing something wrong here? How to make it work?
What I found out eventually is when Cordova asks for Android target 19, it does not mean Android SDK Revision 19. Rather it refers to the Android 4.4.2 which has an API level 19.
So installing the Android 4.4.2 from SDK manager was the solution.

Android build failing with build.xml:479: SDK does not have any Build Tools installed

Why does my build fail with this error?
{android-sdk}/tools/ant/build.xml:479: SDK does not have any Build
Tools installed
It started showing up after updating SDK tools to 22
try run
android update sdk -u
in terminal.
You will see logs like this on your screen
Installing Archives:
Preparing to install archives
Downloading Android SDK Platform-tools, revision 17
Installing Android SDK Platform-tools, revision 17
Stopping ADB server succeeded.
Installed Android SDK Platform-tools, revision 1799%)
Downloading Android SDK Build-tools, revision 17
Installing Android SDK Build-tools, revision 17
Installed Android SDK Build-tools, revision 1799%)
Downloading ARM EABI v7a System Image, Android API 17, revision 2
(71%, 775 KiB/s, 41 seconds left))
After Android SDK is successfully updated, make sure Build Tools is installed.
http://andrewma.com/2013/05/18/resolving-sdk-does-not-have-any-build-tools-installed-error/
After upgrading my Android SDK to 22, I started running into failed builds with the error message:
{android-sdk}/tools/ant/build.xml:479: SDK does not have any Build
Tools installed
Couldn’t find very much on the web on how to resolve this and eventually I realized that it was because I only updated existing packages. In SDK 22, the platform tools and build tools are split up into their own items in the SDK manager.
Make sure you install the build-tools and platform-tools.
I installed Build Tools using SDK manager. They look installed, but they aren't. My {SDK}/build-tools folder is simply empty.
I just downloaded sdk from http://developer.android.com/sdk/index.html and moved android-4.2.2 folder in my build-tools folder.
Because you don't have android SDK build-tools installed:
$ ~/Desktop/android/tools/android
Just go to .buildozer/android/platform/andoridsdk/tools and run Android SDK GUI. Install the latest build tools. I just worked around this; I installed buildtools 19.1 and the packaging was done successfully.
For manual build-tools installation, go to:
https://dl-ssl.google.com/android/repository/repository-8.xml
Scroll down to <----build-tools---->
Copy the zip file link (which one depends on your development environment operating system) and paste it in the url box and click search.
Save it somewhere, extract it into the build-tools folder.

Android SDK and Eclipse, shows different installed platforms?

When I open C:\Program Files\Android\android-sdk\SDK Manager.exe it shows me that I have installed
Tools
Android SDK Tools
Android SDK Platform-tools
Android 2.2 (API 8)
SDK Platform
Samples for SDK
Google APIs
When I open Eclipse and click on the "Android SDK Manager" button it shows that Ive installed
Tools
Android SDK Tools
Android SDK Platform-tools
Android 4.0.3 (API 15)
Documentation for Android SDK
SDK Platform
Samples for SDK
ARM EABI v7a System Image
Google APIs
Sources for Android
Android 2.1 (API 7)
Documentation for Android SDK
SDK Platform
Samples for SDK
Google APIs
Extras
Google USB Driver
Why does it show different packages and wich one should I use?
This is most probably because Eclipse is using a different Android SDK location than C:\Program Files\Android\android-sdk. Take a look at Preferences > Android > SDK Location field to see what Eclipse is using.
Go to Windows Menu, Click on Preference Option and in the Dialogbox left side there is second option called "Android", click on it & check that your SDK directory is same as you are view from C: or some other.

Categories

Resources