-
Notifications
You must be signed in to change notification settings - Fork 41
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
App crashing and alan not waking on hey alan call #11
Comments
@Prateek0Srivastav I will take a look. Could you provide steps with your script. What command is not working? |
As of now only play and pause command work and all other command may cause app crash with above mentioned error |
@Prateek0Srivastav Is it the same issue with debug build? |
@snyuryev no this happen in the release only. |
@Prateek0Srivastav Please try to add additional params for release build type
to your build.gradle file. It should be located
As result you should have something similar to:
After that please try to run |
@Prateek0Srivastav Also updated version on plugin (3.3.0) is available. |
Fixed with previous release. |
Error
E/AndroidRuntime(15726): FATAL EXCEPTION: main
E/AndroidRuntime(15726): Process: com.example.ai_radio, PID: 15726
E/AndroidRuntime(15726): java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.alan.alansdk.events.EventParsed$ParsedEntity
E/AndroidRuntime(15726): at com.alan.alansdk.button.AlanStateListener.onParsedEvent(:1)
E/AndroidRuntime(15726): at com.alan.alansdk.d.run(:6)
E/AndroidRuntime(15726): at android.os.Handler.handleCallback(Handler.java:790)
E/AndroidRuntime(15726): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(15726): at android.os.Looper.loop(Looper.java:192)
E/AndroidRuntime(15726): at android.app.ActivityThread.main(ActivityThread.java:6711)
E/AndroidRuntime(15726): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(15726): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
E/AndroidRuntime(15726): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:826)
script
AI_Radio_First_version_20211207_105241UTC.zip
repo link - https://github.com/Prateek0Srivastav/Radio-App if needed
code -
setUpAlan() {
AlanVoice.addButton(
"key/prod",
buttonAlign: AlanVoice.BUTTON_ALIGN_RIGHT);
AlanVoice.onCommand.add((command) {
debugPrint("got new command ${command.toString()}");
_handleCommand(command.data);
});
}
_handleCommand(Map<String, dynamic> response) {
switch (response["command"]) {
case "play":
_playMusic(_selectedRadio!.url);
break;
}
The text was updated successfully, but these errors were encountered: