tflite_flutter_plugin icon indicating copy to clipboard operation
tflite_flutter_plugin copied to clipboard

`tflite_flutter` not found in .pub-cache directory

Open erluxman opened this issue 2 years ago • 8 comments

As per the installation instruction, we need to locate this directory

~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-<plugin-version>/ but even after I do flutter pub get after adding the dependency to pubspec file, this directory is not generated.

I tried doing

pod install
pod install --repo-update 
flutter pub cache repair

I even tried to manually add pod 'TensorFlowLiteC', '~> 2.2.0', in Podfile But nothing seems to help.

As no one seems to have reported this issue earlier, am I missing something silly in this installation?

erluxman avatar Jul 22 '21 16:07 erluxman

Having the same issue myself. I am only using android for development as of now. Any help would be appreciated.

lively-bigyan avatar Jul 22 '21 17:07 lively-bigyan

As per the installation instruction, we need to locate this directory

~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-<plugin-version>/ but even after I do flutter pub get after adding the dependency to pubspec file, this directory is not generated.

I tried doing

pod install
pod install --repo-update 
flutter pub cache repair

I even tried to manually add pod 'TensorFlowLiteC', '~> 2.2.0', in Podfile But nothing seems to help.

As no one seems to have reported this issue earlier, am I missing something silly in this installation?

Run --> flutter pub cache add tflite_flutter --version "0.9.0"

andycancado avatar Jul 28 '21 09:07 andycancado

That also didn't work. The problem was that we were navigating to the folder from command line. ~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-<plugin-version>/ this command returns pub cache but not the one inside flutter. When I navigated to the directory path above from the flutter installation folder, tflite_flutter was there.

lively-bigyan avatar Jul 28 '21 14:07 lively-bigyan

dart pub cache add tflite_flutter --version "0.9.0"

andycancado avatar Jul 28 '21 16:07 andycancado

That also didn't work. The problem was that we were navigating to the folder from command line. ~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-<plugin-version>/ this command returns pub cache but not the one inside flutter. When I navigated to the directory path above from the flutter installation folder, tflite_flutter was there.

I also got stuck on this issue. I think it deserves an update on README.

yaizudamashii avatar Sep 01 '21 15:09 yaizudamashii

any updates about this issue? i also cant find tflite_flutter folder in that path

wahyuseven avatar Oct 16 '21 06:10 wahyuseven

i fixed it!!, so all you need is to re-instal the dart and flutter library from mac and then check again ~/.pub-cache/hosted/pub.dartlang.org/ the folder of tflite_flutter will be there as soon as you do flutter pub get on your flutter project

wahyuseven avatar Oct 16 '21 07:10 wahyuseven

dart pub cache add tflite_flutter --version "0.9.0"

This worked for me! Thanks :D

hami-sh avatar Nov 03 '21 12:11 hami-sh