-
Notifications
You must be signed in to change notification settings - Fork 503
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
Flutter Demo Failed To Use Porcupine Method #695
Comments
Thanks for the report, @erdemarpaci. Were you running the demo on an Android or iOS device? |
I am running on an Android 11. |
I just updated the demo with the latest packages. It includes the updated pubspec file. Can you try again and if it doesn't work, can you tell us the flutter version and dart version you are using? |
First of all thanks for the help. I'm still getting the same error, the information you want is as follows:
Edit: It works on android emulator. |
I tried reproducing the issue with the same configurations but I cannot get the same error. Based on the error, I can only think of an outdated packaged causing the issue. For now I can give you some suggestions to try. Build and run a clean install. Make sure to remove the demo app in your device and run:
Try running on release mode: Upgrade flutter to latest stable version: If all this fails, can you also give us your android sdk build tools version and android sdk platform tools version? |
It works with flutter version v2.10.4. Thanks a lot. |
Same issue in flutter version 3.7. |
Same issue in flutter version 3.16.4 Doctor summary (to see all details, run flutter doctor -v): and my code is: _porcupineManager = await PorcupineManager.fromBuiltInKeywords( |
Reopening as it seems to be an ongoing issue. We'll look into it. |
I cannot reproduce this issue in our demo project. @mdags or @ali-tunahan - could you let me know if you are seeing this issue in our demo or only in your own projects? |
It could be a locale issue with a function call in our SDK - can one of you also confirm your locale (in Java -> |
Thank you for the locale information. Apparently the SDK only works when the device language is English or supported languages. I get this error when I change the emulator language to Turkish. After seeing your answer, I changed the emulator language to English and it worked. Could you make any improvements on this issue? |
@mdags - we've identified the issue and are working on a fix. Thank you for the report. |
We have fixed the issue, released new version of flutter SDK and updated the demo: #1203. |
I am trying to run the Flutter demo on my device, but when I chose a keyword it returns an error: "Porcupine method 'from_builtin_keywords' is not a valid function".
I found that this line returns the error:
_porcupineManager = await PorcupineManager.fromBuiltInKeywords( accessKey, [builtIn], wakeWordCallback, errorCallback: errorCallback);
Moreover, I can view the mentioned function in the porcupine_manager.dart file.I would be very grateful if you could help with this problem.
The text was updated successfully, but these errors were encountered: