TFLITE plugin is not working for emotion detection app in flutter - 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

Related

flutter build in error does not run in android

FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\sajid\Desktop\amazon_clonee\android\app\build.gradle' line: 25
What went wrong:
A problem occurred evaluating project ':app'.
Could not get unknown property 'plugin' for project ':app' of type org.gradle.api.Project.
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 2s
Exception: Gradle task assembleDebug failed with exit code 1
Any one solve this error

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!

FAILURE: Build failed with an exception - While using flutter and tensorflow lite

I am building a dog breed recognizer using flutter and tensorflow lite. But when I try to run the app it is giving me the error shown below -
Where: Build file 'C:\Users\Harshit\StudioProjects\dogs_breed\android\app\build.gradle'
line: 28
What went wrong: A problem occurred evaluating project ':app'.
No signature of method: build_dast028lnupf053g0npys7hra.android() is applicable for argument types:
(build_dast028lnupf053g0npys7hra$_run_closure2) values:
[build_dast028lnupf053g0npys7hra$_run_closure2#582f5b39]
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 55s Exception: Gradle task assembleDebug failed
with exit code 1
This is the line 28 which is responsible for error as shown in the terminal

Flutter - audio_session - Could not load compiled classes for build file build.gradle from cache

I am trying to run my flutter project but facing this issue.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':audio_session'.
> Could not load compiled classes for build file 'C:\flutter_2.5.2\.pub-cache\hosted\pub.dartlang.org\audio_session-0.1.6+1\android\build.gradle' from cache.
* 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
I have tried deleting audio_session-0.1.6+1 from the path C:\flutter_2.5.2\.pub-cache\hosted\pub.dartlang.org\ but it didn't work. It is creating the package folder again and again when I build the APK.

gradle error in flutter while adding dependancies

* Error running Gradle:
ProcessException: Process "C:\Users\Lenovo\Music\c\android\gradlew.bat" exited abnormally:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Lenovo\Music\c\android\app\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating project ':app'.
> ASCII
* 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 3s
Command: C:\Users\Lenovo\Music\c\android\gradlew.bat app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.