erron on vscode gradle - flutter

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.

Related

i am buling an ai radio project and i got below run time errors

-----------
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 474
* What went wrong:
A problem occurred configuring project ':audioplayers_android'.
> Failed to notify project evaluation listener.
> Cannot invoke method substring() on null object
> compileSdkVersion is not specified.
* 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 14s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
i dont know what to do
I took a course about Flutter from udemy. I've come to the Firebase part. However, I am getting errors in this part. I am getting an error even though I type exactly the same. I think I got error like this because there are updates in Flutter language. I'm sorry my English is bad. Thank you in advance for helping me.

Build failed on Mac OS not in Windows Flutter

I just moved to a Mac device, and a flutter project that can run on Windows 10, but when I try to go on the Macbook,
the debug console displays an error like this, please help, thank you.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> java.net.URISyntaxException: Illegal character in opaque part at index 2: G:\\2. KoffieSoft\\Referensi\\fix\\Operasional\\mjw_operasional\\android\\app\\build\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.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 4s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
2. KoffieSoft -> This is okey for windows but problem on mac. Do not use space char on your folder names. You can use _ like 2_KoffieSoft
Thank you sir, I have found the solution. the solution I look for a file named G:\2. KoffieSoft\Reference\fix\Operational\mjw_operational\android\app\build\intermediates\flutter\debug\flutter_assets\AssetManifest.json in the android file after that I deleted the file and I flutter clean => flutter pub get => run, the error no longer appears and my project can be run on a mac,

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

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

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

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