Can anyone advise this rookie user how to set up a test environment to use with an Android Studio project?
I recently installed Android Studio on my Windows 7 laptop and put together my first simple app. When I tried to debug it, I was offered two pre-configured test environments. The first was "Nexus 5 API 21x86" but when I tried to use that one it told me I needed HAXM. After much research I worked out what I needed to do to install HAXM but the installation file gave me the following error message:
VT_Not_Support = This computer does not support Intel Virtualization Technology (VT-x). HAXM cannot be installed."
I therefore turned my attention to the second option "TestDevice". When I tried to run that, Android Studio reported:
emulator: ERROR: This AVD's configuration is missing a kernel file!!
emulator: ERROR: ANDROID_SDK_ROOT is undefined
I Googled the error and found the advice that I needed to install "ARM EABI v7a System Image" but when I ran the SDK manager it told me that this component was already installed.
Can anyone please tell me either how to overcome the ANDROID_SDK_ROOT undefined problem or advise how otherwise to set up an emulated test environment that works on my computer.
I am an experienced programmer but a complete novice when it comes to Android Studio, all the associated applications and Android devices in general.
Many thanks in advance for your patience.
Keith
writerman said:
... following error message:
VT_Not_Support = This computer does not support Intel Virtualization Technology (VT-x). HAXM cannot be installed."
Click to expand...
Click to collapse
Keith, have you tried enabling VT-x in your BIOS settings?
Thanks for the suggestion. I wasn't aware of this BIOS setting. I will give it a try but may not have a chance to try it out until the weekend
This should do the trick if you have compatible CPU.
Related
Looking for some assistance getting the NDK working properly on Windows 7 (64).
I followed all of the instructions to set up the NDK in windows but am running into an issue.
Per the instructions you need to install CYGWIN which i did and then go to the root NDK folder and run build/host-setup.sh.
Once I run this i get the following error;
ERROR: Could not find a valid GNU make executable.
Please ensure GNU Make 3.81 or later is installed.
Click to expand...
Click to collapse
I do have GNU make 3.81 installed for windows.
If i try to use cygwin to run a make APP=hello-jni as a test as it states i get the error;
bash: make: command not found
Click to expand...
Click to collapse
if i use windows command prompt i can run the make.exe fine.
I'm thinking the issue is because its trying to use a Linux based make since i would assume Cygwin cannot rune EXE files.
Could anyone assist me with this that has it set up and working properly in windows?
Any takers please?
Check 'Make' package in Cygwin setup.
Do yourself a favor and use a real operating system. Ditch that MSJUNK.
On top of that, I *strongly* suggest that NOBODY EVER use windoze for compiling ANYTHING. When you are building software for other people to use, you most *definitely* do NOT want to build software that has been compromised. Windoze is the world's number ONE compromised platform. It about as save as having your way with a 50 year old street corner hooker without protection.
Hi folks,
A few hours ago I download and installed Android Studio and the SDK. While trying to launch a virtual device from Android Studio, I got this error: (sorry, I can't post images, it's my first post here )
"emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!"
I googled around, and I checked:
0) My architecture supports VT-x (I have an i5 on an asrock h87 pro4)
1) Virtualization is turned on on my bios
2) HAXM Installer is installed in SDK Manager
Nonetheless, I still get an error when I try to install intelhaxm-android.exe (located in [sdk-folder]\extras\intel\Hardware_Accelerated_Execution_Manager).
I checked with Speccy, and it looks like my Virtualization capabilities are there, but still turned off...
Any idea?
Thanks!
Hello,
I'm new to android programming and I just tried to emulate my "hello world" application.
On top of the "your virtual devices" windows there is a message "/dev/kvm uis not found".
I already looked into this error on google :
- VT-x is on in my bios
- Haxm is installed (in the SDK manager it is marked as installed with version 6.0.3)
- I also enabled DEP in windows and in my bios
Why do I still get this error?
I'm trying this on a windows 7 system with administrator privileges.
Hopefully someone can help me...
edit : It seems that haxm is not installed correctly, if I perform this command "sc query intelhaxm" I get an error that the service is not installed.
if I try to install haxm manually I get the following error "failed to configure driver : unknown error : failed to open driver."
stevennoppe said:
Hello,
I'm new to android programming and I just tried to emulate my "hello world" application.
On top of the "your virtual devices" windows there is a message "/dev/kvm uis not found".
I already looked into this error on google :
- VT-x is on in my bios
- Haxm is installed (in the SDK manager it is marked as installed with version 6.0.3)
- I also enabled DEP in windows and in my bios
Why do I still get this error?
I'm trying this on a windows 7 system with administrator privileges.
Hopefully someone can help me...
edit : It seems that haxm is not installed correctly, if I perform this command "sc query intelhaxm" I get an error that the service is not installed.
if I try to install haxm manually I get the following error "failed to configure driver : unknown error : failed to open driver."
Click to expand...
Click to collapse
Uninstall kvm and install it manually through sdk standalone manager.
Sent from my One using XDA Premium 4 mobile app
where is KVM installer
fadival said:
Uninstall kvm and install it manually through sdk standalone manager.
Sent from my One using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Can you give me a little bit more explanation?
I can not find the KVM (un-)installer.
Also in the SDK manager I can't seem to find it.
btw, I thought KVM was haxm?
If you're getting the following error
Code:
emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: Unable to open HAXM device: ERROR_FILE_NOT_FOUND
go to intel's website and download HAXM
some people are reporting issues with the win10 anniversary update so YMMV.
ajpettit said:
If you're getting the following error
Code:
emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: Unable to open HAXM device: ERROR_FILE_NOT_FOUND
go to intel's website and download HAXM
some people are reporting issues with the win10 anniversary update so YMMV.
Click to expand...
Click to collapse
You don't need to go to intel's site. You can do this:
Go to RemixOSPlayer folder > remixemu > haxm-windows_v6_0_3 > run intelhaxm-android > select your desired RAM amount and complete the procedure.
Try launching RemixOSPlayer.exe again and it should work this time.
This didn't work for me on my miix 700.
and if the still presists, go to bios settings and enable "Virtualization Technology" from there! it will worK!
virtualization is enabled, but haxm says it isn't. any ideas?
intel i5-4460
16gb ram
win 8.1 64bit
wow, this Remix OS player plays smoothly on my dell 9350
My processor is AMD...I'm also getting this Intel error, I also get it when trying to boot Remix OS for PC. BOO!
Unfortunately, AMD doesn't HAXM, which Android Studio requires. Remix OS Player is based on Android Studio. Sorry to be the bearer of bad news... If there is news on this though, I'll update here. Thanks!
match_stick said:
My processor is AMD...I'm also getting this Intel error, I also get it when trying to boot Remix OS for PC. BOO!
Click to expand...
Click to collapse
ToXiC said:
and if the still presists, go to bios settings and enable "Virtualization Technology" from there! it will worK!
Click to expand...
Click to collapse
Confirmed - in BIOS settings (under "configuration" tab I believe) "Intel: VT" needs to be enabled. If it still doesn't work, try installing HAXM again by running remixemu\haxm-windows_v6_0_3\intelhaxm-android.exe.
Seems to be working for me now.
donwload from intel. os remix included file is v6_0_3\interhaxm-android.exe. but from intel was 6.0.4
I was able to 'install' the haxm.
Command Prompt(Admin) type bcdedit /set hypervisorlaunchtype off (Disable Hyper-V,Windows Phone Emulator will not work), then "Restart Your PC".
I guess you install Visual Studio, this is because Windows Phone SDK opens during installation caused by Hyper-V, Windows Phone Emulator SDK needs to be realized with Hyper-v virtualization.
Note: bcdedit /set hypervisorlaunchtype auto (Enable Hyper-V)
https://software.intel.com/en-us/an...-execution-manager-end-user-license-agreement
There was a few window 10's that the binaries where corrupt. You can check to see if yours is corrupt by just using rar.
I have a VirtualBox running, and for running Android Studio emulator I'm either getting ioctl(KVM_CREATE_VM) failed: Device or resource busy or (upon unloading KVM modules) KVM is required to run this AVD.
I don't want to swap VB with QEMU (at least not now), and for my current purposes I'm fine with unaccelerated emulation for x86 Android. So how do I disable acceleration?
One way I see is probably to download an ARM, so acceleration wouldn't be possible for x86 host, but it's an inelegant solution for different reasons.
Downgrade to Android Studio 1.4 (delete Android Studio 1.5 installation, download zip from http://tools.android.com/download/studio/builds/1-4-0, follow installation instructions).
Follow Stuart Axon's instructions above.
Gabor as far as I can tell is correct (and addresses the OP's question) - the option to use this acceleration by starting the emulator from within Android Studio 1.5 has been removed.
(Weirdly, I don't seem to be able access the acceleration when starting the emulator from the command line once Android Studio 1.5 has been installed - but maybe I'm wrong. Hopefully if I'm wrong someone who knows better will give an answer rather than just leaping at the chance to down vote. Glory to the downvote! Surely there should be badges for down voting: Gold 'downvoted 500 first questions', silver 'downvoted a question to -100', bronze 'downvoted a novice user into resigning'.)