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

.gradle lock file

Error:A problem occurred configuring project ':app'.

Could not open buildscript class cache for build file '/Users/Android/Desktop/Amrosaab/app/build.gradle' (/Users/Android/.gradle/caches/2.2.1/scripts/build_7vsfx9ux55ghgf82vlh1o4n6e/ProjectScript/buildscript). Timeout waiting to lock buildscript class cache for build file '/Users/Android/Desktop/Amrosaab/app/build.gradle' (/Users/Android/.gradle/caches/2.2.1/scripts/build_7vsfx9ux55ghgf82vlh1o4n6e/ProjectScript/buildscript). It is currently in use by another Gradle instance. Owner PID: unknown Our PID: 1986 Owner Operation: unknown Our operation: Initialize cache Lock file: /Users/Android/.gradle/caches/2.2.1/scripts/build_7vsfx9ux55ghgf82vlh1o4n6e/ProjectScript/buildscript/cache.properties.lock

Please help me...it is very important for me....i have imported the project from eclipse

1 Answer

Well. I don't know the intrinsics of gradle. But i think there's cached files, coming from the imported files, which are causing the problem. I think removing those files would help. Check this out: http://stackoverflow.com/questions/14104085/gradle-could-not-open-buildscript-class-cache-is-there-a-better-way-to-resol and http://stackoverflow.com/questions/21523508/it-is-currently-in-use-by-another-gradle-instance

I hope it helps somehow.