Android SDK and AVD Manager installation - android

I am new to android development.
Have tried a couple times downloading the Android SDK and ADT plugin for Eclipse
In the Android SDK and AVD manager load fine but will not load any available packages.
Show:
- Android Repository
--"Some packages were found but are not compatible updates"
In the installed it shows 1.5 to 2.3 SDK platforms.
How to I get them available.
Appreciate help.
Thanks,
Alex

You can use following step:
1. window ->
2. customize perspective ->
3. command group availability tab ->
4. on the check box android SDK and AVD manager check it ->
5. click on ok

I had the same issue. Googled arround found nothing, and gues what:
It was the a checkbox in the main Android SDK and AVD Manager.
Click: available packages
Then select: Android Repository
Then you see the "some packages were found but are not compatible updates" message, which is why you created this question.
On the bottom of the form, you can see: 4 buttons and 1 checkbox.
Make sure you Uncheck: "Display updates only" when it is unchecked, you see the whole SDK list with Android 3.2 etc.

Steps for installing Development Environment.
Download Android SDK and Install it.
Install Android API’s for different android versions. The latest version is Android 2.3.
Download and Install Eclipse Install ADT plugin.
Create AVD (Android Virtual Device) for testing the applications.
I think you did not linked your Android SDK folder with Eclipse ADT plugin. Goto Window->Preference->Android browse your Android SDK if you have installed ADT plugin.
There are many resources available online. Here is a blog post where you find some good links to resources which help you in installing Android Development Environment.
Getting Started with Android
If you still didn't able to do it. Let me know your specific problem, where you got struck.

I think there is already an answer that probably works for most people (unchecking the box), but since that did not work for this install I have on Linux Mint, this did work:
(not my website)
http://blog.netscribe.us/blog/post/Step-by-Step-Guide-on-How-to-Install-Android-SDK-Offline-%28not-completely-offline%29.aspx
Basically, download the zip for the package you want and extract it to /platforms/.

Related

Package "Android Emulator" with revision at least 28.1.9 not available

