Google Play Services and ARM Translation on Genymotion 2.3.0 - android

I have tried all the possible available online solutions to install Google Play services and ARM translation v1.1 on my Genymotion 2.3.0 version with Android Studio but I am not able to flash the downloaded zip. I have also tried multiple emulators 4.2.2 and 4.4.4 Android release version Genymotion devices. I tried the instructions mentioned at the following link :
http://forum.xda-developers.com/showthread.php?t=2528952%5d
Specifically I am stuck at the point It should say "File transfer in progress", once it asks you to flash it click "OK". Since the emulator never asks me to flash the ARM translation file but simply copies it to the /sdcard/download.
I am basically trying to start a login activity with Google Plus. I got the sample code from here. I also tried using the default login activity that is provided but Android Studio but it does not seem to work.
FYI I have a MacBook Pro and recently upgraded my OS to OS X Yosemite.

I managed to solve this myself. This is an issue with Mac only. Following are the errors and there solution :
Error 1. Files copied to /sdcard/downloads
Solution - uncheck the Safri->preferences->general->open "safe" files after downloading.
Why : Safari unzips the downloaded file which renders it useless to be flashed onto Genymotion.
Error 2: Failed to Deploy file
Solution - restart your Macbook (not your Genymotion). This seems to be an issue when you put the macbook to sleep with Genymotion Emulator in ON state.
Why : There seems to be some issue with Genymotion and Android Studio connection after Macbook mwake-up from Sleep state.

Related

android studio times out installing the app

I have a question about running an app through the emulator on android studio.
My emulator device is able to turn on, but when running the app, install never completes so the app times out. I have tried invalidating cache and restarting, and I have installed the sdk platforms that are the same as the emulators and project, but these changes did not work. My computer cannot install emulator hypervisor driver for AMD processors or intel x86 Emulator accelerator, but I don't think it is necessary for the app to run since my emulator can turn on, right? also, any app has never successfully run on android studio.
The is no code other than the hello world that comes up automatically. This is an empty project with a minimum sdk of api: android 4.1. The device I am using is a pixel 2 with an api of 22. (size on disk 3.5 GB) for tools, I have android SDK build-tools 33, android emulator (31.3.10), and android sdk platform- tools (33.0.3) installed.
I have tried every forum that has the same issue as me but if you think there is one that can help me, please share it thanks.
Android Emulators aren't always the best so expect random failures. This is what I would try:
Make sure the app compiles properly (make sure you see BUILD SUCCESSFUL in your bottom "Build" Tab in Android Studio)
Make sure you have updated Android Studio and Android Emulator, Android Build Tools, SDKs etc.
Create and use a device with a higher API version. Ideally one with Play Store.
Depending on your development machine you might want to try a different architecture (ABI). Try x86 or x86_64 instead of what you've already tried.
In rare cases your existing emulator images get corrupted. Uninstall them in your SDK manager (Show Package Details) and install them again.
If possible try running the app on a real device (follow online instructions to enable USB debugging etc.) to verify the emulator is the problem.

how to enable emulator in android studio?

I've been learning Android studio and android app development for a while now and I've been installing emulator .I recently installed the Nexus 5S API 24 but that showed some emulator errors
enter image description here
And then I thought the problem is with the API and so downloaded an emulator with lower API i.e; NEXUS 4 API 18 and that is also not running showing the same error. I thought the problem is with android Studio and hence I uninstalled the whole Android
Studio and then downloaded it again.But again the same errors show up.
I tried connecting my phone as an emulator instead of downloading an emulator.
But then, something showed up like in the picture below
enter image description here
Mine is a Gionee P7 phone .
Any help on this issue would be helpful .
Open the SDK Tools (Tools> SDK Manager> SDK Tools) to check if you have installed the Intel X86 Accelerator, if not, check the box and apply, then restart your AS, it should work.
Still recommend you to use real device to run your application, since the emulator really cost a lot of memory resources.

Xamarin Android Player Freezing

I've setup the latest Xamarin Android Player (XAP) on my AMD64 server running Windows Server 2012
Hyper V has been uninstalled.
Before doing so I uninstalled Virtual Box and let XAP install its version.
When I start XAP with device Nexus 7 Lollipop it boots to the Android logo and goes no further.
What is wrong?
You need to post errors and logs.
VirtualBox should be installed I believe for the Android Xamarin emulator to work.
However, you could try reinstalling the Android player. Make sure virtualization is enabled in bios.
If worse comes to worse, you can install the Android AVD manager and use the normal Android emulator which also works on Xamarin.
The Xamarin Android Player is still in preview, any issues with can be addressed with bug report at https://bugzilla.xamarin.com/newbug
Please include the logs when you file a bug, you can generate logs by Right-click bottom bar > Generate Bug Report
In the meantime, I would recommend you to use Visual Studio Android emulators
In addition to what Prashant suggests, you can also try a different simulator image. Some of the XAP device images seem to be unable to boot properly on some machines. I've not seen any issues under OSX version of XAP, but the Windows version seems to be affected on some systems.

Visual Studio Emulator for Android - Install Gapps (Google Play Services)

