Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Simple Android App (2014) Testing and Debugging Running the App on a Device

Charles Harpke
Charles Harpke
33,986 Points

Samsung Galaxy note Will not run app

I have an older device, and I get he following message....here is my code:

Waiting for device.
Target device: samsung-samsung_sgh_i717-fd455e40
Uploading file
    local path: /Users/charlesharpke/AndroidStudioProjects/FunFacts/app/build/outputs/apk/app-debug.apk
    remote path: /data/local/tmp/com.chuckharpke.funfacts
Installing com.chuckharpke.funfacts
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.chuckharpke.funfacts"
pkg: /data/local/tmp/com.chuckharpke.funfacts
Failure [INSTALL_FAILED_OLDER_SDK]

2 Answers

What type of note do you have is it a Galaxy Note 1 or 2? I have a Galaxy Note 2. In your app look on the left under your project window scroll down to the first "build gradle" file, what is the:

compileSdkVersion buildToolsVersion minSdkVersion targetSdkVersion

as it sound like the target sdk version you have selected may be too high for your phone. Have you updated your firmware on you phone in the last year if not try updating your software on your phone?

Charles Harpke
Charles Harpke
33,986 Points

I have since updated the ROM on this phone to Jellybean.....It is a Samsung Galaxy Note SGHI717 that I wanted to keep around for break/fix issues. In any case, updating it did the trick.....thanks.

No Probs..Good to hear your problem has been solved.