Error:null value in entry: incrementalFolder=null

2019-01-10 08:45发布

问题:

I am getting following error in gradle build.

Error:null value in entry: incrementalFolder=null

How can I fix this?

回答1:

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.



回答2:

Just delete the .gradle directory and rebuild app. Undo Try to bring back .gradle directory. There by your error will be removed.



回答3:

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.



回答4:

  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



回答5:

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.



回答6:

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.



回答7:

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.



回答8:

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.


回答9:

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



回答10:

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



回答11:

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



标签: gradle null