Android Studio - Run and install the app with lower API - android

I usually use 3 emulator to test the apps (JB, KK and Lollipop). But now I am using my Surface Pro and I can't use a lot of emulator. Then I only use my real nexus 5 device but it is a problem because I am using code for v21 and v19, and I can't test v19.
Is it possible to install the app forcing the v19 in my Nexus 5 with Lollipop?

no.
the nexus 5 with Lollipop is a Nexus 5 with Lollipop (API level 21).
your choices are:
struggle with the emulator on a slower computer
buy another device for testing
buy/use a faster computer
flash the factory image of KitKat on the nexus 5 from here: https://developers.google.com/android/nexus/images (not great option in my opinion)

The only solution would be that when creating a new emulator, you can select x86 in the ABI column which would use Intel HAXM to run the emulator faster.

You can use GENY MOTION ,It is faster then your emulator and its free for personal use.
You can find it there https://www.genymotion.com

Related

Why Android Studio emulator is extremely slow?

I'm using Android Studio version 3.2 and I have 12GB ram and double graphic cards(NVIDIA and INTEL).
I already installed HAXM and also forces emulator.exe and qemu-system-x86_64.exe to work with NVIDIA.
But still the emulator is extremely slow
My Nexus 5X API 24 and 25 Emulators works well but Nexus 5X API 26 and above are very slow, I check memory and CPU costs in Android Profiler it shows much higher than others, even simulators have the same density.
I think currently we often choose latest Emulators (from API 26 - Android 8.0 and above) ONLY for testing code that relates to OS features changes, for stable and performance testing, we should choose Emulators equal or below API 25 - Android 7.1.
I reported this problem to Google, hope they will make some enhancements soon.
Try this:
Go to the emulator settings and try to select different values for OpenGL ES Renderer:
The Android Emulator is very slow. The main reason is because it is emulating the ARM CPU & GPU, unlike the iOS Simulator, which runs x86 code instead of the ARM code that runs on the actual hardware.
And one more, Why should you not go for Genymotion. I have used as as option for Android Emulator. It is better than Android Emulator.
If you really want to speed up the process, I would like to help you with this.
Follow these steps, ,may be your problem come to an end.
Use actual hardware devices
Don’t Run the Emulator in a Virtual
Machine
I use this configuration on MAC
Configuration Emulator
GPU Mode: Host
Ram: 1024
SDCard Size: 10M

Developing an Android App. But cannot run emulator nor real device (Windows 7)

I'm new to developing an Android App using Android Studio. I've been following this example app on their website: https://developer.android.com/training/basics/firstapp/running-app.html#RealDevice
The problem is, when I try to run using the emulator or my real device (Samsung S5) using the instructions on that link, I still couldn't find my device. I get an error when using the emulator that would take 10 minutes to load on my 2 GB RAM computer (only to fail).
emulator: WARNING: Crash service did not start
emulator: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
Cannot set up guest memory 'android_arm': Invalid argument (in red text)
Other considerations:
1. My processor is AMD and not Intel, so the Intel x86 Emulator Accelerator (HAXM installer) doesn't work for me.
2. I used the Nexus 5 emulator device with API level 21. I tried it with Nexus 6 emulator device with API level 23. No luck on both.
3. I've placed my Samsung S5 device on Debugging Mode but it never showed up on the "connected device" area when running the app.
I've searched for other questions relating to it. But my luck has run out. The fact that I got a slow computer adds to the bad luck.
You might be experiencing these problems due to allocation of excessive amount of RAM for the virtual device which wont be available for the device.
set it to something like 1024MB or 768MB and try again.

Running 3 Android Emulators -- failure

I am building/testing a group chat and events application, and need to be able to test on 3+ devices.
Using Android Virtual Device manager, I can successfully run two emulators, yet starting a third, simply displays the android naming and loading, never getting to the home screen.
I do have 16 GB ram, and never reach above 14 GB with all processes running...
What configuration do I have to change to allow for running 3 emulators?
Try HAXM accelerator. from SDK update window, download intel x86 accelerated device image (HAXM)
I recommend using the Gennymotion emulator, & set 1GB ram for each device. Be sure not to choose a fancy device like nexus 5.

multi-user feature of JellyBean in Emulator From Ubuntu

I know multi-user functionality is available in Android 4.2 JellyBean:
I have My Nexus 7 Emulator with Jellybean 4.2
I am using Ubuntu 11.10.
I have gone through here and here.
But I want to test this feature on my emulator and not on the actual device.
My Questions:
Is it possible to test multi-user feature on an emulator?
If yes, how it can be?
Yes. Create an AVD with device = Nexus 7. Start the AVD, and then follow the instructions given here.

HTC Nexus emulator

Is there an emulator for the Nexus ? i want to test some of my android apps on it.
The android 2.1 SDK has just been released:
http://developer.android.com/sdk/android-2.1.html
The emulator doesn't contain the Nexus One skin but it emulates all of the APIs so it should be good for testing.

Categories

Resources