Android Studio and Ryzen CPU? - android

I know it could be marked as duplicate. But none of the threads helped me, so I decided to make my own.
I'm a Java back-end developer and I've decided to learn some Android stuff.
I worked on Android Studio several years ago having i5-4570 processor. Then I gave up. Now I see Android Studio is really really interesting, so I have downloaded it.
Now I have Ryzen 5 1600 processor. It's really great... but...
None of the Android emulators work for me.
What have I tried?
Android Studio built-in emulator. (Doesn't support AMD-V)
Microsoft Visual Studio Emulator (Crashes Windows 10 and bootloops motherboard till a hard-reset...)
Genymotion (personal use) emulator (Throws a BSOD with error SYSTEM_SERVICE_EXCEPTION)
I don't have any idea what to do now, I don't want to use USB debugging solution because it's... weird and probably slow, because my phone is really old.
Any suggestions? I'm really starting to give up with android development by now.

Use Bluestack 3 or N (Beta). Works with AMD V hypervisor. Make sure your BIOS had enabled the SVM virtualisation settings. Start Android Studios after the Bluestack program is runnning. The android studios should detect the emulator and display the console messages when you finally start Android Studios. Works great on my AMD Ryzen 1600 now.

The processor you've mentioned is a new one. Maybe there aren't any emulators which can run with your processor. Since you haven't included Bluestacks, you may want to try it once.
Also Using a real Android phone is actually faster than using an emulator because while running an emulator the CPU is shared between Android Studio and the emulator which makes build process slower.
And if you feel weird because of the phone which is wired with a cable, you can use wireless debugging. Just search for it in Google or the play store.

Genymotion should work.
VirtualBox (the software behind Genymotion) still has some conflict problems when Hyper-V is enabled in Windows. Try to open the Genymotion emulator image in VirtualBox and under its Settings -> System -> Acceleration, try changing the Paravirtualization Interface and see if that helps.
If that doesn't work, Disable Hyper-V under Programs and Features -> Turn Windows features on or off -> Hyper-V and try it again.

Please try new AndroidStudio 3.1.3 with windows 10
https://www.youtube.com/watch?v=547DXRq8zAo

currently using Ryzen 1600 with ubuntu 17.10 on b350 motherboard
works like charm!!!
Also tested on Windows; butter smooth performance with the new drivers by Google
All Ryzen CPUs are compatible now for Linux as well as windows.

I asked Gennymotion n they said it should.
u need to enable amd-v in bios?

Related

Android Studio Emulator Disconnecting

I'm running Android Studio 4.1.1 on Windows 10 Pro with Hyper-V disabled.
I just upgraded to Emulator 30.5.4 and HAMX 7.6.5. Now when I try to
run the Emulator it disconnects on start up. Has anyone else run into something
similar? Thanks!
Try my documentation I wrote to setup your Emulator properly for an AMD CPU (Seems you have one).
For Intel you need to Uncheck the Use Host GPU checkbox - in the emulator settings. And also disable your Hyper-V in Windows Feature Settings
PS: If you use HP SureClick - remove it.
I keep that post updated, like all my posts, to ensure a complete solution. :)

"CPU does not support SVM" shown in Android-Studio on Windows, but not on Linux

I recently set up Android Studio on my computer (Lenovo E535, AMD Processor) on both Windows 7 and Arch Linux.
I got the emulator to run quite fast in Arch Linux and on Linux, I don't get the warning "Your CPU does not support required features (VT-x or SVM)".
Windows still shows me the warning. Virtulization is definitely enabled in the BIOS and it is definitely possible on my machine. Does Windows block SVM or does it not find it? Is it my Android Studio installation?
Here's what I found out for the next person who comes across this error:
Android Studio emulator won't run on Windows with an AMD processor. The error message is kind of misleading, as it suggests the problem is with the CPU. But it is within the troubleshoot message: "Windows/OSX computer with an Intel processor".
Solutions could be installing Linux and running Android Studio on that (which might come with its own issues), using a physical device for testing or using the slow ARM images.
To add to #MelanieB.'s answer you can also alternatively download an external emulator and use that for testing.
For example this one: https://www.visualstudio.com/vs/msft-android-emulator/

What are the system requirements of ADT?

