I am very enthusiastic in learning and developing android applications using the native java language. Sadly my emulator is not running at all. It ran once but it was very very very slow. I am using Eclipse and the Android ADT bundle.
If it is a hardware thing here then please see my specs below. As far as I'm concerned, these are pretty decent specs for a laptop for developing apps.
Can anyone shed some light on why the emulator is unable to run properly? I really would like to start developing apps as soon as I can.
You can try three things:
Check whether your processor supports Intel HAXM. This will make the
emulator as fast as real device.
Try GenyMotion.
Alternatively, consider developing on Linux. The Linux kernel contains a module called kvm that is the equivalent of the Intel HAXM driver on Windows. The emulator is blazing fast on Linux with any kind of processor.
References:
1. Why is the Android emulator so slow?.
2. Speed up your Android Emulator!.
3. 8 Tips to Speed Up Your Android ARM Emulator.
4. How to speed up the Android Emulator by up to 400%.
The stock emulator is very slow. I had the same issue currently I am using Genymotion emulator which is way to better than the emulator that is packaged with the SDK.
here the download link:
https://www.genymotion.com/#!/download
Though it does not have all the features available for free
Related
I was programming in Android Studio on Windows using an Intel Processor for about 1,5 years. Due to my switch to AMD Ryzen, i'm not able to run a virtual device on Windows cause of it's need of Intel HAXM. That's why I switched to Linux, more accurate to Ubuntu 16.4.
I spent a lot of time searching for answers, assured myself to have KVW running, installed the latest Java version (which was quite difficult for a Linux beginner) and Android Studio is working fine, however I'm not able to run a virtual device. The gradle build finishes quite fast, however the Virtual Device won't come online.
Does anyone have the same problem and knows how to solve it?
Thanks in advance!
"Cannot launch AVD in emulator.
Output:
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 can't use a virtual device because of this. Yes, I installed the Accelerator from the Manager and even went into my app data and ran the intelhax.exe program, but there I found ANOTHER error telling me that my computer couldn't handle something about Intel.
I need help with this, and I can't start making apps until I get passed this block.
You need to open Android SDK Manager and download HAXM package from Extras
In order to use HAXM (including the x86 targets) you will need to have the additional functionality available from a product that only runs on Intel processors. You must have an Intel processor in your computer, then will need to install additional tools (including a driver) on your machine.
Your first problem was not having the additional drivers installed, your second problem, is that you can't install them because you don't have a compatible Intel processor.
You don't need to use HAXM to run the emulator (although it IS much faster). When creating a new AVD, target the "arm" system images, instead of the "x86" ones.
Another alternative is to download and use the Genymotion product which is a 3rd party emulator, and works well.
I'm working with LibGDX 1.5.6 on Windows and had successfully exported my app to Desktop, Android and HTML5.
But..
Assuming that I had previously selected the iOS project when creating the Gradle projects in the libGDX setup. And that I have a registered Device, Developer License and Provisioning Certificates for iOS development.
Is there a way to export my app to iOS, working on Windows?
Since Robovm depends on XCode to be installed I don't think it would be possible to deploy to iOS within Windows.
See the prerequisites from the official libgdx documentation here.
However, I was able to do it by running a virtual machine with Mac OS X, but my experience with it was not very pleasant, it runs very slow, specially if you use the iOS simulator. You will need a machine with a lot of RAM (8 RAM minimum). So I ended up buying a Mac Mini.
I used to use VMWare Workstation for emulation, but I had to download patches to make it work on the latest OS X version since it is not supported officially. It is a little hard to find any Mac OS X images to install on a virtual machine. I do not have any links to OS X images since that was quite a while ago, but you might be able to find some.
I recently installed the Bluestacks Android emulator. I happened to look at the process running under ProcessExplorer and was surprised to see that it is a .NET application.
The HD-Frontend.exe is the Bluestacks UI process and is highlighted yellow because it has loaded the .NET framework. There are a number of other processes associated with Bluestacks and most are also .NET.
Opening the EXE in Reflector.NET also shows that it is .NET.
I thought Android was Java-based. What's going on here?
Android is Java-based, but that does not mean an Android emulator has to be written in Java -- just functionally emulate Android devices.
While BlueStack's site does not list any system requirements for its emulator that I could find, at least a couple sites -- e.g. Bazooka Apps and Android Emulator for PC -- mention .NET as a requirement.
Ultimately the proof of what's going on is right in the process list and Reflector results you found.
its an emulation tool whose job is to read the dex code respond to that how the android phone should respond and not to compile and run that dex so it could be on python or ruby also there is no boundation at all that you have to make android emulator on java becuase android is built upon java.
I am an Indie Game Developer, and I am currently building a game for the Android Platform, using NDK.
My problem is that, this game is now more than 20MB in size and is taking a lot of time to deploy and start up on my Android Device, which is becoming a pain and is slowing me down.
So, I wanted to know
Is any way to hot deploy just the delta changes, that I make to my Android Project, instead of building and installing the whole thing to my Android Device again and again?
Is it even possible? I am looking for some thing like JRebel tool, for the Java VM and Java Containers.
[Update: Any other thoughts on bringing down the build time, please?]
Thanks and Cheers!
[Note: Just wanted to mention that I will not be be able to use the emulator for faster builds, because my game uses OpenGL library heavily, which the emulator cannot handle.]
So, I wanted to know if there is any way to hot deploy just the delta changes, that I make to my Android Project, instead of building and installing the whole thing to my Android Device again and again?
Not for stuff you are packaging inside your APK.
Just wanted to mention that I will not be be able to use the emulator for faster builds, because my game uses OpenGL library heavily, which the emulator cannot handle.
I would hope that the latest emulators (with hardware acceleration) and the x86 emulator images for 2.3.3 and 4.0.3 would run your game acceptably fast.
Actually hotswaping delta changes on Android is possible. You should use some special tools to achieve this behavior. You can try the tool: InstaRelaoder use "inirwetrust" as the password
JRebel is available for Android, and supports NDK projects.
https://zeroturnaround.com/software/jrebel-for-android/
Android Studio 2.0 has now an Instant Run feature.
More info in this link.