Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. #85972

Closed
mannnish opened this issue Jul 6, 2021 · 8 comments
Labels
r: invalid Issue is closed as not valid

Comments

@mannnish
Copy link

mannnish commented Jul 6, 2021

Facing this issue while running on android

FAILURE: Build failed with an exception.

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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

➜ flutter doctor -v

[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_IN)
    • Flutter version 2.2.3 at /home/mansih/Documents/dev/flutter
    • Framework revision f4abaa0735 (5 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/mansih/Android/Sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /home/mansih/Documents/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /home/mansih/Documents/android-studio
    • Flutter plugin version 57.0.1
    • Dart plugin version 201.9380
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (2 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    •
      Android 10 (API 29) (emulator)
    • Chrome (web)                       • chrome        • web-javascript •
      Google Chrome 91.0.4472.114

• No issues found!
@MinhCuongIT
Copy link

I have the same issue on my project. But I don't know the ways to fix it.

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Jul 7, 2021
@darshankawar
Copy link
Member

@mannnish

The error is pointing to gradle: Problems reading data from Binary store in /tmp/gradle1514867895156133686.bin offset 618452 exists? true which seems to be pointing to gradle and not specific to flutter itself. See below related issue:

gradle/gradle#8489
gradle/gradle#13316

Also try below and see if it helps:

cd <your_project>/android
./gradlew clean

Closing from here as this isn't a flutter issue.

@darshankawar darshankawar added r: invalid Issue is closed as not valid and removed in triage Presently being triaged by the triage team labels Jul 7, 2021
@mannnish
Copy link
Author

mannnish commented Jul 7, 2021

@mannnish

The error is pointing to gradle: Problems reading data from Binary store in /tmp/gradle1514867895156133686.bin offset 618452 exists? true which seems to be pointing to gradle and not specific to flutter itself. See below related issue:

gradle/gradle#8489
gradle/gradle#13316

Also try below and see if it helps:

cd <your_project>/android
./gradlew clean

Closing from here as this isn't a flutter issue.

not exactly this, but upgrading gradle worked for me.

@MinhCuongIT
Copy link

Can you tell me the version of Gradle you were upgraded to?

@mannnish
Copy link
Author

mannnish commented Jul 8, 2021

Can you tell me the version of Gradle you were upgraded to?

was working with v5 earlier upgraded to 6.0.1
this is how you can upgrade

cd android
./gradlew clean
./gradlew wrapper --gradle-version 6.0.1
./gradlew -v   # to download the new version
cd ..
flutter clean
flutter run   # might take 15 - 20mins for the first time

@MinhCuongIT
Copy link

Can you tell me the version of Gradle you were upgraded to?

was working with v5 earlier upgraded to 6.0.1
this is how you can upgrade

cd android
./gradlew clean
./gradlew wrapper --gradle-version 6.0.1
./gradlew -v   # to download the new version
cd ..
flutter clean
flutter run   # might take 15 - 20mins for the first time

Thanks so much. I also upgrade the version to 6.2 and it works as well.

@MoisesGonga
Copy link

Can you tell me the version of Gradle you were upgraded to?

was working with v5 earlier upgraded to 6.0.1
this is how you can upgrade

cd android
./gradlew clean
./gradlew wrapper --gradle-version 6.0.1
./gradlew -v   # to download the new version
cd ..
flutter clean
flutter run   # might take 15 - 20mins for the first time

Thanks so much. I also upgrade the version to 6.2 and it works as well.

Can you tell me the version of Gradle you were upgraded to?

was working with v5 earlier upgraded to 6.0.1
this is how you can upgrade

cd android
./gradlew clean
./gradlew wrapper --gradle-version 6.0.1
./gradlew -v   # to download the new version
cd ..
flutter clean
flutter run   # might take 15 - 20mins for the first time

Thanks so much... it works for me too! Muito obrigadoooo

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: invalid Issue is closed as not valid
Projects
None yet
Development

No branches or pull requests

4 participants