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

MasterDetailExample Android App on Eclipse - Errors

As soon as I create my project "MasterDetailExample" it is filled with errors and I'm not sure why. I've been following the Android track and can't continue because of these errors.

Errors Consist of:

  1. The import android.support.v7 cannot be resolved
  2. ActionBarActivity cannot be resolved to a type
  3. The method onCreate(Bundle) of type BlogPostDetailActivity must override or implement a supertype method
  4. R cannot be resolved to a variable
  5. The method getSupportActionBar() is undefined for the type BlogPostDetailActivity
  6. The method getIntent() is undefined for the type BlogPostDetailActivity
  7. The method getSupportFragmentManager() is undefined for the type BlogPostDetailActivity
  8. The method onOptionsItemSelected(MenuItem) of type BlogPostDetailActivity must override or implement a supertype method
  9. Multiple markers at this line
    • The constructor Intent(BlogPostDetailActivity, Class<BlogPostListActivity>) is undefined
    • The method navigateUpTo(Activity, Intent) in the type NavUtils is not applicable for the arguments

3 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Sorry about the trouble here! I will be refreshing this course soon which will solve these specific issues. In the mean time, please recreate the project and set the minimum SDK to 14. There are a lot of new backwards-compatibility issues when trying to use an earlier minimum SDK like we had when the project was first recorded.

Okay thanks. How do I set the minimum SDK to 14?

Ben Jakuben
Ben Jakuben
Treehouse Teacher

When you create the project, set the "Minimum Required SDK" to 14 instead of 11. See the 4:15 mark of the video.

Okay thanks!

I am having a similar problem with Eclipse. I just pressed the bebug problem and the first 1 stopped. The second is that as I follow the video ( starting the project). We r supposed to choose 4.2 mine only aloows 4.4 and no other options. But when i try to launch an emulator I am told that the image for 4.4 hasn't loaded. So I rrestarted it and sure enough 4.4 was loading. It never came up wven when after I restarted again it keeps saying that only a certain amount of Mb has loaded . The highest it went to was 113Mb out of 555Mb. How can I resolve this issue. Thank you in advance guys.

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Sorry I missed your comment here! Have you gotten past the issue?

Not yet, I can't use Eclipse at all and I've run into problems with importing Genymotion to Androis Studio. I will try it again tommorrow if I get past these problems I will let you know. Thanks for your response.

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Cool - let me know! We'll make sure you get up and running.