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

-----------
* 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.

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.

TFLITE plugin is not working for emotion detection app in flutter

I'm trying to use tflite plugin to use model for emotion detection app. But there is an error showed. Any help would be greatly appreciated.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\flutter\.pub-cache\hosted\pub.dartlang.org\tflite-1.1.2\android\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating project ':tflite'.
> No signature of method: build_29ou9k6xal0pml6qvuo3exmb2.android() is applicable for argument types: (build_29ou9k6xal0pml6qvuo3exmb2$_run_closure2) values: [build_29ou9k6xal0pml6qvuo3exmb2$_run_closure2#4db06c22]
* 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 1s
Exception: Gradle task assembleDebug failed with exit code 1

Execution failed for task ':unityExport:BuildIl2CppTask'. Flutter and Unity

I'm trying to implement a basic 3D scene of Unity into a Flutter App.
I keep having this error and I have no clue what it means.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\~~~~\~~~~\FlutterProject\unityv1\android\unityExport\build.gradle'
line: 55
* What went wrong:
Execution failed for task ':unityExport:BuildIl2CppTask'.
> Process command
C:/~~~~/~~~~/FlutterProject/unityv1/android/unityExport/src/main/Il2CppOutputProject/IL2CP
P/build/deploy/netcoreapp3.1/il2cpp.exe finished with non-zero exit value 4
* 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 36s
Exception: Gradle task assembleDebug failed with exit code 1
I have the latest version of Flutter and Unity.
If you have an hint please tell me, thanks!

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