Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gradle fails with Problems reading data from Binary store error

Tags:

android

gradle

I have a Gradle file that runs the tests. It does not build anything. All it has is a unzip task that extracts all jars in a Gradle configuration into a particular directory and then runs the task of type Test. This test task points the testClasses directory to the location where the previous copy task has extracted the configuration into.

My build fails with the error message:

Problems reading data from Binary store

When I run 'gradle dependencies' it does not show any error/warning When I run the copy task individually, it runs very well fine. Only when I run everything it fails with error :

> Could not resolve all dependencies for configuration ':testConfig'.$    > Problems reading data from Binary store in /tmp/gradle8793563212642185736.bin (exist: false)$ 

I see the file /tmp/gradle8793563212642185736.bin does not exist. What could be the reason for this?

like image 647
Sundeep Gupta Avatar asked Apr 24 '15 08:04

Sundeep Gupta


People also ask

How do I resolve errors in build gradle?

Fix your gradle version as per your sdk. Whatever the API (23 or less) you are using, find the gradle version and update the gradle. properties files in your project folder then sync again. For Rendering error - Go to gradleBuid and check the AppCompat dependency version.

How do I find my gradle version?

In Android Studio, go to File > Project Structure. Then select the "project" tab on the left. Your Gradle version will be displayed here.


1 Answers

In my case setting org.gradle.parallel=false flag fixes the issue, but it's not a solution for my project, flag increase CI build time from ~15min to ~45min.

like image 196
Jacek Marchwicki Avatar answered Sep 19 '22 06:09

Jacek Marchwicki