Please let me know the recommend requirement to run the eclipse and Android emulator simantaniously?
I've a laptop powered by Intel i3 processor 1.7 GHz clock speed, 4 GB RAM and windows 10, Bitdefender antivirus installed but I'm not able to work on these tools smoothly. But on desktop powered by 2.8GHz dual core 3GB ram it works smoothly.
The Android emulator is only showing Android logo at very slowly and it doesn't starts up for about 10 minutes on idle.
Please list down all the recommended requirement which are required to run eclipse and Android emulator simantaniously and smoothly on laptop.
I suggest switching to Android Studio. Support for ADT has ended. Moreover, make sure that you have updated Android SDK. There were improvements in emulators and system images in the last years, which made them faster. You can also switch to Linux (e.g. Ubuntu) because then you can use hardware acceleration for emulators. I'm not sure if it's working on MS Windows. If this won't help, you can try Genymotion.
Do you use Intel HAXM https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager and x86 image in AVD to improve the performance?
In any case, imho to run smootly AVD on a notebook you should have an i7 ULV 2c/4t (i7 4500U or better) and 8gb of RAM.
For development purpose do not use eclipse now, use Android Studio because Google has stopped there support to eclipse. In android studio you can use Genymotion it is faster then eclipse's android emulator.
And about your question the ADT emulator is very slow you have to wait a log time to its get started.Your laptop's configuration is enough. you can use Bluestack http://www.bluestacks.com/ or simply connect your android device via usb and run it on directoly using ADB.

How should I do to have a fast emulator?

Sorry my bad English.
I installed Android Studio 2.0, and I have problems with the emulator.
When I launch the emulator that I used with Android Studio 1.5.1 appears the windows [A], the emulator is slow
as before but the app works; when in fact I launch a NEW emulator appears to me the window [B], and then appears
no emulator.
WHAT IS HAXM?
How should I do to have a fast emulator?
Regards.
Genymotion makes a pretty good emulator in my opinion. It's way faster than the android studio emulator. Give it a try!
Well don't worry about it. first of all HAXM is a software which makes hardware based virtualization. in simple words it uses your hardware resources to make a virtual device like android device you are talking about.
if you don't have a HAXM software download it and install it and then check if virtualization is enabled or supported in your BIOS settings. press esc or delete whatever the key is to go into bios settings of your computer while computer first starts up. very similar like below.
go to Advanced Bios Features
then look for virtualization if its disabled then enable it otherwise its good to go.
so if you are done with HAXM lets come back to the android studio and start android device manager or AVD and follow the tutorial from android developers page its already answered here. And android emulators are fast now from android studio 2.0 don't worry about it otherwise you can download Genymotion or bluestack
happy coding.

Android Studio: Hardware Acceleration

This is driving me absolutely crazy and I can't find any help. I'm fairly novice when it comes to emulators, and even more so when it comes to Android Studio. Here's my problem: I installed Android Studio. Downloaded the SDK updates, including the HAXM one, and set up my own AVD. Upon trying to start up my AVD, or even the starter AVD that was already there, I get an error stating that "emulator: ERROR: x86 emulation currently requires hardware acceleration!"
I've done some googling and tried to finish the install of HAXM using the install file in the Android/SDK folder. I was promptly told that the installation failed and that my CPU didn't allow for Intel Hardware Acceleration, or something like that. I read somewhere that the only way I can use Hardware Acceleration on AMD is if I were on Linux, with which I have no experience with. So I tried giving up. Now I can't figure out how to disable Hardware Acceleration entirely in Android Studio. I haven't even begun learning how to write in android because I can't get an AVD up and running.
Does anyone have any tips for a complete Android noob? I thought this would be something fun to try since I was at once point fairly good with C++ and I have always been a huge fan of android. However, I've avoided doing anything GUI related until now, and I'm not finding it very fun at the moment.
I'm running an AMD system with 8GB of ram. More specifically, I'm using an AMD FX-4130 Quad-Core Processor on a GIGABYTE GA-970A-DS3 Motherboard.
Unfortunately AMD's virtualization technology AMD-V is not compatible with Intel HAXM. Your only choices are to either get familiar with Linux or use a ARM-based AVD, which doesn't require virtualization.
You can find instructions for Linux on Android Developers' document on Using the Emulator.
You can use Genymotion instead of default one. Its faster than the default one. And this emulator is compatible with both Intel and AMD. Genymotion just uses Virtualbox to run Android in VM.
Here's a link to Genymotion .
Genymotion , Genymotion user guide
it may help you.
Take an android phone with its USB cord then follow these steps:
1. plug in phone to computer.
2. on the phone goto: settings>about device scroll to find build number
3. press build number 7x (this enables developer mode)
4. go back to settings press developers options select usb debugging, include bug reports, verify apps via usb, and GPU force rendering.
5. Check for device connection on the computer
6. add in build.gradle under "buildTypes{" write this
debug { debuggable true }
then when you run your project you should be able to see your phone in the avd selection then select it. Your phone will awaken automatically with your application running except it will be a little semi-efficient boot process.
Also do not forget to remove the debug code from your gradle file when you app is finished.

Categories

Resources