Home > database >  Problems reading data from Binary store from tmp folder
Problems reading data from Binary store from tmp folder

Time:05-12

Getting this error

* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
   > Problems reading data from Binary store in /tmp/gradle16425735337117079234.bin offset 753438 exists? true

Result of flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.5, on Manjaro Linux 5.15.32-1-MANJARO, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] Connected device (1 available)
[✓] HTTP Host Availability

• No issues found!

Content of android/build.gradle

buildscript {
    ext.kotlin_version = '1.6.10'
    repositories {
        google()
        jcenter()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.3.8'
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        maven { url 'https://jitpack.io' }
        maven { url 'http://developer.huawei.com/repo/' }
    }
}
rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

CodePudding user response:

Same. Repository failure? I haven't changed any of the underlying android grade files etc. I wonder if it's something to do wit jcenter() being offline now...

CodePudding user response:

Fixed this. In my case it was

implementation 'com.facebook.android:facebook-android-sdk:[5,6)'

switched to

implementation 'com.facebook.android:facebook-android-sdk:6'

in the app/build.gradle file.

https://github.com/gradle/gradle/issues/20515#issuecomment-1121012872

CodePudding user response:

Yes jcenter is not working for some of the libraries.

Removing jcenter() from android/build.gralde fixed this issue. Also, make sure all your libraries are present on maven. Or else you will get an "Not Found" error while building.

CodePudding user response:

You'd need Android Studio 4.1, which matches these build tools:

com.android.tools.build:gradle:4.1.0

eg. for Android Studio Chipmunk, this would already be 7.2.0. And remove jcenter().

CodePudding user response:

in app level build.gradle change this line // implementation 'com.facebook.android:facebook-login:[5,6)' to this implementation 'com.facebook.android:facebook-login:6'

CodePudding user response:

you just need to change this line in build.gradle

implementation 'com.facebook.android:facebook-core:[4,5)'

to this

implementation 'com.facebook.android:facebook-core:5'

OR This implementation 'com.facebook.android:facebook-android-sdk:[5,6)'

to this

implementation 'com.facebook.android:facebook-android-sdk:6'

  • Related