I'm using the new VS Android Emulator with Android Studio:
https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx
It doesn't have Google Play Services installed... so I'm following this guide to install:
https://university.xamarin.com/resources/how-to-install-google-play-on-android-emulator
I've downloaded the proper Gapps file (in my case):
http://www.devfiles.co/download/7m2VdVjQ/gapps-kk-20140105-signed.zip
Now I've dragged and dropped the ZIP file onto the emulator... and it's just stalled at "copying file"... Is there anything else I need to be doing here in order to get Gapps installed? How long does this "install" usually take?
I was trying it out yesterday myself and had the same problem. Apparently, non of the drag and drop functionality worked. So this, is what I did to resolve the issue:
Use the Additional Tools (small >> icon) for the emulator and go to the SD Card tab.
Select a folder on your computer to sync with the virtual SD card.
Pull from SD card, which will create a folder structure on the selected folder.
Now copy the Gapps fill to the 'Download' folder.
Push to SD card. This will take a little while, and copy the zip file to your emulator.
Run a commmand prompt, and go to sdk\platform-tools in your Android SDK location and run adb devices.
If you see the your emulator in the list, then skip to step 9.
If you do not see emulator, run the following:
adb connect <emulator ip>:5555
You can find the emulator ip, from within the emulator, go to Settings -> About Phone -> Status and IP section.
Next run, adb shell. This will give you a prompt to the android emulator.
Confirm the gapps file is there: ls /sdcard/Download
Now run, install_zip.sh /sdcard/Download/<flashablezip>.zip
This should begin the flashing process.
Hope this helps in resolving the issue.
Now you can just drag&drop proper Gapps file to working Emulator and then you should see something like this:
Drag and drop doesn't work if you start the emulator from Visual Studio when you are running Visual Studio as an administrator. To be able to drag and drop run the emulator from the start menu (not as administrator) not from Visual Studio.
It seems that the emulator hangs trying to install files if it cannot find adb.exe.
Ensure you have the Android SDK installed
If you run regedit.exe and look at the HKEY_LOCAL_MACHINE\Software\Wow6432Node\Android SDK Tools reg key, there is a Path string value that points to a location on disk. Double check to make sure that there is a copy of adb.exe located in the platform-tools directory under that path.
Hope this helps.
Found a solution on the web that works. The article suggests it only works for Android 5.1, I haven't tried Marshmallow.
http://www.rajapet.com/2016/03/adding-google-play-services-to-visual-studio-android-emulator.html
Start "Visual studio emulator for android" from the start menu
Create a new emulator for Lollipop, 5.1.1 (API Level 22), start it up
As VS emu runs under x86, we need the "ARM Translator", found on this page:
http://www.techbae.com/download-install-arm-translation-v1-1-zip-genymotion/
([TechBae.com]Genymotion-ARM-Translation_v1.1.zip)
Drag the file to the emulator window, close and restart the emulator if it doesn't automatically.
Install gapps from http://www.teamandroid.com/gapps/, eg gapps-lp-20150314.zip
Just download, drag to emulator, restart
Wait for app optimization to finish
Open Play Store, ignore any errors. If play store hangs, kill it and start again
Sign in
Expand the side menu
Go to settings
Scroll down to Build version, click/tap. You should get a message that a new version of the play store will be installed
Wait for the XDE.exe process to stop downloading
Restart the emulator
Go back to play store, side menu, click Build version - Ensure it is up to date. If not, let it download
Install an app that uses play services, eg Maps to verify
I tried all the previous answers, including the accepted one about running the install_zip.sh shell script, but nothing worked right for me for VS emulators of Android Lollipop (5.1) and Marshmallow (6). The problem seems to be also that Gapps has now some native code, processor specific, and most Gapps packets available for download are compiled for ARM processors. I tried OpenGapps which does have processor specific packages, but their complex installation scripts didn't work for me in VS emulators.
I finally found a Gapps package prepared for ASUS Zenphone 2, which does have an Intel processor - specifically I downloaded the package recommended here, and that installed fine with just drag and drop on Visual Studio emulator for Android 5.1
Following the instructions above, I could NOT get Google Play Store to launch successfully on my Marshmallow 6.0.0 Tablet API-23 VM in VS Emulator for Android.
I've tried all the troubleshooting methods mentioned above to no avail.
What finally worked for me was installing (dragging & dropping) the PREVIOUS version of GAPPS (gapps-lp-20150314.zip) for Android 5.1 Lollipop API-22 in my Marshmallow 6.0.0 VM.
Worked like a charm!
http://www.teamandroid.com/gapps/
http://www.devfiles.co/download/fAgtiEoX/gapps-lp-20150314.zip
Tomasz Cielecki pointed out a solution that involves installing gapps twice.
First install the gapps downloaded from here, reboot the system and then install gapps again with a version downloadable from here.
At least this worked well for me.
You could just use an Android Emulator image (AVD), similar to a VM image, one that has a Google Play services installed. That would be easier than trying to install it in the emulator. Usually, you can see this Android Studio under Tools > Android > AVD Manager and create a Virtual Device and select from the images which has Google Play Services already.
Now Docker + Hyper-V + Android Emulator is possible without needing VS Android Emulator (in fact they seem to be a discontinued job).
Now the Google's emulators work well even with Hyper-V activated.
More info here about how to make it work here (spoiler: it is a simple tick in a checkbox) https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html

Samsung Tab: Remote Debugging

I'm working on a web project which is converting the application into a Android/iOS App using a mechanism similar to PhoneGap.
The issues is that, I unable to debug the Android App (HTML/CSS/Javascript) by following the instructions # https://developer.chrome.com/devtools/docs/remote-debugging
Somehow, I'm not able to discover the USB devices in chrome://inspect/#devices. (P.S: While installing the Samsung Driver from http://www.samsung.com/us/support/owners/product/SM-T800NZWAXAR# ) the driver installation failed for CDC_Driver and Samsung_Android)
Device using: Samsung Galaxy Tab S (SM-T800) Android version - 4.2.2
Please advice.
I managed to solve this one. I guess it's 11 months to late for you though #TheNerd.
What is not mentioned in the guide is that you need to download a Android SDK.
It can be downloaded from here: Android SDK
You should also make sure you have JDK on your computer. If you don't the SDK installer will notice and provide you with a link to download it from Oracle.
After installing the driver, the JDK and the SDK my computer was able to detect my device right away.

Categories

Resources