Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import tflite package #1

Closed
mrcartier opened this issue Sep 26, 2018 · 2 comments
Closed

Unable to import tflite package #1

mrcartier opened this issue Sep 26, 2018 · 2 comments

Comments

@mrcartier
Copy link

Good work, we need this for Flutter. I'm referencing the example here where the file under the lib folder is main.dart not tflite.dart. I'm having issue importing tflite package though. IntelliJ tells me: Target of URI doesn't exist: 'package:tflite/tflite.dart'. for the line

import 'package:tflite/tflite.dart';

I believe I've added tflite package properly to the pubscec.yaml file using instructions here but it still won't work...

dev_dependencies:
  flutter_test:
    sdk: flutter

  image_picker: ^0.4.10
  tflite: ^0.0.2

any ideas why I can't import

@shaqian
Copy link
Owner

shaqian commented Sep 27, 2018

Hi mrcartier,

I tested with Android Studio and vscode and importing seems to be working.

Do you see an entry like below in the .flutter-plugin file? It points to the directory where the plugin lib files are stored.
tflite=/Users/sha/flutter/.pub-cache/hosted/pub.dartlang.org/tflite-0.0.2/

Thanks,
Qian

@mrcartier
Copy link
Author

It was my fault. I named the project folder tflite and you can't name the project folder after a dependency. Thanks for feedback & getting tflow on Flutter.

shaqian pushed a commit that referenced this issue Apr 22, 2020
add isAsett param to ios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants