Android Studio Gradle Error At Compile Time
Solution 1:
1.delete {project dir}/.gradle/{gradle distribution version dir}
{gradle distribution version dir} is whatever the gradle distribution version you use (ref: https://developer.android.com/studio/releases/gradle-plugin.html#revisions). For example, it can be "1.9" or "2.10" or some other version number.
2.Sync Project with Gradle File
Solution 2:
This is what worked for me:
Android Studio -> File -> Invalidate Caches and Restart
Solution 3:
Stoping the gradle daemon worked for me.
- go to terminal and run ./gradlew --stop
- Rebuild the project.
Solution 4:
For me, I have tried to:
(Doesn't Work):
invalidate caches.
stop third-party plugins.
remove gradle repository.
remove {project dir}/.gradle/2.*(which are not current gradle version)
(Work):
Finally, the answer is like @MAC113's,
delete {project dir}/.gradle/2.10 (2.10 is my current gradle version)
Solution 5:
None of those solutions working for me. I ended up by:
- Clone my project to a new folder
- Remove .gradle, .idea folders
- Add as a new project (File > Open > [new folder])
It works! It's a weird issue that I've ever met.
Post a Comment for "Android Studio Gradle Error At Compile Time"