Open dia1128 opened 3 years ago
I'll check these versions in my application. Thank you! Just a last request, could you possibly upload your code on github? It would be easy to compare from there on :)
On Thu, Apr 13, 2023 at 7:34 PM Daniel @.***> wrote:
It has been a year since i last started my application, however you have different version. I can send you mine pubspec.yaml to compare and try, otherwise this is a too much inside problem of your application and im not sure how can i help you. Without running application before me im armless.
name: cooky description: A new Flutter project.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment: sdk: ">=2.11.0 <3.0.0" #sdk: ">=2.11.0 <3.0.0" ">=2.12.0 <3.0.0"
dependencies: flutter: sdk: flutter tflite: path: ./my_new_package
cupertino_icons: ^1.0.2
tflite: ^1.1.2
image_picker: ^0.8.4+2 get_it: "7.2.0" file_picker: "4.0.1" firebase_core: ^1.6.0 firebase_auth: ^3.2.0 provider: ^6.0.1 cloud_firestore: ^3.1.5 http: ^0.13.4 get: ^4.5.1 tflite_flutter: ^0.9.0 path_provider: ^2.0.9 path: ^1.8.0 camera: ^0.9.4+16 #camera: ^0.8.1+3 image_cropper: ^1.4.1 tflite_flutter_helper: ^0.3.0 #tflite_flutter_helper: ^0.3.1 firebase_storage: "10.0.3" flutter_spinkit: "5.1.0" timeago: "3.1.0" permission_handler: flutter_keyboard_visibility: "5.0.3"
dependency_overrides: firebase_messaging_platform_interface: 3.1.6 firebase_crashlytics_platform_interface: 3.1.13 cloud_firestore_platform_interface: 5.4.13 firebase_auth_platform_interface: 6.1.11 firebase_storage_platform_interface: 4.0.14 cloud_functions_platform_interface: 5.0.21 firebase_analytics_platform_interface: 3.0.5 firebase_remote_config_platform_interface: 1.0.5 firebase_dynamic_links_platform_interface: 0.2.0+5 firebase_performance_platform_interface: 0.1.0+5 firebase_app_installations_platform_interface: 0.1.0+6
dev_dependencies: flutter_test: sdk: flutter
flutter_lints: ^1.0.0 flutter_svg: ^0.23.0+1
flutter: uses-material-design: true assets:
importuje se mi vse z te slozky, bez nutnosti to vypisovat
- assets/images/
- assets/icons/
- assets/recognization/
- detect.tflite
- labelmap.txt
čt 13. 4. 2023 v 15:51 odesílatel Ishaan Phaye @.***> napsal:
Hi, sadly no. The imported plugins in the main app are: async 2.10.0 (2.11.0 available) camera 0.5.7+4 (0.10.4 available) characters 1.2.1 (1.3.0 available) collection 1.17.0 (1.17.1 available) cupertino_icons 0.1.3 (1.0.5 available) js 0.6.5 (0.6.7 available) matcher 0.12.13 (0.12.15 available) material_color_utilities 0.2.0 (0.3.0 available) meta 1.8.0 (1.9.1 available) path 1.8.2 (1.8.3 available) source_span 1.9.1 (1.10.0 available) test_api 0.4.16 (0.5.1 available) The imported plugins in tflite package are: async 2.10.0 (2.11.0 available) characters 1.2.1 (1.3.0 available) collection 1.17.0 (1.17.1 available) js 0.6.5 (0.6.7 available) matcher 0.12.13 (0.12.15 available) material_color_utilities 0.2.0 (0.3.0 available) meta 1.8.0 (1.9.1 available) path 1.8.2 (1.8.3 available) source_span 1.9.1 (1.10.0 available) test 1.22.0 (1.24.1 available) test_api 0.4.16 (0.5.1 available) test_core 0.4.20 (0.5.1 available) vm_service 9.4.0 (11.3.0 available) I haven't upgraded any, when I do they throw a series of errors.
On Thu, Apr 13, 2023 at 4:23 PM Daniel @.***> wrote:
Hi, did you figured it out? If not, can you please send me list of your imported plugins with versions? Thanks.
út 11. 4. 2023 v 12:13 odesílatel Ishaan Phaye @.***> napsal:
I did everything as you asked. I even migrated the app to the v2 embedding by following the instructions in '
https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
'. Also, when i build the flutter app it says build successful, but the app crashes with the error message: 1: C:\App Dev\Flutter.pub-cache\hosted\pub.dartlang.org
\camera-0.5.7+4\android\src\main\java\io\flutter\plugins\camera\CameraPlugin.java
uses or overrides a deprecated API. 2: Recompile with -Xlint:deprecation for details. 3: C:\Users\ishaan
phaye\Downloads\Compressed\flutter_realtime_detection-master\flutter_realtime_detection-master\lib\tflite_plugin\android\src\main\java\sq\flutter\tflite\TflitePlugin.java
uses unchecked or unsafe operations. 4: Recompile with -Xlint:unchecked for details. However, when i change the compileSdkVersion in the build.gradle file from 29 to 33, the 3rd error goes away, but 1st error still persists. Please help in this regard.
— Reply to this email directly, view it on GitHub <
https://github.com/shaqian/flutter_tflite/issues/224#issuecomment-1503049615
, or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AOLPK7PXM6KD5ZEZREGQLX3XAUVFRANCNFSM5EGBHJSA
. You are receiving this because you were mentioned.Message ID: @.***>
-- S pozdravem / Best Regards Daniel Senčišin
— Reply to this email directly, view it on GitHub <
https://github.com/shaqian/flutter_tflite/issues/224#issuecomment-1506755887
, or unsubscribe <
https://github.com/notifications/unsubscribe-auth/ASBHWCPLMYV4KVPSYKXAMKTXA7LI5ANCNFSM5EGBHJSA
. You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub < https://github.com/shaqian/flutter_tflite/issues/224#issuecomment-1507000206 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOLPK7OBOMREDMCTSAUL363XBAAFLANCNFSM5EGBHJSA
. You are receiving this because you were mentioned.Message ID: @.***>
-- S pozdravem / Best Regards Daniel Senčišin
— Reply to this email directly, view it on GitHub https://github.com/shaqian/flutter_tflite/issues/224#issuecomment-1507030914, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASBHWCL3ZYTAP7QQLNVYSKDXBABX7ANCNFSM5EGBHJSA . You are receiving this because you commented.Message ID: @.***>
Can anyone help.
I am also facing this.
solution! After spending hours troubleshooting, I finally found a solution that works! To fix the dependencies issue, you need to add these two lines in your pubspec.yaml file under dependencies:
tflite_flutter: ^0.10.1 tflite_v2: ^1.0.0
Then click 'get packages'. Finally, don't forget to import 'package:tflite_v2/tflite_v2.dart' in your Dart file.
Adding those flutter packages and the import statement resolved the problem for me. Hopefully this saves you some time and helps get your app running! Let me know if you have any other questions.
All of my old projects where I used tflite is not working. I am using tflite_flutter 0.9.0. Which is working good so far. This repository --> https://github.com/am15h/tflite_flutter_plugin helped a lot. If anyone was able to use tflite, please let us know!
yes I did
I am following the official documents to install tflite. The version I am using is, tflite: 1.0.4. Please help me with this issue.