Ishvar Kikani
Ishvar Kikani

Reputation: 1404

Error:null value in entry: incrementalFolder=null

I am getting following error in gradle build.

Error:null value in entry: incrementalFolder=null

How can I fix this?

Upvotes: 123

Views: 59755

Answers (12)

Vinoj Vetha
Vinoj Vetha

Reputation: 734

Delete the .gradle Folder from root project that showed in the top of the root project.

Upvotes: 1

Usman Ali
Usman Ali

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

Monika Moon
Monika Moon

Reputation: 198

I resolved my error by removing the .gradle as well as .idea directory from the root project directory.

Upvotes: 3

Diya Bhat
Diya Bhat

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

Hardik Patel
Hardik Patel

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.

  • I hope its works for other.

Upvotes: 3

Praveen Gaur
Praveen Gaur

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. enter image description here

Upvotes: 3

Kimmi Dhingra
Kimmi Dhingra

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

shoriwa-shaun-benjamin
shoriwa-shaun-benjamin

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

superheron
superheron

Reputation: 363

I had the same issue. importing files into a new project fixed it for me.

Upvotes: 2

thiru-wta
thiru-wta

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

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

Maravilho Singa
Maravilho Singa

Reputation: 224

  1. Empty all "build" folders in your project
  2. Copy all your project files and folders
  3. Create a new folder and past it there
  4. Open android Studio and import project
  5. Wait Android Studio to download all dependecies.

That's all. It will work perfectly

Upvotes: 5

Related Questions