Genymotion : Unable to create the virtual device - android-emulator

I'm trying to add a device on Genymotion Android Emulator, but after I select android device and press install I got this error:
Unable to create the virtual device
Server returned HTTP status code 403

Seems you are behind a proxy or have no right to download the android devices from genymotion. If you want to add a device in Genymotion, it downloads the necessary files.

Related

React native Android Project Not starting in emulator

i just created a react native project on windows, using expo. After Creating the project i ran npm start and then expo start the next logical thing to do is to press the a button which will launch, the project on the android virtual device, but instead it gave me this error Couldn't start project on Android: Error running adb: Error running app. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=exp://192.168.43.148:19000 flg=0x10000000 }
when i tried running it on my android phone with the expo android app it ran smoothly, i don't know what to do please help thanks
I had the same problem and I got it fixed as follows:
Go to SDK Manager in Android studio > SDK Tools and check whether there is any update for Android SDK Build-Tools. If there is any, please make sure you update it.
Close any Android virtual device currently running and then go to Android Studio Virtual Device Manager and wipe the data of your Android virtual device.
Make sure you have enough internal storage allocated for your Android virtual device to install apps.
Check whether Android Debug Bridge utility is installed in your device. If not please install it. To install in mac, I used the below command (Assuming that you have HomeBrew installed in your mac device):
brew install android-platform-tools
Start your Android virtual device ( This step should be done before running the expo development server)
In the Developer options menu of your Android virtual device, make sure USB debugging option is enabled.
Finally, try running the development server by expo start and press on the button to run on your Android emulator.

How to upgrade the chrome browser version Android 7.0 emulator in android studio

I have created a Virtual Device with the Android flavor I want (Android 7.0) but it has a version of Chrome that I'd like to update to a specific version. How would I go about doing that?
For me it was simple steps:
Open Android emulator from AVD (Mine was Google Pixel 2 - v9.0),
Ensure Android emulator has opened successfully by $ adb devices(It will give you the Android emulator device name, e.g: emulator-5554)
Now download the Google Chrome apk from apkmirror, Mine was Version: 76.0.3809.111 (380911115) x86
Now use this command to install the downloaded Google chrome apk to the opened Android emulator: $ adb install /path/to/downloaded/chrome/apk
NOTE: Make sure no other emulator or real Android device is connected, $ adb devices should return you the single connected device
Above command must return Success
Open Chrome browser on Android device and check the version, it must match with the downloaded chrome version.
Done.
Having run into this and bashed thru a few useful sites, it turns out this is rather easy BUT you have to make sure you get the right APK. With thanks to https://www.inflectra.com/support/knowledgebase/kb276.aspx
First start your emulator in writable mode. Put your virtual device name after -avd parameter.
Step 1:
In Terminal execute this command:
$ $ANDROID_HOME/emulator/emulator -avd Samsung_Galaxy_S7_API_24 -writable-system
Your android emulator should now be open.
Step 2:
Download the apk you want from https://www.apkmirror.com/apk/google-inc/chrome/
Mine was https://www.apkmirror.com/apk/google-inc/chrome/chrome-64-0-3282-123-release/#downloads
Step 3:
Once it downloads, drag and drop that .apk file onto your emulator.
Wait a few minutes and then open Chrome on that device. It should be the new version.
You can confirm that by going to https://www.whatsmyua.info/

Emulator device offline

I am trying to build android Oreo source code in ubuntu 14.04,it is built successfully but the emulator is not turning on.I tried by restarting the server and check for android devices,it shows that the device is offline and I am not able to turn it on.Suggest a way to solve this issue.Thanks in advance.
link followed-
https://source.android.com/devices

How to prevent launch Ionic app on emulator

I'm working on ionic App and I'm trying to run App on real Android device, But when I run ionic run android in terminal, I get the following error:
Running command: "C:\Program Files (x86)\nodejs\node.exe"
D:\wamp\www\pars-app\pars-app\hooks\after_prepare\010_add_platform_class.js
D:\wamp\www\pars-app\pars-app
add to body class: platform-android
ANDROID_HOME=D:\Sdk\android-sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_45
No target specified, deploying to emulator
ERROR running one or more of the platforms: No emulator images (avds)
found.
1. Download desired System Image by running: "D:\Sdk\android-sdk\tools\android.bat" sdk
2. Create an AVD by running: "D:\Sdk\android-sdk\tools\android.bat" avd HINT: For a faster emulator, use an Intel System Image and install
the HAXM device driver
You may not have the required environment or OS to run this project
How to prevent run app on windows emulator? I want to run app on real device that conected to my computer.
I am using windows 8 and Huawei with Android 4.2.2
::note
I have read these questions, But I didn't got the answer!
Why not work Ionic app testing on android real device?
Ionic run android does not run app on device
ionic run android - configurations not running app on device
As a complement to #OClyde answer, you could try :
adb kill-server
adb start-server
To have infos about these commands :
adb --help
Nb : Sometimes, for a reason i do not know, the connection between my phone and the computer break. Running this fixes it.
To make sure that your app is not installed to an emulator but to your device, take the following steps:
Open up your console and run adb devices. This should give you a list of all devices available (real devices as well as running emulators) to the Android Debug Bridge. If the adb command is not recognized check that you have installed the Android SDK correctly and that you've set all the necessary environment variables accordingly.
The adb devices command might give you output similar to this:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
This indicates that the ADB wasn't ready before, so in this case just try to un- and replug your device and run adb devices again to see if the device is listed afterwards.
If your device is still not showing, check that USB Debugging is enabled on your device. Therefore you first have to enable developer settings, which you can do by tapping the build number (Settings => About Phone) 7 times (no, that's not a joke ;) ). After that, you'll have the developer options in your settings menu. Open these and check "USB Debugging"
If still your device isn't recognized by the ADB, change the USB connection mode. You can either do this in the developer options as well or tap the notification shown when the phone is connected to your PC. Try MTP as well as PTP, on of those should do the job.
After these steps, it should be nearly impossible that the device is still not recognized by your PC. As soon as there is a phone available, Ionic will install the app on the phone automatically instead of launching an emulator.

the apk file working in emulator but not in android device

I run an application in Android emulator in my p.c. , it is working properly .
but,
when I connect my Android device with p.c. , then through eclipse , I run the application , eclipse prompt that whether you want to install your application in android emulator or Android device , I choose Android device ,, the device prompt a force to close error !!!!
even in my laptop the application were installed properly , but not working properly ...
what could be the reason ????
my current Android device version is 2.3.6
thanks...
It's hard to say what the issue is because what you described isn't specific. Have you ever been able to install any application on the device? Is it just this one application that doesn't install?
The first things I would check:
Do you have the correct Windows USB driver installed?
The Android developers website has a page dedicated to it ( http://developer.android.com/sdk/oem-usb.html ) but you should check the manufacturer's website for the most up-to-date software.
Do you have the developer settings enabled on the device?
Settings > Applications > Enable Unknown Sources
Settings > Applications > Development > Enable USB Debugging