Android: Getting a device connected on Fedora 20.

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.

  1. If your device is connected, un plug it!
  2. Make sure developer mode is enabled on your device. A quick google will show you how to do this.
  3. Install Android Debug Bridge (ADB);
    sudo yum install adb
  4. Set up your system to detect your device. The tutorial here will help you set up the udev rules that you need.
  5. Export some variables;
    export ANDROID_SDK_HOME=/Path/To/Android/SDK
  6. Kill the adb server;
    sudo adb kill-server
  7. Unlock your device and then plug it in! You should see notification prompt which you will need to accept.
  8. Start adb;
    sudo adb start-server
  9. Your device should appear correctly when you use;
    adb devices
  10. Now when you go to debug your application you will see…
Congratulations it works!
Congratulations it works!

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!

One thought on “Android: Getting a device connected on Fedora 20.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s