Reputation: 1404
I am getting following error in gradle build.
Error:null value in entry: incrementalFolder=null
How can I fix this?
Upvotes: 123
Views: 59755
Reputation: 734
Delete the .gradle Folder from root project that showed in the top of the root project.
Upvotes: 1
Reputation: 433
I stuck in the problem like this. What I done is Delete the .Gradle Folder From the Project File.
Then Built and Clean the Project. Certainly my problem is only resolved by this.
Delete .Gradle Folder -> Clean->Built
Upvotes: 1
Reputation: 198
I resolved my error by removing the .gradle as well as .idea directory from the root project directory.
Upvotes: 3
Reputation: 255
delete the .gradle file from the root directory and then clean the project, by this your .gradle file be recreated and your error will be resolved.
Upvotes: 5
Reputation: 31
Error:null value in entry: libOutputDir=null
put any new projects .gradle file into your app but before that you must backup your app. i solved this error using this method.
Upvotes: 3
Reputation: 211
I am working on my project and suddenly lights goes off, When i started Android studio and run the project, At the moment Android studio syncing the Gradle, And the same problem occurs.
Solution=>
Please Tack Backup of your project before proceeding these tasks.
Delete All folder and files present in Build folder and Gradle folder.
Uploading Images That will help you.
Upvotes: 3
Reputation: 2289
This is gradle bug. Go to your project folder, delete your gradle and build folder. Sync the project with gradle files. This will resolve the problem.
Upvotes: 4
Reputation: 807
I think it has something to do with iCloud. I've found that each time that happens with my projects it's because the .gradle file had been uploaded into iCloud and was no longer available in my computer. So either delete the .gradble file and have it regenerated, or recover it from iCloud by clicking it.
Upvotes: 9
Reputation: 363
I had the same issue. importing files into a new project fixed it for me.
Upvotes: 2
Reputation: 317
Just delete the .gradle directory and rebuild app. Undo Try to bring back .gradle directory. There by your error will be removed.
Upvotes: 32
Reputation: 3893
I agree with Maravilho Singa's answer. It appears to be a bug in gradle.
I found another solution here:
removing the .gradle directory in the root project directory will fix the problem.
Upvotes: 308
Reputation: 224
That's all. It will work perfectly
Upvotes: 5