Google maps does not run on emulator and asks for Google play services update - android-studio

I use:
Android studio 1.5
Java JDK 1.7
windows 7
Intel HAXM driver
I created a default google map activity with studio and I tried to run with but I get a message to upgrade my google servies.
As I read to documentation of android studio I have to set
compile 'com.google.android.gms:play-services:8.3.0'
on gradle in section dependencies. This was set by default.
I don't think that the problem is on my code but in emulator's configuration.
I strongly believe that the problem start from my android sdk packages but it is not possible to make any mistake. I test the same project in Linux OS that I have install android Dev environment and there is no problem at all. Google maps works.
I installed next packages
From tools:
Android SDK Tools
Android SDK platform-tools
Android SDK Build-tools
From Android 6.0(API 23)
Everything except ARM, Wear and TV packages.
From Extra:
Android Support Repository
Android Support Library
Google Play services
Google Repository
Google USB Driver
Intel x86 Emulator Accelerator(HAXM installer)
Next I create AVD from android studio:
I choose a device definition one from default
Then system image API level 23 with ABI x86 and target Android 6.0 (with Google APIs)
but automatically selects android 6.0 without Google APIs

Your problem may well be the same as mine, see AVD Error - Update Google Play Services. Sorry no solutions but perhaps you are correct that the fault lies with the current packages

Related

Android Emulator Directory is Missing

I have recently come up with coding in dart and using flutter ...
after longtime spending for setting up SDK and stuffs for dart and flutter the only thing I need is an android studio set up and running SDK to it.
I'm actually running on Kali Linux and when I open an android studio I give it the directory file of the Android SDK but it says the folder is empty and there is no SDK (Sth like that ...). But I have downloaded the SDK recently... By the way when i click on next it warns me that the android emulator directory is missing!
Do the emulator or SDK needs a kind of root access !?
is there any way to connect the android SDK to vscode instead of an android studio?
Do android emulator only work on Ubuntu and no response for Debian based ?!
You don't need to download the SDK separately android studio will automatically install it, and you can even choose with version of the SDK you want.
If you haven't gotten that option when installing. Reinstall it form the website!
Not some stupid PPA or app market https://developer.android.com/studio

Problem running the Android Studio emulator on AMD CPU

Recently I decided to learn android dev with Kotlin, I installed JDK, the latest Android Studio release and other stuff but my CPU is AMD so I cannot install intel's HAXM which is required to launch the emulator . I want to know if an equivalent for pc with AMD exist
For your problem there are several ways to fix the issue.
Android Studio with Android Emulator Hypervisor Driver for AMD Processors Tools(Recommended)
Here's the full document
Go to Android SDK -> SDK Tools -> Check Android Emulator Hypervisor Driver for AMD Processors also make sure if they're installed they're updated, since this solution got a problem with using NOX player at same time, and causing Blue Screen of Death
Then go to App & Features -> Turn windows features on or off -> make sure Hyper-V and Windows Hypervisor Platform are disabled. All Windows features enabling Hyper-V either explicitly or silently must be turned off.
Other solution is to use Nox or Bluestack emulator. i prefer nox since idk why but bluestack using so many resource, and also nox multi-instance is also working very well for using several emulators and it's got 3 version of android (4, 5, 7).
Common issues while using nox when trying to develop flutter app or etc is sometime emulator won't appear in your emulator list in android studio which the solution is that you should copy your adb nox file to your android sdk folder. or address the PATH VARIABLES to use nox adb.
Good Luck.

Download and offline install all android studio components

After I install the android studio which has 900+mb file size, it still ask for additional downloads of components like Android SDK, and Emulator etc. Im just renting in cafe's and download all I need and install in my pc coz I dont have internet in my house.
Is it possible to download these components manually and install manually, so that the android studio will recognize the components and stop askin for additional downloads?
Everytime I open it asks to download below SDK component (Total Downloaf Size : 1.13 GB)
Android Emulator,
Android SDK Build-Tools 28.0.3,
Android SDK Platform 28,
Android SDK. Platform-Tools,
Android SDK Tools,
Android Support Repository,
Google Repository,
SDK Patch Applier v4,
Sources for Android 28
You can download / install those dependencies separately, but you need to find the download link one by one which is quite tedious. Probably delegating Android Studio / SDK Manager to do this for you is the best option.

Android Studio on Ubuntu 14

I am unable to install android studio on ubuntu 14.
The archive provided here https://developer.android.com/sdk/index.html#Other does not have the entire setup. The readme file says -
The Android SDK archive initially contains only the basic SDK tools. It does
not contain an Android platform or any third-party libraries. In fact, it
doesn't even have all the tools you need to develop an application.
Tried with the procedure described here, but the ppa is not available https://launchpad.net/~paolorotolo/+archive/ubuntu/android-studio.
Android Studio can be found here.
The link you posted points to the Android SDK which is required for Android programming - when you install the Android Studio it'll ask you to provide the Android SDK too.

How to work with android studio along side with Unity 3D

I 'm just getting started with Unity 3D and I 'm going through android games development learning and I wonder how to setup Unity to work with android studio ?
For the majority of your tasks, you will not be working in Android Studio. You will be working directly in Unity. The only reason you would need to work in Android Studio would be to create native plug-ins for additional functionality that is not provided in the Unity Engine.
A detailed description of the requirements to build for Android are available in the Unity3D documentation. An abbreviated description:
When you are ready to test on your device, you will build for Android: File>Build Settings, and select Android from the list
You will need to have the Android SDK installed, and have at least one API Level installed using the Android SDK Manager (minimum).
In Edit>Project Settings>Player Settings, open Other Settings. Choose the Minimum API Level for your game. This API level must be installed using the Android SDK Manager
Finally, When you've finished building, you will have a .APK file.
You can copy to your Android device, and install with a file manager. -OR-
You can install it on an Android Emulator.
I hope this helps in some way!

Resources