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 Blog Reader Android App Rebuilding from Scratch Handling a Lack of Data

Blog Reader application

Hey everyone!

So I'm once again in need of help with the blog reader application!

I've been following all of the steps in the video with starting from scratch for building the blog reader app!

since the SDK has been updated I've ran into some terrible trouble! under MainListActivity.java. I'm getting Errors pretty much through the whole thing and I even downloaded the java file provided by Ben for this and I cannot seem to fix it! I've done everything I can think of saving it making sure the import is correct and doing a project clean up and its just nothing but errors!

This is what I'm getting under problems

Description Resource Path Location Type Unable to resolve target 'android-17' BlogReader Unknown Android Target Problem Unable to resolve target 'android-17' BlogReader Unknown Android Target Problem Unable to resolve target 'android-17' BlogReader Unknown Android Target Problem Unable to resolve target 'android-17' until the SDK is loaded. BlogReader Unknown Android Target Problem The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files MainListActivity.java /BlogReader/src/com/brentlyapps/blogreader line 1 Java Problem The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project BlogReader Unknown Java Problem

Any idea what I can do to fix this? I've even made sure that the package com.brentlyapps.blogreader;

Was set for the correct one and removing the teamtreehouse that came with it to avoid any issues on the first line, when I try to do the import and organize it removes

import android.app.ListActivity; import android.content.res.Resources; import android.os.Bundle; import android.view.Menu; import android.widget.ArrayAdapter;

and still gives me errors!

Thanks for taking your time to read this!

If I can't get through this then I'll just blow through the rest of the videos and take the test and probably learn nothing because I wont be able to follow along with all of these errors :(

5 Answers

Charlie Thomas
Charlie Thomas
40,856 Points

Trying updating your JDK and updating for SDK to API 18 or 19

This is the exact Error I get,

This Android SDK requires ADT Version 23.0.0 or above Current version is 22.62v201403212031 - 1085508

Please update ADT to the latest version.

I check for updates, try to update what ever is in there which is one item, Says its completed restarts ADT and keeps giving me that Error message.

Then I'll go to install new software, Choose eclipse and check all to install, It starts the process and Gives me a huge list of Errors during the install.

I have no idea what I'm doing wrong if I'm doing anything wrong, I haven't messed up any of the files, all of the tutorials show me how to do it, I do it and it doesn't work.. I honestly have no idea what I'm doing wrong, and how to just download everything at once set it up so it all works... this is the only program I have ever had issues with when it comes to updating it.. its a nightmare for me

these are the errors.

An error occurred while collecting items to be installed session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,23.0.3.1327240 No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.adt.feature,23.0.3.1327240 No repository found containing: osgi.bundle,com.android.ide.eclipse.base,23.0.3.1327240 No repository found containing: osgi.bundle,com.android.ide.eclipse.ddms,23.0.3.1327240 No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.ddms.feature,23.0.3.1327240 No repository found containing: osgi.bundle,com.android.ide.eclipse.gldebugger,23.0.3.1327240 No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.gldebugger.feature,23.0.3.1327240 No repository found containing: osgi.bundle,com.android.ide.eclipse.hierarchyviewer,23.0.3.1327240 No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.hierarchyviewer.feature,23.0.3.1327240 No repository found containing: osgi.bundle,com.android.ide.eclipse.ndk,23.0.3.1327240 No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.ndk.feature,23.0.3.1327240 No repository found containing: osgi.bundle,com.android.ide.eclipse.traceview,23.0.3.1327240 No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.traceview.feature,23.0.3.1327240 No repository found containing: osgi.bundle,overlay.com.android.ide.eclipse.adt.overlay,23.0.3.1327240

When I update everything that needs to be updated in SDK tells me that I'm using a lower version then what I've updated and I'm not sure what I'm doing wrong, I go back to SDK manager and everything looks correct, says I have all of the latest updates needed and installed...

Charlie Thomas
Charlie Thomas
40,856 Points

I am assuming you are using eclipse try Android Studio that is what I used.

I wanted to but everything seems to make more sense in Eclipse for some reason except for the updating process of it.

On the bright side I'm not longer getting the SDK error with the updating I just for what ever reason cannot do any android application projects... which is what those errors are from earlier when I trying to download and install from the Android Developer Tools Update Site - https://dl.google.com/android/eclipse/ and choose all that need to be installed. this is just getting incredibly frustrating and I'm so ready to give up because I've been at this for over a week now and I feel like I'm the only one that is running into these problems or I just don't know how to fix them.

If Ben started making Videos with Android Studio or more updated videos I'd be MUCH happier with everything since there's a big chance ADT will be obsolete and people wont use it, things would just be much easier to use android studio even if it is in beta because then we would all have a better grasp on using it and understanding it.

Charlie Thomas
Charlie Thomas
40,856 Points

I know (they are starting check out upcoming videos) but if you do the android tools and learn about android studio it is actually very easy

I'll let you know how it goes

I did the course for ADS it made a lot of sense I just think I need to play with it more. but I would honestly rather learn as much as I can with ADT then move to ADS

Still no luck....