I am trying to add Android Q using AVD manager but it says: "Package "Android Emulator" with revision at least 28.1.9 not available." Has anyone tried this before? what should I do now to resolve this.
Thanks to #JulianC I also set the emulator. I tried to download it standalone from the official site, but couldn't. Then switched to Canary Channel. I pressed Tools > SDK Manager, then Updates label and changed channel. Also pressed Check Now button and dismissed a dialog (Remind Me Later).
Then switch to Android SDK and updated needed emulators.
Then reverted back to Stable Channel.
After several days of work I faced some visual bugs in the emulator. Sometimes I have to restart virtual devices from AVD Manager with Cold Boot Now:
Sometimes I recreate virtual devices in AVD Manager.
Based on https://developer.android.com/preview/release-notes:
Note: If you try to download the Android Q Beta 2 emulator system images from within the emulator, you will be prompted to download the latest version of the emulator. If you are on the stable channel of Android Studio releases, then you might need to switch to the canary channel to be able to download this latest version of the emulator. You do not need to download all of Android Studio from the canary channel—you can download only the emulator from the canary channel from within the SDK Manager.
You have to use the Android Studio Canary build to get an updated emulator. This worked for me
As stated in the other answers, installing the update from the canary channel solves this problem. However, if you don't want to install Android Studio from canary channel, you can just use the sdkmanager tool. Just run this in the terminal:
sdkmanager --update --channel=3
************ EDIT ****************
Today I found version 29.0.6 available in stable channel.
Just click "Check for Updates..."
I found kind of solution.
Go to Preferences -> Updates
Select "Canary Cannel" and click "Check Now"
Dismiss the updates "Remind me Later"
Go to Preferences -> Android SDK -> SDK Tools
Click 3 times on "Android Emulator" checkbox (The state on the checkbox will be the same like in the beginning)
Go again to Preferences -> Updates
Select "Stable Channel" and click "Check Now"
Install recommended updates (android emulator to 29.0.3)
Also you have to download Android Q Preview from Preferences -> Android SDK -> SDK Platforms
It works for me.
Hope to help you :)
For a more recent answer:
Those installing from snap:
The reason is listed here:
This happens because Android Q is still in beta and therefore it’s only be available
through the Canary and Development channels.
The solution is to download Android 3.6 from here.
For anyone who bumps into this issue whilst using Android's Command Line tools, --channel=3, at least on Windows, will not actually net you the latest version of the Android emulator, and thusly as it is dependent on that Emulator version, the latest Android images (particularly google_apis_playstore;x86 v8)
As a workaround, I was able to manually install the package by fishing around in the repositories here:
https://dl.google.com/android/repository/repository2-1.xml
I was sufficiently annoyed about having a broken tool that I made a lightweight Python tool to do the steps below for most any package, which is what I link below under automated version.
This will also work for the Android Studio versions in theory, but I haven't tested those personally. Your mileage may vary.
AUTOMATED VERSION
Clone or otherwise download this repo: https://github.com/FailSpy/android-sdk-alternative
With Python 3.6+ installed, go into the folder you cloned it to with your commandline, and run python downloadtools.py emulator (or any package name if you're looking for other packages)
That will then download and unzip the latest package for you in the location of your SDK (using env. variables ANDROID_SDK_ROOT or ANDROID_SDK_HOME)
MANUAL VERSION
To make this easiest, you'll need an existing install of the emulator
To find the latest version download URL:
Find on that XML file a <remotepackage> tag with path="emulator" featuring inside it the <channelRef> tag with 'channel-3' -- which signals latest version, locate the 'url' tag for the latest version for your platform (currently, emulator-windows-6549980.zip) and add that to the end of the previous URL -- replacing 'repository-2-1.xml'
e.g. https://dl.google.com/android/repository/emulator-windows-6549980.zip (if you're not too far from the future, you can just use this link rather than digging -- just replace 'windows' with 'darwin' for MacOS or 'linux' for Linux)
Take note also of the major, minor, and micro tags in the archive as well. We'll need this in a moment. In this case: 30, 0, and 16 respectively to make version 30.0.16
At that point, find your SDK install location
Find your currently installed emulator package in there under folder emulator, and edit your package.xml. Replace the major, minor, and micro with the version you found in the repo (or lazily with the version you know you need, though I don't recommend this)
Finally, delete the existing install (making sure to keep your edited package.xml!) and unzip your downloaded file into there, replacing your install.
Your SDK Manager should now recognize the emulator install as the version you set, and allow you to install the latest images.

Android Studio Not Including SDK

I'm trying to setup Android Studio on a new install of Mac OS X Yosemite. I downloaded the Android Studio Beta v0.8.14 from here: https://developer.android.com/sdk/installing/studio.html and upon launching it complained about not having an SDK (although the download page indicates it should include the SDK). I tried searching after installing for the SDK and can't find it (a few other posts indicate /Applications/Android Studio.app/sdk but that location doesn't exist). Where is the SDK installed and what is required to set it up?
Go to the SDK Manager and click Edit... next to the field for the location of the SDK. Then an "SDK Setup" window should display. There you can download the SDK.
Edit: This answer is deprecated as Android Studio seems to bundle everything since a while already.
Old answer
It seems the android-studio-bundle version is no longer available in the download page (instead there are only android-studio-ide). When you start Android Studio, it won't let you create a new projet until you configure the SDK location.
That means you have to download the SDK separately here, extract it somewhere, and configure it on Configure->Project Defaults->Project Structure. After that, the SDK Manager icon will be enabled and you can download the tools you want.
I had the same problem on Windows. After I re-installed it a few times, I found that the SDK was installed but hidden in C:\Users\<user name>\AppData\Local\Android\sdk.
Information for Windows
For some reason, which I have no time to investigate, Android seems to provide, currently, the IDE and the SDK separately, while in the Dev Webpage says the opposite.
This is the "complete" (false!) tool I have just downloaded: android-studio-ide-171.4443003-windows.exe (SDK is missing here, note the "ide" in the file name).
And this is the real complete tool I had downloaded few months ago, from the same place...: android-studio-bundle-162.3871768-windows.exe
Note that this last one has the "bundle" in the file name.
Please, download the bundle (IDE+SDK) from here:
https://dl.google.com/dl/android/studio/install/2.3.1.0/android-studio-bundle-162.3871768-windows.exe?hl=ko
I want to suppose (¿?) that similar link you can find for Linux or macOS just Googling for it.
Hope this helps!
It worked like this for me
Downloaded the Android Studio
Install Android Studio
Open Android Studio after installation.
You will get a dialog box to import settings if you already have Intellij installed on your machine. Say "Do not Import". Otherwise continue to next step.
It will ask you in the dialog box to pre-configure such as theme, path etc.
Just click next next...and then Finish. You will see the SDK tool will start downloading.
After installation is finished. You can find it in this path: C:\Users\<user name>\AppData\Local\Android\sdk
If you have ever installed Android Studio before and then removed it, it won't reinstall the SDK automatically (speculation: some Windows setting somewhere).
The solution is starting Android Studio and then
File -> Manage IDE Settings -> Restore Default Settings
This will wipe any custom settings you don't have at this point and trigger the SDK install
What Pablo wrote is misleading.
This is the "complete" (false!) tool I have just downloaded:
android-studio-ide-171.4443003-windows.exe (SDK is missing here, note
the "ide" in the file name).
Yes, it is IDE only, but after you install this IDE and first time run it, SDK will be downloaded automatically. So there is no need to download some outdated bundles. Just use default "green button" on https://developer.android.com/studio/index.html
I'm using Ubuntu, and had previously installed Android Studio. It was using too much space, so I deleted it. Now when I downloaded it and started ./studio.sh, it found my previous installation configuration directory and asked to import from there. I did, and then this problem occurred.
I put the directory .Android Studio 3.3 in the trash and restarted ./studio.sh, and it imported the SDK automatically for me. That was good, because I couldn't find it where it was supposed to be according to the dialog box. The 3.3 above is from the version of Android Studio I was installing.
in my case, my country is forbidden from google, and my PC's time zone was set by my counrty.
after I change my timezone to another country my problem solved and android studio download SDK and nkd easily
Re-install studio. If ANDROID_HOME is set to custom location then it will install sdk there else it will install SDK in C:\Users<user name>\AppData\Local\Android\sdk
Note:this is a temporary fix
If you have Eclipse then you can use that SDK for emulation.
Just run the sdk manager and emulate a version of android. Then while you are asking for emulating something ie while running code it will show your emulator as online and you can even use it.
Hope this helps you.
All the Best...

Android SDK Manager not showing any packages to install

I'm having a problem in the Android SDK Manager in which it doesn't show that I have any packages available to install:
When I first installed the SDK, the only line I saw there was the Android SDK Tools. I was able to add the Platform-Tools and Android 4.2 package my copying and pasting from the Android ADT bundle that I downloaded separately.
The log is showing no issues:
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Done loading packages.
And I can see available packages when I open up the XML the package URL returns.
Things I've tried:
1. Messing with the proxy in Tools > Options. I've tried both 127.0.0.1 and blank.
2. Opening the SDK Manager from Eclipse and directly (regular and as Administrator)
3. Uninstalling and re-installing the Android SDK. Downloading the latest versions of everything.
My system:
Windows 7 x64
Eclipse 4.2.1 Juno
SDK Manager 21.1
ADT 21.1
Any ideas? I suppose I could download the files by pulling URLs directly from the XML, but that isn't ideal.
Edit:
Since I can pull the repository-7.xml file using a browser, this doesn't look like a Firewall/AV/Network setup issue. It's a matter of the SDK Manager not loading up the package information it pulls back through the XML.
I got the same problem. For me the solution was putting a check on the "Force https://... sources to be fetched using http://..." box. It's on Android SDK Manager's preferences screen, below the proxy settings.
Also if this doesn't solve your problem, instead of downloading SDK again, I suggest you to download the Adt Bundle
So I was finally able to see all of the available packages. I accidentally hit the SDK Manager icon in Eclipse instead of the AVD Manager I meant to press:
And all of the available packages showed up.
Also, now when I open the SDK Manager using any of the other methods (directly from SDK directory or using the Window > Android SDK Manager menu option in Eclipse) all of those missing packages are now showing up.
i had the same problem.
and nothing works for me, nor clearing cache, nor restart eclipse, nor running sdk manager from eclipse, nor forcing https (from sdk manager options)
but every thing works fine when i used proxy!!
sdk manager-> tools-> options -> http proxy server
I know that I'm kind of late to the party, But I wanted to share my experience with this issue.
It turned out that the underlying Logger module used was the SL4J Android edition. Because I had overridden the version (using an external JAR file) that the SDK Manager used, a lot of things went wrong when it tried to load the Logger class. I discovered this when i tried to run
android-sdk\tools\android.bat update sdk --no-ui
which showed me an exception thrown by the ClassLoader of the logger module. Removing every trace I had of the SL4J modules in my %JAVA_HOME%\jre\lib\ext folder solved ALL of my problems.
I know this is old, but just wanted to add for posterity. I had this same problem and it turns out I had previously ran the SDK Manager as root (Ubuntu Linux). My user account didn't have permissions to overwrite the files and update the list. Once I corrected the permissions, it ran fine.
On Windows, if you are running the SDK Manager directly from ~Android\android-sdk directory, just right click and Run as administrator. That did the trick for me anyway.
Are you opening the Adroid SDK when you unzipped the folder downloaded?. Becouse i had a problem like you, and the solution was that i am taking a wrong folder path.
What i did:
Downloaded again the sdk and put it in C:/ (Another Path)
Check in this path if i get the same result.
install the new tools and android version from the new path.
becouse i see that u have your folder in C:/ProgramFile/Android......... and i have in this path only that i have installed.
Open Android SDKManager->Android SDK->SDK Update Site
Click on Launch Standalone Android SDK Manager you will see the packages.
On SDK manager go to tools -> options and select force https checkbox; now you should see all

unable to download android SDK versions and extra's(add ons)

I have downloaded new android setup bundle file with the name "adt-bundle-windows-x86" from the official android developers site (enter link description here) and followed the instructions specified in "Setting Up the ADT Bundle" option of the same site(http://developer.android.com/sdk/installing/bundle.html) to set up the development environment. i opened the eclipse as per the instructions from that site and checked for the platforms available and found only Android4.2(API 17) only. so i've decided to install and google maps api addon and previous versions. i.e 2.2 and above all versions.
But if i open eclipse -> Window -> Android SDK Manager i am unable to see the options to install any of the platforms and addons. showing the below screen shot only.
please help me to solve this issue.
One thing you could do is, go into he Android SDK manager:
Select into Tools/Options . Uncheck download cache and click in cleaar cache
Then Packages/reload

Unable to install platforms/USB driver for Android r15

First of all, I'm a student that wants to work with Android for my internship. Here is a link about my upcoming question, but he did not get a good awnser yet: Unable to Install Platforms for Android SDK r15
After reading some about android I started the download and install. I got a SDK manager and a AVD manager. Got eclipse etc too. But no SDK and AVD manager like I see everywhere on the internet. I searched everywhere and I can install some things manually, but that isn't handy.
So with my SDK manager I cannot download the platforms I want. Maybe I need to download an older reversion of the SDK, so I get the SKD and AVD manager instead of seperated.
Please take a look at the link. Sorry for my bad english, it's not my native language.
Anyone got a solution for downloading the platforms/Google USB driver/etc.. in the SDK program itself?
Thanks in advance
when you installed the SDK manager into the eclipse with a install new software method as spefified in the android developer installation files.
Downloading the ADT Plugin
Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer.<>
Assuming that you have a compatible version of the Eclipse IDE installed, as described in Preparing for Installation, above, follow these steps to download the ADT plugin and install it in your Eclipse environment.
Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
after that ... you can can install the SDK from this link... now in the eclipse open the preferences --> Android. specify the path to your SDK root directory... that is it... now press the ADT plugin icon and then you can download any version you want...
UPDATE:
i think the version of eclipse is quite wrong it is better and safer to install the eclipse classic version... the jdk can be decided upon what is you base system. once you have the JDK as 32 or 64 bit download the appropriate eclipse classic version(almost every one does it except with really specific java development{which can be installed/customized any time later}) and helios or indigo i don't think that would matter ... until and unless the ADK supports it. Everything is taken care of by it.

Categories

Resources