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 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

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.