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

NoobDroid picture NoobDroid · Oct 9, 2015 · Viewed 9.7k times · Source

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.

Answer

An obvious reason for that error message “No, minSDK(API 14) > deviceSDK(API 1)”, which I didn´t find so far mentioned neither at StackOverflow nor by other forums:

If the AVD Manager option for a virtual device “Emulated Performance - [ ] Use Host GPU” is unchecked, the Android simulator works just on "API 1" level :-(.

So if you try to execute a standard Android app ( e.g. "API 14" level ) with this setting,

  1. The Android desktop screen is not displayed but just black screen with “android” in white letters.

  2. When executing “Run / Device Chooser / Choose a running device / Compatible” again, there is the error message “No, minSDK(API 14) > deviceSDK(API 1)”, if “minSDKVersion 14” is set in the project configuration file “app”.

-

Why should you ever try to run the Android simuator with unchecked option?

Well...If your Win8 or Linux computer really provides OpenGL2 graphics, you may operate the simulator with default setting “Emulated Performance - [x] Use Host GPU”.

But if your Win8 or Linux computer just provides OpenGL1 graphics, as my legacy Win8-32bit notebooks “ASUS Eee PC T101MT” and “Dell Vostro 1000” with standard Windows drivers by Microsoft, the Android Simulator crashes by the error message “APPCRASH”, “Fault Module name: libOpenglRender.dll”.

And so by unchecking the option, you can´t run Android apps requiring a usual API level ( API 14,... ) :-(.

Read this article about the incomplete rollout of OpenGL2 drivers for Win,Linux and MacOX on current and legacy computers :-(: https://github.com/processing/processing/wiki/OpenGL-Issues

Sincerely Rolf