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

APK file

I cannot seam to find the right drivers. How come we cannot from the build menu > generate signed APK > then connect phone or device and drag and drop in windows file explorer then install the apk file from your phone or device. Ive done this in the past but on this particular app i keep getting an error when i try to setup my keystore path.

I'm running Linux so the process may be a little different. How I did this was:

  1. Click on build -> generate signed apk
  2. Click Create new..
  3. If it takes you to set the location, choose a folder and input a name for the keystore at the bottom of the dialog box. If it didn't take you to this dialog, click the three dots to the right of keystore location.
  4. Fill out all the boxes for the new keystore and click finish.
  5. You should be back to the generate signed apk wizard.
  6. Click next
  7. select either debug of release depending on whether or not you want to be able to debug on the device
  8. Click finish, wait for the APK created dialog, and click show in file manager to get to where the .apk was generated. Mine was named app-release.apk, you may want to rename it, but it doesn't matter.
  9. copy the apk over however you do.
  10. make sure in system settings -> security on your phone that "unknown sources" is checked.
  11. install as you have in the past