The type java.lang.Object cannot be resolved. It is indirectly referenced
from required .class files
Solution:
Make sure that you have a valid JRE or JDK defined in the Java Build
Path of your project. Right-click on your project, select Properties...
and then Java Build Path.
Mount SD Card in Emulator
- Goto the Android Virtual device manager
- click New for create new Vitual device
- Add Name and choose your package
- Under hardware you just click New Button and then pop new Window
- After select SdCard support in drop down list near Property
- finally you have gotten emulator with SDCard support
INSTALL_FAILED_MISSING_SHARED_LIBRARY
error with Google Maps for Android:
- Install Google map APIs. This can be done in Eclispe
Windows/Android SDK and AVD Manager -> Available Packages -> Third
Party Add-ons -> Google Inc. -> Google APIs by Google Inc.,
Android API X
- From command line create new AVD. This can be done by listing
targets (android list targets), then android create avd -n
new_avd_api_233 -t "Google Inc.:Google APIs:X"
- Then create AVD (Android Virtual Device) in Eclipse Windows/Android
SDK and AVD Manager -> New... -> (Name: new_avd_X, Target: Google
APIs (Google Inc.) - API Level X)
IMPORTANT : You must create your AVD with Target as Google APIs (Google Inc.) otherwise it will again failed.
- Create Android Project in Eclipse File/New/Android Project and
select Google APIs Build Target.
- add <uses-library android:name="com.google.android.maps" />
between <application> </application> tags.
- Run Project as Android Application.
Unable to create Android Virtual Device
CPU/ABI says "No system images installed for this target". You need to install a system images.
In the Android SDK Manager check that you have installed "ARM EABI
v7a System Image" (for each Android version from 4.0 and on you have to
install a system image to be able to run a virtual device)
In your case only ARM system image exsits (Android 4.2). If you were
running an older version, Intel has provided System Images (Intel x86
ATOM). You can check on the internet to see the comparison in
performance between both.
In my case (see image below) I haven't installed a System Image for
Android 4.2, whereas I have installed ARM and Intel System Images for
4.1.2
As long as I don't install the 4.2 System Image I would have the same problem as you.
UPDATE : This recent article Speeding Up the Android Emaulator on Intel Architectures explains how to use/install correctly the intel system images to speed up the emulator.
EDIT/FOLLOW UP
What I show in the picture is for Android 4.2, as it was the original question, but is true for every versions of Android.
Of course (as @RedPlanet said), if you are developing for MIPS CPU devices you have to install the "MIPS System Image".
Finally, as @SeanJA said, you have to restart eclipse to see the new installed images. But for me, I always restart a
software which I updated to be sure it takes into account all the modifications, and I assume it is a good practice to do so.
http://stackoverflow.com/questions/13488419/unable-to-create-android-virtual-device
Multi languages string
Once you’ve decided on the languages you will support, create the resource subdirectories and string resource files. For example:MyProject/ res/
values/ strings.xml
values-es/ strings.xml
values-fr/ strings.xml
0 comments:
Post a Comment