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 (2014) Basic Android Programming Accessing Views in Code

TextView factLabel = (TextView) findViewById(R.id.factTextView); Button showFactButton;

I'm using the latest Android Studio Darcula. The blank app starts with a "toolbar" I erased the code for the toolbar the problem is the autofill feature doesn't seem to work like it used to and I'm left with a sqiggly red line under fact text view. I also get the gradle build errors Error:(23, 57) error: cannot find symbol variable factTextView

also

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Error during Sync: Local path doesn't exist. 1:03:03 AM Unexpected Error Local path doesn't exist. Local path doesn't exist. The project may need to be synced with Gradle files. Sync Project with Gradle files

what does it mean local path doesn't exist? I put JAVA_HOME as a system variable. Is that the problem. Should I click on Sync Project with Gradle files? I did this excersize a couple months ago and didnot run in to this issue however this is probably a newer edition and I didn't choose Darcula before.

Jordan Ernst
Jordan Ernst
5,121 Points

have you synced your project?