hello, i am trying to use the package for the first time for my flutter app and i get this problem: Invalid argument(s): Failed to lookup symbol 'td_create_client_id'
E/flutter (17575): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'td_create_client_id': undefined symbol: td_create_client_id E/flutter (17575): #0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33:70) E/flutter (17575): #1 TdNativePlugin._tdCreateClientId (package:tdlib/src/tdclient/platform_interfaces/td_native_plugin_real.dart:126:56) E/flutter (17575): #2 TdNativePlugin._tdCreateClientId (package:tdlib/src/tdclient/platform_interfaces/td_native_plugin_real.dart) E/flutter (17575): #3 TdNativePlugin.tdCreate (package:tdlib/src/tdclient/platform_interfaces/td_native_plugin_real.dart:130:21) E/flutter (17575): #4 tdCreate (package:tdlib/src/tdclient/td_client.dart:33:37) E/flutter (17575): #5 new TelegramClient (package:telegram_app/core/services/telegram_client.dart:19:17) E/flutter (17575): #6 main (package:telegram_app/main.dart:20:26)
maybe someone had it and has some suggestions?
You didn't link the project with TDLib shared library.
You didn't link the project with TDLib shared library.
I am sorry, I am a junior developer, do you mind elaborating?
If you use https://github.com/azkadev/telegram_client, then it should provide some prebuilt TDLib libraries.
Did you run flutter pub add telegram_client telegram_client_linux telegram_client_android telegram_client_ios telegram_client_macos telegram_client_windows?
Anyway, it is better to ask the question in the group https://t.me/DEVELOPER_GLOBAL_PUBLIC. which is mentioned in the documentation of https://github.com/azkadev/telegram_client.
thank you for you time and answer
If you use https://github.com/azkadev/telegram_client, then it should provide some prebuilt TDLib libraries. Did you run
flutter pub add telegram_client telegram_client_linux telegram_client_android telegram_client_ios telegram_client_macos telegram_client_windows?Anyway, it is better to ask the question in the group https://t.me/DEVELOPER_GLOBAL_PUBLIC. which is mentioned in the documentation of https://github.com/azkadev/telegram_client.
E/flutter (17575): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'td_create_client_id': undefined symbol: td_create_client_id E/flutter (17575): #0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33:70) E/flutter (17575): #1 TdNativePlugin._tdCreateClientId (package:tdlib/src/tdclient/platform_interfaces/td_native_plugin_real.dart:126:56) E/flutter (17575): #2 TdNativePlugin._tdCreateClientId (package:tdlib/src/tdclient/platform_interfaces/td_native_plugin_real.dart) E/flutter (17575): #3 TdNativePlugin.tdCreate (package:tdlib/src/tdclient/platform_interfaces/td_native_plugin_real.dart:130:21) E/flutter (17575): #4 tdCreate (package:tdlib/src/tdclient/td_client.dart:33:37) E/flutter (17575): #5 new TelegramClient (package:telegram_app/core/services/telegram_client.dart:19:17) E/flutter (17575): #6 main (package:telegram_app/main.dart:20:26)
maybe someone had it and has some suggestions?
It requires adding the tdlib library.
I've rebuilt my library. Check it out here:
https://github.com/azkadev/telegram_client
The new library is easier and doesn't require dependencies.
I'm also creating a sample application using my library.
But the code hasn't been uploaded publicly yet.
Here's the repo.
https://github.com/azkadev/tdlib_gram
I'll upload the code there later.
Sorry for the confusion.