Doesn't appear Android 5 in Eclipse's TargetSdk - android

I have downloaded the last Android Api 21 using Sdk Manager, and I have deinstalled the L Preview.
This is the sdk's situation :
But when I go to open a new project in Eclipse, the last Android 5 doesn't appear in the options :
In the Eclipse's preferences this is the Android's settings :
Is it normal ? Why Android 5 doesn't appear ? :(

Yeah it's normal. It's just because with the latest update they didn't upgrade Eclipse (ADT). I think the Eclipse support is not the best now because Google is moving on Android Studio :(

Related

In eclipse I a getting the API level 20 .I want ot use lower versions of API

How to change API level. when selecting this API level it shows no CPU/ABi available and also I am not able to add text fields it throws an exception.
Image 1Image 2
In Eclipse go to manifest.xml
<uses-sdk android:minSdkVersion="int" />
In android studio: go to your app Gradle there you can find the minSdkVersion. Lower it to the version you needed.
android {
....
defaultConfig {
....
minSdkVersion 17
....
}
}
Quick Fix: Uncheck installed checkbox to see other downloads and try to refresh android sdk manager, restart it or restart the computer. API 19 worked fine for me before I moved to android studio.
I'm not sure if API 20 is supported in eclipse, I recommend Android Studio for android development. Anyway, if you have an old PC that does not meet android studio minimum requirement, download IntelliJ IDEA https://www.jetbrains.com/idea/, it's a bit lighter and free and require 1 GB of RAM (But 1 GB is very bad, you need at least 2 GB without running android emulator). However, if you still want to work with eclipse I think you need API 19 you have to download it manually from the web and move it to android SDK location. Or you can install android studio to download SDK without using it.
Newer APIs are way better, they have more libraries that supports both old and new android versions. It's really worth upgrading to Android Studio.
For the CPU/ABi error check this post Android 4.3 Virtual Device CPU/ABI - No system images installed (eclipse)

Target api 21 is not listed in eclipse(While creating new project) even after updating my SDK to Lollipop

I have updated my SDK to Android Lollipop. I am able to See Target API 21 in Android SDK Manager when I access it from the directory where it is saved however when I create a new project in Eclipse it does not show Target API 21. Neither it Runs Emulator Created for API 21. I am done with restating my eclipse many times. Any one having any idea what could be wrong??
Thanks
I was facing the same problem, my android sdk manager is not showing new API,
1. Solution Just click on the following icon Android SDK Manager. It will show all the packages.
2. Open SDK Manager click tools in the top menu -> options and turn on "forse h ttps://...sources"

Building Android game in Unity 4.3.4 does not succeed

The build does not work.
During build I have messages:
Android SDK is outdated. SDK Platform tool version 0<16. Android SDK
is missing required platform api. Minimuim platform required is
Android 4.0 (API level 14).
This happens though:
1) I have in Android SDK manager the following installed (as seen in Android Studio):
Tools - all 12 items,
Android L (API 20, L preview) - all 7 itmes,
Android 4.4W (API 20) - all 5 items.
In particular, I have everything with API 20 installed
2) I have a correct path to main folder of Android SDK location in Unity Preferneces -> External Tools
I'll appreciate any help or hints.
Press continue the next time you get it. Keep pressing it everytime that update message pops up. It's just Unity asking you to have the latest SDK package to build with the latest improvements in Android SDK, which is not necessarily mandatory. If Android updates would come 3-4 times a week,you can't be bothered with updating so often.
And when you finally decide it's time to update, or feel like it just some time later,
open up the SDK Manager (inside android-sdk folder), and update (don't check the sources, docs, and android emulator images; you don't need them. Just check core packages and necessary google APIs.).

got error on android with eclipse: no target available

i install all the programs that need for develop on android
i start project like this:
File - new - project - android - android project > next
but in build target i see: no target available
what can be the problem ?
thanks in advance
You probably didn't set the path to the Android SDK in eclipse yet.
Go to Window -> Preferences -> Android and enter the path to your SDK into the SDK Location textfield at the top.
You have no Android platforms installed
In this case go to
Window -> SDK and AVD Manager -> Available Packages -> Android Repository and select a few targets¹, then click install. You can check for already installed platforms on the left under Installed packages if you are not sure.
The targets you are looking for are the SDK Platform Android X.X , API Y, rev Z ones.
If you don't want to download much, I'd say get Android 2.3.3., API 10 and Android 3.2, API 13. 2.3.3. is the most recent phone version of Android, and 3.2 is the newest tablet version.
¹ If you got a decent internet connection I'd recommend to get everything, you will need a few target platforms sooner or later anyway.
You need to select a build target in that dialog, e.g. Google APIs 2.2. That dialog is a little confusing, because it has a scroll pane in it, which is easy to overlook. You need to scroll down to get to some options.

Problem with eclipse Android SDK update

I am newbie to android. I working on my HELLO WORLD project. Initially I had AVD which looks like
Then something went wrong so I deleted all Android stuff from Eclipse (except my project) then I added all things again to my Eclipse.
So now I have:
1) Android SDK tools , revison 12
2) Android SDK platform-tools,revision 6
3) SDK platform Android 3.2,API 13,revision 1
Now I got a new emulator which looks like a tablet emulator .
So my questions are
1) How can I get the previous emulator as Image 1 ( which looks like phone not tablet) ?
2) I am also getting error "Unable to resolve target Android-8". Why it is ? and how to get rid of it ?
Answers to your questions:
Ad 1) You need to install SDK platform for Android 1.x/2.x, Android 3.0 is dedicated to tablets so there will be no phone-like emulator,
Ad 2) Android-8 means Android API Level 8, this means Android SDK version 2.2.x. so you will need to install SDK for Android 2.2.x from the Android SDK Manager
More about Android API levels can be found here: http://developer.android.com/guide/appendix/api-levels.html
1.when creating avd you are selecting target.If you select target 2.1,2.2..You will see the first emulator and for the later one your are selecting taget 3.2 . So it looks like this.
2.You are importing/creating project from previous one whose target was api level 8.Now you are trying to run it in avd which is some other.So in manifest file set minSDK as your new avd
With the SDK manager, you have to create a new virtual device. For this virtual device you will set the Android version of your device (must be < 3 to have the "old" look).
It is simple
1) Create AVD
2) While creating if u want to develop for smart phone, select the target version <= 2.3 (Which will get you the keyboard)
3) While creating if u want to develop for tablet, select the target version as >= 3.0, which will get you the big pad emulator with no keypad.
Note: From Icecream sandwidch onwards the version is for both Smart phones and Tablets.
Regards,
SSuman185
You need to create new AVD with the target that you need,or edit the settings of the AVD that you are using now.
In Eclipse go to menu : Window -> Android SDK and AVD Manager and you will see a list of your AVD(if you have more than one).And after that you can select the one that you have,and press edit with changing the target to 1.5 and upper version or create a new one pressing button New.

Categories

Resources