Hello Guys How are you all? Hope You all are fine. When I was trying to run my flutter app and suddenly I get the following error in my stack track. Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’ in a flutter. So today Here I come with all possible solutions for this error.
We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.
How Error Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’ flutter Occurs ?
I am just run my app in my emulator But I got the following error in my stacktrack.
Launching lib/main.dart on AOSP on IA Emulator in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
How to Solve Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’ flutter Error?
- How to Solve Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' flutter Error?
To Solve Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' flutter Just run flutter doctor and if there “android licenses” have an exclamation point and warning color then run
flutter doctor --android-licenses
. Just accept all and will solve your error. - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'
To Solve Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' flutter Just run flutter doctor and if there “android licenses” have an exclamation point and warning color then run
flutter doctor --android-licenses
. Just accept all and will solve your error.
Solution 1 : flutter doctor –android-licenses
If you are run flutter doctor and if there “android licenses” have a exclamation point and warning color then run flutter doctor --android-licenses
. Just accept all and will solve your error.
Solution 2: Check internet
Just check your internet connection in your emulator. There might be no internet in your emulator.Just turn on your wifi that should work!
Solution 3 : add buildToolsVersion
Just add buildToolsVersion
in your app gradle.
android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
}
Summery
So, It’s All About This Error. I hope this tutorial helps you to Solve your error. Please Comment Below if You stucks anywhere with my code. And please comment below on which solution worked for you. Thank You.
Also Check Out Below Tutorials
- Flutter Error: MissingPluginException No implementation found for method
- How To Download File From URL And Save in Local Storage In Flutter
- Error: Could not find included file ‘Generated.xcconfig’ in search paths (in target ‘Runner’)
- Exception thrown while unbinding, java.lang.IllegalArgumentException: Service not registered in Flutter
- type ‘List‘ is not a subtype of type ‘List‘ Flutter
Thankyou so much, my problem just sorted.
Thanks that helped!