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.
Related
in Eclipse, I have installed the latest version Android 5.0.1(API 21) and created an AVD. However to test backward compatibility I need to create an AVD for older Android 4.0 (API 14), which is also installed in Eclipse. However, when go open Andriod AVD Manager and say create, in the Target pulldown menu, I do not see Android 4.0 (API 14) and therefore unable to create a AVD to support Android 4.0 (API 14). Can someone tell me how to do this please?
check whether Google API 14 in installed on your device.
Click Android SDK Manager, u can see SDK Manager, u can see Android 4.0(API 14) u can see Google APIs should be installed then only u can install the AVD otherwise u cannot create a AVD
If you want to create an AVD in Eclipse you need to do this:
Go to Window -> Android Virtual Device Manager
Then you need to give a name and select the platform that you want (Target option)
Then the button "Create AVD" activates.
The other options modify if u need
You can do following steps:
1. Open SDK Manager as this screen:
You must install SDK, Arm system image or Intel system image whose version as you need (mine is 21 and you is 14) for run emulator
2. Open AVD Manager and click "Create"
3. enter name, choose target and other properties. Then you have your emulator
Hope this help! And dont foget to mark this is answer if you archived your goal!
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 :(
I am new to android development, and I am trying to create an AVD for testing an app before pushing it to my phone (htc desire running android 2.3.5).
I am using the ADT bundle, and with SDK manager I have downloaded these:
4.2.2 (API 17)
4.1.2 (API 16)
2.3.3 (API 10)
2.2 (API 8)
But when trying to select target of the AVD, the only available options are API 17,16 and 8.
What is wrong?
Update:
I've already tried deleting and redownloading the API and it shows up in the android-sdk/platforms dir.
Restart eclipse after install packages i also have same problem and after restart eclipse i got all api levels in drop down list
I had the same problem because I had downloaded the sdk twice and my SDK manager kept updating first SDK while my IDE was working with the other one. SO check the preferences of your IDE and see if it points to the correct one. (in Eclipse go to windows> preferences> SDK location)
For Android 2.3.3, there will be three entries of relevance in the SDK Manager:
"SDK Platform", which for older API levels like 10 will contain the ARM emulator image
"Google APIs", which will contain an emulator image that has Google Maps in it
"Intel Atom x86 System Image", which will contain an emulator image that runs x86 opcodes instead of ARM opcodes (and, with the proper setup of your development machine, can run the emulator much faster)
If you install one or more of these, you should get API Level 10 appearing an an option for setting up an AVD.
If that does not work, you might consider editing your question and posting screenshots of your SDK Manager (specifically the 2.3.3 portion) and the AVD Manager (specifically your drop-down of available API levels).
Try updating the 2.3.3 API.
And you can also try to use BlueStacks if you wish to first test your app before trying it on your device.
Delete that api from SDK Manager and download it again.
I'm trying to build a project at minimum Android 2.2 (API 8) for my Android 3.1 device. However, "Android 2.2 (API 8)" was not one of the options on the list. It only presented 3 options: Android v2.1, v4.0, and v4.0.3. The first one was too low for my project while the next 2 were too high for my device.
I checked to make sure that I already installed Android 2.2 in the SDK Manager.
So, how do I make "Android 2.2 (API 8)" become an option for my project? I must be missing something very simple. Thank you for your help.
Double check your PATH to sdk, which SDK it's pointing to?
I would check your /android-sdk-xxxx/platforms folder. You should have in there a folder called /android-8
If this is not present, you may not have it actually installed. Try to re-install and restart the AVD.
Here is a copy to place in your /platforms folder if that still does not work.
http://www.sendspace.com/file/21r31h
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.