gpt4 book ai didi

android - Twilio Client Android v1.2.8 在客户端设备进行调用并且未自动调用 ConnectionListener 的 onDisconnected 方法时崩溃

转载 作者:太空宇宙 更新时间:2023-11-03 11:05:40 26 4
gpt4 key购买 nike

我正在 Android Studio 中构建 Twilio Client Android v1.2.8 的 BasicPhone 示例应用程序。我在 Android 6.0 和 Android 4.0.4 客户端测试了这个应用程序。当我在应用程序中按下“CALL”按钮时,Logcat 经常跟踪以下错误并导致应用程序崩溃。

12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: 

art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0xff
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] string: '192.168.10.113��'
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] in call to NewStringUTF
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] from void com.twilio.client.impl.useragent.Call.makeCall(com.twilio.client.impl.session.Account, java.lang.String, com.twilio.client.impl.useragent.MessageData)
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] "Thread-3151" prio=5 tid=18 Runnable
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] | group="main" sCount=0 dsCount=0 obj=0x12d64ee0 self=0xf3c03400
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] | sysTid=1057 nice=0 cgrp=default sched=0/0 handle=0xe070f930
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] | state=R schedstat=( 41721822 17490781 146 ) utm=1 stm=3 core=4 HZ=100
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] | stack=0xe060d000-0xe060f000 stackSize=1038KB
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] | held mutexes= "mutator lock"(shared held)
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #00 pc 0035a217 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::ArtMethod*, void*)+126)
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #01 pc 0033b03b /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+138)
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #02 pc 0024df6b /system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+750)
12-10 01:37:51.821 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #03 pc 0024e60f /system/lib/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+54)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #04 pc 000fbbfd /system/lib/libart.so (art::ScopedCheck::AbortF(char const*, ...)+28)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #05 pc 001015c7 /system/lib/libart.so (art::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::JniValueType*) (.constprop.95)+7906)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #06 pc 0010814b /system/lib/libart.so (art::CheckJNI::NewStringUTF(_JNIEnv*, char const*)+366)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #07 pc 00046b97 /data/app/com.twilio.example.basicphone-2/lib/arm/libtwilio-native.so (???)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #08 pc 00046be3 /data/app/com.twilio.example.basicphone-2/lib/arm/libtwilio-native.so (???)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #09 pc 00058781 /data/app/com.twilio.example.basicphone-2/lib/arm/libtwilio-native.so (???)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #10 pc 0004fc8f /data/app/com.twilio.example.basicphone-2/lib/arm/libtwilio-native.so (???)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #11 pc 0005010b /data/app/com.twilio.example.basicphone-2/lib/arm/libtwilio-native.so (???)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #12 pc 00045897 /data/app/com.twilio.example.basicphone-2/lib/arm/libtwilio-native.so (Java_com_twilio_client_impl_useragent_Call_makeCall+138)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #13 pc 000225dd /data/app/com.twilio.example.basicphone-2/oat/arm/base.odex (void com.twilio.client.impl.useragent.Call.makeCall(com.twilio.client.impl.session.Account, java.lang.String, com.twilio.client.impl.useragent.MessageData)+144)
12-10 01:37:51.822 997-1057/com.twilio.example.basicphone A/art: art/runtime/java_vm_ext.cc:410] native: #14 pc 00021997 /data/app/com.twilio.example.basicphone-2/oat/arm/base.odex (void com.twilio.client.impl.useragent.Call.<init>(com.twilio.client.impl.session.Account, java.lang.String, java.lang.Object, com.twilio.client.impl.useragent.MessageData)+178)
.
.
.

并且,我调用 Inbound 客户端,Inbound 客户端显示 AlertDialog 进行响应,然后我在 Outbound 客户端中按下“进行中”按钮以断开连接,但是 BasicPhone.java 中 ConnectionListener 的 onDisconnected 方法不会从 Twilio Client Android 自动调用v1.2.7.

我还在 Twilio Client Android v1.2.6 中测试了 BasicPhone Sample 应用程序,我没有遇到上述问题。

有谁知道如何解决上述问题,或者这些问题是库中的错误吗?

最佳答案

我通过更新 twilio android sdk 解决了这个问题。谢谢大家。

关于android - Twilio Client Android v1.2.8 在客户端设备进行调用并且未自动调用 ConnectionListener 的 onDisconnected 方法时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34185887/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com