Search code examples
android-studioubuntu-15.04android-min-sdk

Android Studio, No, minSdk(API 14) > deviceSdk(API 1), moto G, Ubuntu 15.04


I just installed Android Studio (v1.4) on Ubuntu 15.04 (64) and am unable to connect to my Moto G (Android 5.0.2) to run the application I made from a tutorial.

When asked to choose a device, I get the following choice for my device:
TA9290IPXK [NULL] No, minSdk(API 14)>deviceSdk(API 1) TA9290IPXK

I already enabled USB debugging on the device. when running 'adb devices' I get " ?????????????? no permission " and after killing and restarting the adv server it displays the proper serial ID but when going back to Android Studio it still does not work.

Has anyone encountered this issue ? Can someone provide a suggestion of solution please.


Solution

  • Ok I found the solution

    Turns out I had 2 ADB installed in different Paths and Android studio was getting one of them that was not the correctly configured. I also had not properly set up the udev rules.

    Here are the step I took to get it fixed
    1. Remove ADB that was installed manually
    2. Modify the udev rules to add the devices (It turns out that both my Nexus 7 and Moto G were not Asus and Motorolla respectively but Google inc instead. I acquired the right Vendor ID code using "lsusb" It returns XXXX:YYYY the vendir iD is the XXXX
    3. Add the location of the right adb to path ( /Sdk/platform-tools/)
    4. Then rebooted all of the devices (computer and android devices) and it seems it worked.

    Sorry for not giving out all the terminal lines that were entered, being novice with Ubuntu it may have been a lot more confusing than helping.

    Hopefully it can help someone that is in the same situation.