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
Nancy Melucci
Courses Plus Student 36,159 PointsGradle project sync failed message
I posted this in an old thread but, I'm obsessive and I am so close to finishing the Signals from Mars app I thought I could maximize my chances of getting help by re-posting, in case no one notices my other query. Here's the text. Please help if you know how to make the sync happen...
"Did anyone figure this out? I was building the Signals from Mars project last night, was almost done and first the emulator would not run the program, then, after I shut everything down, rebooted the computer and opened Studio again I got the GRADLE PROJECT SYNC FAILED message described above and the message
Error:C:\Users\Nancy "Melucci\.gradle\caches\2.4\scripts\settings_cpusi84x110iewf29aoeswpfv\SettingsScript\buildscript\cache.properties (The system cannot find the file specified)"
I tried to invalidate the cache and restart and the error is still there. I was really hoping to finish this without purging the app and starting from scratch but if that's what it takes....I don't want this to happen again, even if it does, so if anyone knows how to make this error message go away, I'd appreciate the help - Thanks very much."
Hoping to hear from someone soon. NJM
2 Answers
Ben Jakuben
Treehouse TeacherThis sounds like an issue with something (Gradle or Android Studio) being updated and causing a problem with an old file or setting. Here's an answer on StackOverflow that might help, but if you're still stuck, zip up your project and email it to me and I will try to take a look. Best of luck!
Nancy Melucci
Courses Plus Student 36,159 PointsThank you so much Ben. I am sending it shortly. Just so you know. I changed a few things in the app gradle build file (like Minify Enabled setting and target build info) but this seems to have had no effect on the problem. I found a typo in my code after the problem started, not the kind of thing that would make this happen. But of course, since editing is now disabled by the SYNC ERROR I can't check for any other goofs I've committed.
I am willing to rebuild the project if needed. I am going on vacation in 3 days though and it sure would be nicer to just make it work.
I love Treehouse and I am grateful for the help.
Nancy Melucci