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 with Java Testing and Debugging Writing to the Log

David Rincon-Cruz
David Rincon-Cruz
4,151 Points

Broken Question - Compiler Error

I keep getting this unrelated compiler error regardless of my code.

JavaTester.java:64: error: illegal start of expression package com.teamtreehouse; ^ JavaTester.java:64: error: not a statement package com.teamtreehouse; ^ JavaTester.java:65: error: illegal start of expression import android.util.Log; ^ JavaTester.java:65: error: not a statement import android.util.Log; ^ JavaTester.java:67: error: illegal start of expression public class TreehouseActivity extends Activity { ^ 5 errors

2 Answers

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi there! There currently seems to be a problem with Java challenges across the board. Another moderator and I have reported it to Treehouse staff. I hope they get it fixed soon! :sparkles:

Benjamin Gooch
Benjamin Gooch
20,367 Points

Any progress to this? I finally got some time to sit down and learn and I'm stuck because of this. It's failing the pre-existing code on a challenge with "Illegal start of expression".

Cibele Bustamante
Cibele Bustamante
Courses Plus Student 14,709 Points

Hi Benjamin, I posted my own question about that. If you want to follow: https://teamtreehouse.com/community/javatesterjava65-error-illegal-start-of-expression You can just skip the exercises and do them later (just click on the white circle representing the next lesson, located above the exercise window) . It won't give you a badge when you complete a course, but at least you can progress... I'm doing this and plan on coming back and doing the exercises later to get the badge and finish the course.