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
Derek Kneisel
2,487 PointsIssue 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.
1 Answer
Kristen Law
16,244 PointsHey 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!
Derek Kneisel
2,487 PointsI can't find compileSdkVersion or targetSdkVersion in build.gradle.
Kristen Law
16,244 PointsDid you open the build.gradle in the app directory? It should look something like this.
Derek Kneisel
2,487 PointsSorry I went to the wrong build.gradle.. compileSdkVersion and targetSdkVersion are set to 19 already
Kristen Law
16,244 PointsOk, 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.
Derek Kneisel
2,487 PointsDerek Kneisel
2,487 PointsI got it to work thanks a lot for helping