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) Getting Started with Android Running the Fun Facts Project

Problem with running the app Fun Facts

When I run the app in my emulator appears an error like in the picture

https://www.dropbox.com/s/bjsgmw16pata8zd/Screen%20Shot%202014-11-25%20at%2019.33.30.png?dl=0

Does anyone know why this error occurs?

4 Answers

Well usually it's better to keep both at the same build level, or at least the device API level is higher than the development API.

Also what is important is the target API.

A more valid reason as to why? -- find it here Virtual Devices - Android Website

Hope this helps

Is your build API and device type API both version 20?

No, my build API is 14 and device type API is 20. I create new project with build API 19 and my new device type is also 19. Now everything is working properly, thank you very much. Does build API and device type API must always be the same?

Ok, thank you very much for your help.