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

Java

Gradle 'FunFacts' project refresh failed: Error:Cause: java.io.FileNotFoundException

After going through the install and creating the Fun Facts projects, I have run into numerous errors. the latest is:

Error:Cause: java.io.FileNotFoundException: C:\Users\Josh\AndroidStudioProjects\FunFacts\src\main\AndroidManifest.xml (The system cannot find the path specified) C:\Users\Josh\AndroidStudioProjects\FunFacts\src\main\AndroidManifest.xml (The system cannot find the path specified)

Ihave changed the gradle settings to 12.2 instead of 12.+ in the build.gradle file.

I have gone through Invalidate Cache and restart five or six times.

I have added "apply plugin: 'com.android.application'" to the build.gradle file to get past some other error I've completely forgotten.

Any suggestions to get this working?

Windows 7, 64 bit. Android Studio 0.8.2

Did you import the java.io file in at the start of your main class?

Erin Leathers
Erin Leathers
3,562 Points

Hi, I don't think you had the import statement on android studio. I ran into this a couple of times myself.

Also you have this in the java forum and may need to move it to android section.

Hope this helps.