skip to Main Content

Gradle project sync failed in Flutter project

Every time my gradle is syncing it gets errors like this. Can someone help me? Error cause after adding firebase_ml_vision dependency. Caused by: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'. Caused by: java.lang.RuntimeException: com.android.build.gradle.internal.crash.ExternalApiUsageException: org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreationException: Could not create task ':app:packLibsflutterBuildDebug'.…

VIEW QUESTION

how to call a method from another dart file? – Flutter

in my programme i want to call the same path inside a methode called getPhoto()=>upload(statefulwidget) to other file or statefulwidget Future getPhoto() async{ FirebaseFirestore fearbase = FirebaseFirestore.instance; Reference ref=FirebaseStorage.instance .ref() .child("${widget.user}/ProfileData") .child("Url_$postId"); await ref.putFile(file!); downloadUrl=await ref.getDownloadURL(); // upload image to…

VIEW QUESTION

I can't solve fluttertoast error in android studio version: fluttertoast: ^8.1.2 >flutter –version Flutter 3.3.10 plz help me

Launching libmain.dart on sdk gphone x86 in debug mode... Running Gradle task 'assembleDebug'... ../flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-8.1.3/lib/fluttertoast.dart:165:28: Error: Member not found: 'Overlay.maybeOf'. var _overlay = Overlay.maybeOf(context!); ^^^^^^^](https://i.stack.imgur.com/LFZTA.png) I changed fluttertoast version but I got the same error above.

VIEW QUESTION
Back To Top
Search