U
S
siham_rouaki

The plugin tflite uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of 

Running Gradle task 'assembleRelease'...

Warning: The plugin flutter_plugin_android_lifecycle requires Android SDK version 34.

For more information about build configuration, see https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.

Warning: The plugin image_picker_android requires Android SDK version 34.

For more information about build configuration, see https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.

One or more plugins require a higher Android SDK version.

Fix this issue by adding the following to /app/android/app/build.gradle:
android {
  compileSdkVersion 34
  ...

}

FAILURE: Build failed with an exception.

* Where:
Build file '/var/workspace/.pub-cache/hosted/pub.dev/tflite-1.1.2/android/build.gradle' line: 36

* What went wrong:
A problem occurred evaluating project ':tflite'.

> Could not find method compile() for arguments [org.tensorflow:tensorflow-lite:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* 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 15s

Running Gradle task 'assembleRelease'...

15.8s

Gradle task assembleRelease failed with exit code 1

Process finished with exit code 1

 🏁 Build finished at Thursday, April 11th 2024, 6:15:40PM +00:00 🏁 

 ❌ Build failed. Check the logs above

 

#faq #flutlab_faq #i_need_help::

show more

1
1
U