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 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
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
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,366 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.