MapView in the Android 3.0 Honeycomb Preview AVD emulator? - android

When I push my app to a Honeycomb AVD I get this:
Package com.myapp requires unavailable shared library com.google.android.maps; failing!
Am I right in thinking this is because the Preview SDK only provides the AOSP SDK, and not the Google components?
Is there currently any way to test apps in the Honeycomb AVD that rely on MapView?

Yes, the preview SDK doesn't include the Google Add-On, and the emulator doesn't have the necessary library.
However, the final SDK is now released and you should be able to create an AVD (emulator image) that contains the Maps shared library by installing the Google Add-On for Android 3.0.

Related

“No system images installed for this target” Xamarin AVD Manager

Anytime I select a target for Google APIs it tells me there are no system images available. I have completely removed and reinstalled every available option in SDK manager. For the API Level I am trying to use, I have every available image installed. Also I have tried copying the images out of the default folder as suggested by another question's answer and restarting visual studio.
AVD Manager
SDK Manager
Solved the issue by selecting a standard api lvel target (non google apis) and then for CPU select one that included google apis. Was following this tutorial on Xamarin that told me to select the target with google apis, but apparently that does not work properly.
Google's Android SDK Installer (that Xamarin runs during the base install), does not install system images for each API due to their size (1+GB each).
Open the Android SDK Manager and select/install which versions you want, they are available by API-level.
Note: For HAXM acceleration to function you need the x86 / x86_64 based images, ARM versions will run, BUT very slowly...
Note: The Images whose names start with "Google APIs ...." have Google Apps pre-installed.

How to get android studio to offer nougat with google apis for emulator?

I have android studio 2.1.3. In the SDK manager, I have downloaded Nougat:
I want to create an emulator now that uses the google apis, but I don't have that as an option:
How do I get access to that? Otherwise I can't test my apps.
Thanks

AVD Google API's do not display available CPU/ABI

I have downloaded SDK tools and installed Google API's Intal x86 Atom image, however when I want to create my AVD it sais there is no system images installed for this target. BUT I have downloaded everything. I am using Ubuntu, on Windows machine same configuration works perfect, also for my colleagues same configuration works just fine.
If I select as target Android API 23, not Google API's it's okay, but I don't need Android API, since it's not working for me. I saw lots of reported defect, but none of them could help me.
Anyone has any idea that's going on there?
I had the same problem myself today and I found a bug report:
https://code.google.com/p/android/issues/detail?id=210223
To quote the solution:
There seems to be some underlining refactoring which means the configuration now required is:
Target = Android X.X - API Level XX
CPU/ABI = Google APIs Intel Atom (x86)
So, to create a new AVD with Google APIs support, just don't pick Google APIs as the Target. Pick generic Android with desired API level as the Target and then pick your desired Google APIs version in CPU/ABI. It works just fine, you will get Google Maps etc. on the AVD.
About that "but I don't need Android API, since it's not working for me" - I'm not sure what do you mean. You can't have Google APIs without using Android APIs, because Google APIs are running on Android device.

Android Studio Preview Issue, Important SDK Tools?

I'm totally new with android development. I installed android studio today. By default, I'm getting 15 options that can be installed in sdk manager, but my net is limited, so I cannot install all of these :( Can you please suggest the most important of these to install so that preview option should work? I need to target smartphones only: no TV or wearables.
Thank you so much!
You will probably need to download the same options for 2 different API levels: You should get API 21 (or whatever API level is your target API) and whatever API you set as the minimum SDK for your app. You make these designations when you first create your project in Android Studio, or can change them in build.gradle or AndroidManifest.xml.
You will probably want the SDK Tools, SDK Build-tools, SDK Platform, Sources for Android SDK, and the Intel x86 images from both API levels your app supports - minimum SDK and target SDK.
Android Google USB Driver for sure if you want to use a device for debugging and the Android Support Library.
And if you want to use an emulator you have to download one of the Intel x86 images (for phone).

Android build target, duplicates, which to choose?

When creating a new android project, the build target has two choices:
Android 2.2, Android Open Source Project
AND
Google API's, Google Inc.
Both show Platform as 2.2 and API level 8
Which to choose (and why)?
The AVD with Google API's contains google Api's like GoogleMaps.
For example:
If you application uses GoogleMaps, then you will have to use an AVD with Google API's.

Categories

Resources