I always fail to run with an error description in the flutter contact picker - flutter

This problem only exists when I run it on Android, for iOS there is no problem, I run it smoothly.
This is an error display when I try to run it :
e: /Users/yohanescatur/Documents/Development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttercontactpicker-4.2.1/android/src/main/kotlin/me/schlaubi/fluttercontactpicker/ContactPicker.kt: (52, 280): Unresolved reference: stackTraceToString
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':fluttercontactpicker:compileDebugKotlin'.
Compilation error. See log for more details
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.
Get more help at https://help.gradle.org
BUILD FAILED in 28s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
can you help me find this problem?

set kotlin to 1.4.21
this is what i did to solve this problem.

set kotlin to 1.5.10
this is what i did to solve this problem.
please flutter clean and pub get after upgrade kotlin version

Related

erron on vscode gradle

i have one error that's is impossible for me to solve, what kind of problem is this shit?
I've searched for many ways to fix this but i don't have found it nothing for this problem on vscode only for android studio, someone can help me?
enter image description here
this impossibilite me to deploy my application in a on virtual android always stop in this error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed. Check logs for details.
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
You should run
flutter run --verbose
and try to upload new image error.
I've found it whats happening man,in flutter in pub dev they gave changed the ways of splash screen it's not using the drawables anymore,we must create in lib paste the archive called Splash-Screen.dart and code all the splash screen rsrsrs but i'll appreciate your bro,and i'm very thankfull for that.

I get an error when i Run my flutter vs code

When I was doing my project I had an error when I tried to run my code on the emulator. I can't see any issues when it comes to the code, I think it is something connected with android studio and flutter. I have tried almost everything and I can't solve itThis is what I get when I try to run the code:
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\Users\Piotrek\development\sdks\flutter\bin\flutter.bat'' finished with non-zero exit value 1
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.
Get more help at https://help.gradle.org
BUILD FAILED in 27s
Exception: Gradle task assembleDebug failed with exit code 1
I would very appreciate if anyone could help me with my problem, it makes my very irritated:)
clean project by using "flutter clean" command
then "pub get"
then run your application
if still same issue ,
you maybe using some of not "Null safety" Package

after change windows and update android studio the project that I worked on it didn't run and show some errors

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:signingConfigWriterDebug'.
java.nio.file.AccessDeniedException: E:\Flutter\Flutter_Projects\news_app\build\app\intermediates\signing_config\debug\out\signing-config.json
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.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 58s
Exception: Gradle task assembleDebug failed with exit code 1
enter image description here
Someone already had a similar issue in Github. I think you can go to the link and follow the solution shown there. Let me know if it fixed the issue.
Le di en Clean Project
Build > Clean Project

FAILURE: Build failed with an exception.(FLUTTER)

Hey guys I jut wanted to debug a recent project, but when I tried it, I got an error.
This is the error:
Launching lib\main.dart on SM A202F in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> java.lang.NullPointerException (no error message)
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 18s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
I searched the internet and found that it could be related to a flutter update.
Could that be?
And what is the solution for this problem?
try:
flutter upgrade
then:
flutter run -v
It may help you.

Execution failed for task ':app:compileDebugJavaWithJavac'. flutter

my project was going great till i ran flutter clean and then tried to run my app on android,where i got this error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 20s
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
This issue will most likely occur when the dependencies of your app is not compatible with your development environment.
On the following SO posts, the best solution for this error is to update the dependencies as also mentioned in the comment above. To backup the references, you can refer to this SO post that exhibits the issues encountered:
Flutter error: Execution failed for task ':app:compileDebugJavaWithJavac'
Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio