Recently I’ve been trying my hand at Android development, I’ve been writing an app to compliment a board game my friend has been making with the intent of simplifying rule look up. So with that aim in mind I was keen to get it working on my Nexus 7, what better way to play a board game?
Here’s the steps I took to get it working on my Fedora 20 machine, I turned them into a guide with the hope they might help anyone who hits the same problems I did.
- If your device is connected, un plug it!
- Make sure developer mode is enabled on your device. A quick google will show you how to do this.
- Install Android Debug Bridge (ADB);
sudo yum install adb
- Set up your system to detect your device. The tutorial here will help you set up the udev rules that you need.
- Export some variables;
- Kill the adb server;
sudo adb kill-server
- Unlock your device and then plug it in! You should see notification prompt which you will need to accept.
- Start adb;
sudo adb start-server
- Your device should appear correctly when you use;
- Now when you go to debug your application you will see…
Note: If you see an error like this;
ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
ko:failed to initialize KVM
It might be that you’re running some kind of VM. I find stopping any Vagrant VMs I have running can make this go away!