This is an unfinished article… it seems like Android Studio is focusing a lot on Windows and not on Linux. (strange enough Android is a Linux operation system)
If you run Android Studio Device Emulation (which you will want to to test your Apps) you will have to unload any other virtualization technology before doing that… (can not run two at once).
This is all pissing me off.
CAN SOMEONE TRY TO SET IT UP INSIDE VMWARE? (thats what i will try next)
Requirements: A Linux host with atleast 30GB of harddisk space on /dev/sda
First of all:
Android Studio seems to be NOT anymore based on ECLIPSE.
but on JetBrain’s IntelliJ IDEA.
Which might make all eclipse-savy Java gurus mourn... just look at Windows 8… it’s not easy getting used to a new GUI. DAMN IT! 😀
OpenJDK seems to be NOT recommended/tested by Google – they want you to use the „original“ Oracle JDK.
I thought about setting this up inside a Linux (!) VirtualBox Machine, but you would have to run KVM-Virtualization inside VirtualBox, which does not work:
But you could have KVM inside KVM:
sudo modinfo kvm_intel | grep -i nested; # test if your system is capable of nested-virtualization parm: nested:bool
so this could work but was not tested.
If your host is running VirtualBox, you might need shutdown all running VMs and might need disable the driver/kernel-modules temporarily:
but it might also work without it… (just shutdown all VMs)
if you try to start a VM while the Android-Device-Emulator is running you get:
so i am curious how this is gonna play out 😀 (oh Gosh! 😀 is there a SIMPLE way to move ALL VirtualboxVMs to KVM? :-D)
or maybe i just keep switching 🙂 (see links at very bottom)
1. download android studio into that folder
2. Install JDK
3. test run: unzip android-studio-ide-141.1980579-linux.zip
./android-studio/bin/studio.sh; # try to run studio startup script
now you should get those screens: (where you usually windows-like just hit NEXT) 🙂
Now Android Studio should run already!
But the Device Emulator is not working properly yet.
Click this icon:
Scroll to the very bottom and check Intel x86 Emulator Acllerator (HAXM)
then hit install 15 packages button on the bottom right… this might take a while (BIG! FILES :-D)
then the „install 15 packages“ button might change to a „install 7 packages“ button…
hit it again.
AND HAVE 20GB OF HARDDISK AVAILABLE 😀
/home/username/Android# du -hsx * | sort -rh | head -10; # will output the 10 largest folders/files in current directory 20G Sdk; # this is quiet a lot of harddisk space required /home/username/Android/Sdk# du -hsx * | sort -rh | head -10; # 19G system-images 612M tools 254M platforms 171M extras 140M sources 73M build-tools 6.5M platform-tools 920K add-ons 4.0K temp 4.0K SDK Readme.txt /home/username/Android/Sdk/system-images# du -hsx * | sort -rh | head -10; # 9.9G android-22 8.5G android-MNC
test out android device emulation:
you should have an android device on your screen:
i think it’s supposed to boot… but it just stands at the android boot screen…
VirtualBox and KVM Side by Side: http://www.dedoimedo.com/computers/kvm-virtualbox.html
/etc/init.d/vboxdrv setup Not Found – VirtualBox Fix! https://gist.github.com/PartTimeLegend/5328700
nested virtualization with KVM: http://kashyapc.com/2012/01/14/nested-virtualization-with-kvm-intel/