Skip to content Skip to sidebar Skip to footer

Robotium: Please Install A Compatible Android Api Level (15 Or Higher)

Trying to run a new robotium test I get this error. Does anyone know how to fix it? I've all the APIs needed. (15 and a lot of higher APIs). What am I missing? This is part of my

Solution 1:

  1. From your project/android panel, press F4 to open the project structure. Select SDK Location and check that the Android SDK location path is in fact the same SDK installation you have downloaded your API's to.

  2. Make sure the Emulator or device has at least API 15 installed (>= ICE_CREAM_SANDWICH_MR1)

  3. Ensure the exact same API is available in your SDK as your device:

User Guide: Make sure the Android API level of the connected device or emulator is available in the Android SDK Manager

  1. Open your Module Gradle file and make sure that compileSdkVersion & targetSdkVersion (and maybe minSdkVersion & buildToolsVersion) versiona are at least 15

  2. (For the benefit of any future readers) Make sure you have a test set up for it to run, otherwise you don't have the option

Solution 2:

To fix this problem, beside what told by Nick Cardoso, I've:

  • created a new AVD and from there installed all the AVD libraries of the 25 library. Google's APIs included. It didn't worked.
  • I've tried opening File > Settings > Systems settings > Android SDK > Clicked on the "Edit" button next to the SDK location and re-installed the Android SDK from the view that opens from there.
  • I've checked every support library in my dependencies moving them from :+ or 25+ to at least 25.+ to avoid libraries version mismatch.

Now I get no more this problem (but I have the one described in the description).

Post a Comment for "Robotium: Please Install A Compatible Android Api Level (15 Or Higher)"