LibGDX Android project not running properly

Hey, so I’ve been doing LibGDX stuff for a little while now and I wanted to start Android development, so I got an SDK and configured Eclipse and everything. Whenever I run my Android project with an actual plugged-in device, the device doesn’t show up in Eclipse’s listing. Whenever I try to run on an AVD, I just get the never-ending Android splash screen or black screen. After I close the failed program, I get this in the console:


[2015-05-10 21:43:08 - AndroidTest-android] Installing AndroidTest-android.apk...
[2015-05-10 21:43:57 - AndroidTest-android] Installation error: Unknown failure
[2015-05-10 21:43:57 - AndroidTest-android] Please check logcat output for more details.
[2015-05-10 21:43:57 - AndroidTest-android] Failed to install AndroidTest-android.apk on device 'emulator-5554': device not found
[2015-05-10 21:43:57 - AndroidTest-android] com.android.ddmlib.InstallException: device not found
[2015-05-10 21:43:57 - AndroidTest-android] Launch canceled!

Any idea of what that means? How do I check the logcat?

You need to have your device correctly set up for debugging via USB, which require enabling the device for USB-debugging, and installing Google USB driver. Depending on the device, it can be a bit troublesome to make the USB driver work (I almost got crazy back in the day with my Galaxy Nexus).

Just to make sure this is not libgdx related, try to make a simple android hello world application (without libgdx).