I've used tflite package about one year ago and then it gone deprecated because of lack of android V2 embedding, then I used tfltie_flutter package but now its also seems deprecated giving error,
The plugin `tflite_flutter` uses a deprecated version of the Android embedding.
Is there anything I can do to solve this issue?
I've tried to follow the documentation to migrate project to android v2 embedding but couldn't find mentioned files in the plugin's folder (the documentation must be for projects not packages).
If there's nothing I can do with this package using latest flutter sdk, suggest me one for using tflite model image classification
Related
I have a tensorflow lite ML model that I'd like to use in a flutter application.
One of my first options was to test plugins available on pub dev. Unfortunately, I was unable to find one that is still working in 2023.
Both of the major two plugins appear to have been abandoned. tflite_flutter and tflite
- Is there an official flutter package available for this use case?
- Or are there any other options for integrating Tensorflow models into a Flutter app?
C:/src/flutter/packages/flutter/lib/src/material/elevated_button.dart:67:14: Error: The 'super-parameters' language feature is disabled for this library.
Try removing the package language version or setting the language version to 2.17 or higher.
[enter image description here](https://i.stack.imgur.com/VM10I.png)
I suspect that the problem appeared after Android Studio updated to Dolphin version
There's something weird going on here. You've likely got two versions of the Dart SDK installed (a >= 2.17 SDK through Flutter, one < 2.17 standalone) with the older version on your PATH. The Flutter SDK ships with its own Dart SDK and should only be using language features that are supported by the SDK shipped with it, so you should never seen this error normally.
Make sure you don't have two SDKs installed, or at least make sure that the SDK that's shipped with Flutter is first on your path.
I am a beginner at flutter and i have project which contains a deep learning model so I used tflite package to integrate the dl model's tflite version with flutter app. But when I install tflite plugin it shows an error like this.
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 Flutter will remove these
deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2
embedding:
After that, I also searched about this problem and followed the flutter official link's instructions but still, it's not working so, If you had any solution about that then tell about that.
I installed flutter by downloading and installing a release version.
It contains a partial dart SDK in its cache subfolder.
Namely, it's missing (amongst others executables) dart2native.
I realize I could just download and install a separate dart SDK from their website, then change all my paths to point to this newer, complete SDK. But that's exactly the problem - I do not wish to run 2 sdk version in parallel, it's confusing and likely will cause errors down the line (for example, my copy of android studio might be pointing at this or that SDK, and god knows what other tools might point towards it).
Question: is there a way to 'fill' my flutter dart SDK with the missing tools? Or am i doomed to run 2 version of dart SDK in parallel?
Answering my own question - after much googling, I found a repo maintainer stating that "For now, if you want to do to Dart development and use the Dart terminal commands (like dartfmt, pub, or dart2native), it's recommended that you download and install the Dart SDK. If you'd like you can also add it to path."
This is clearly sub-optimal. In fact just as I expected it seems to have led to a few people having faced issues, comment on https://github.com/flutter/flutter/issues/43968 if you'd like to see this addressed.
I am trying to build and run an android project using the phonegap framework.
I have configured the IDE and followed the steps described in an official tutorial (see link above).
The problem is that I never had a chance to build the project since it contains errors. The major one is (see screenshots):
Archive for required library: 'C:/Program Files/Android/android-sdk/platforms/android-8/android.jar' in project 'xxx' cannot be read or is not a valid ZIP file
Also, I have tried to manually run the aforementioned android.jar but got the same error:
The problem keeps reproducing through several SDK versions: r14, r15.
BTW, I experience no troubles building a project using other android versions, e.g., 2.3.
Would someone help me out? Thanks!
Use the Android package manager to remove and then re-download the Android 2.2 SDK as something is corrupt with that package.