Target option is disabled in Eclipse window->Preference->android - 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.

Related

Android studio 2.3 canary missing 'Launch Standalone SDK Manager' option in 'SDK Manager'

I inadvertently accepted android studio's upgrade suggestion to 2.3 (canary), although I had always had it set to check for the developer channel, not canary, somehow that got switched. Now I no longer have a 'Launch Standalone SDK Manager' option in my 'SDK Manager' window.
I liked the standalone manager for various reasons, including that it suggested what needed to be downloaded and upgraded. The regular sdk manager lists a lot of things I expect I don't need like 'CMake', 'LLDB', 'Constraint Layout for Android', 'Solver for ConstraintLayout', 'Google Play APK Expansion Library' ('Google Play APK Expansion Library rev 3' is already installed, so do I need this too?), etc.
Is the standalone sdk manager unavailable for 2.3 canary 2, or is there something more I need to do to get it?
I also have updated to the Canary version 2.3 and I'm amazed that they took it away there.. but you can still start it via the SDK Manager.exe located in your sdk folder
C:\Users\You\AppData\Local\Android\sdk
Present:Today when i was trying to launch, the terminal says, The android command is no longer available.
For manual SDK and AVD management, please use Android Studio.
Past:
I also face the problem after updating to Canary version 2.3 on my mac.. On Mac or Linux, open a terminal and navigate to the tools/ directory in the location where the Android SDK is installed, then execute android sdk
or for only mac user go to folder located in
/Users/your mac account name/Library/Android/sdk/tools
and double click android to Launch Standalone SDK Manager
My Advice: Stop Searching for Launch Standalone SDK Manager and get use to be of android studio SDK manager and just choose the Show Package Details for more detailed description like Launch Standalone SDK Manager.
With the 2.3 Canary update, when using SDK Manager.exe or tools/android.bat, no manager is opened. However tools/android.bat give a pretty good answer to why it is not working:
The "android" command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use
tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat
We can still use command-line tools, but no more standalone SDK manager.
Yes, "Launch Standalone SDK Manager" option in Android Studio V2.3 is not available, But you can still start it via SDK Manager.exe located in your sdk folder.
c:\Users\You_User_Account_Name\AppData\Local\Android\SDK Manager.exe
Enjoy Android Studio with new features.
I just received an official response from AOSP -
Project Member #1 uchid...#google.com
deprecated feature , please check latest stable version Android 2.3
The link is now gone, and it is intentional.
Yes the standalone sdk manager option is missing in Android Studio 2.3. Get yourself used to the sdk manager available in Android Studio settings.
Also if you are installing Android Studio from scratch, you will not be available to find Sdk Manager.exe from C:\Users\You\AppData\Local\Android\sdk or anywhere you install it.

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.

Install old system image with Android Tools R21

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.

android target api not visible

i have installed android sdk.
i have also downloaded and installed the adt plugin in my eclipse ide.
now when i go to preferences to set the path for android sdk, when i set the path and then press apply-- automatically the target api should be listed below. But they are not being listed below for some reason.
what could be the problem?
thank you in advance
Within eclipse, go to Window > Android SDK and AVD Manager then choose Installed Packages from the left hand side. Do you see things like SDK Platform Android 2.3, API 9, revision 1 listed? If not then you need to download them. Select Available Packages then expand Android Repository then select the SDK versions you want to download.

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