Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Issue with running App on phone

I get an error " Failure [INSTALL_FAILED_OLDER_SDK] " when I try to run my App. The Android I am using is the Droid X.

I got it to work thanks a lot for helping

1 Answer

Hey Derek! I ran into this problem too a while back. Is your compileSdkVersion or targetSdkVersion set to 'android-L' by any chance? I was able to fix the issue by changing those to 19 (and I think 20 will work as well). You can check the compileSdkVersion and targetSdkVersion in the build.gradle file (assuming you're using Android Studio).

Hope that helps!

I can't find compileSdkVersion or targetSdkVersion in build.gradle.

Did you open the build.gradle in the app directory? It should look something like this.

Sorry I went to the wrong build.gradle.. compileSdkVersion and targetSdkVersion are set to 19 already

Ok, it's also possible that the app is being created for a version of the operating system that is higher than the one your device. What is your minSdkVersion set to? The latest operating system version supported by Droid X was 2.3 Gingerbread (which is API level 10) so assuming that your phone is running on that version, your minSdkVersion should be 10 or lower.