简单地将?(🌑)符号作为android:text="🌑 crash here"
添加到TextView会导致应用在以下设备上崩溃:
检查从头开始创建的空项目。 LogCat输出:
01-29 13:07:38.009 5780-5780/c7j.net.myapplication E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
01-29 13:07:38.094 5780-5780/c7j.net.myapplication E/dalvikvm: VM aborting
01-29 13:07:38.095 5780-5780/c7j.net.myapplication A/libc: Fatal signal 6 (SIGABRT) at 0x00001694 (code=-6), thread 5780 (t.myapplication)
01-29 13:07:38.096 5780-5780/c7j.net.myapplication A/libc: Send stop signal to pid:5780 in void debuggerd_signal_handler(int, siginfo_t*, void*)
然而,在索尼XA和索尼Z2平板电脑(Android 6.0.0)上一切都很好,Unicode符号显示应该。
问题是:这是在Android 6.0之前的设备上还是某些制造商不支持?为什么我会看到Log-cat中提到的波纹抽样?
修改 最后答案是NDK中的一个错误。查看@Charuka答案了解详情和解决方法。
答案 0 :(得分:1)
嗯那种known bug似乎是一个模拟器的事情就在这里!
你给出了非常小的描述,
机器人:文本=“&安培;#127761
好像你正试图从你的视图中添加Unicode。通常你应该在那里说错误
unescaped&或非终止字符/实体引用!
这种方式适用于正确的Unicode!
textView.setText(Html.fromHtml("🌑"));
Hey Html.fromHtml()已弃用?是的,请参阅what is the alternative!
编辑:由于您的数据不够,我自己使用XML View重新创建了崩溃(确保只使用带有该Unicode的视图!)。它很好地坠毁了!
以下是完整的日志和错误说明所有:
应用程序中的JNI检测错误:输入无效修改UTF-8:调用NewStringUTF时非法启动字节0xf0 ..illegal start byte 那就是你要找的错误!
这证实了我说的话。
另外
这是你的角色> https://www.compart.com/en/unicode/U+1F311称为新月符号。 那些Unicodes用于系统表情符号。因此,根据平台,它可能会略有不同!
例如:在三星Galaxy S5中
来源:http://emojipedia.org/samsung/galaxy-s5/new-moon-symbol/
更多
JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0xf0
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] string: ''
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] in call to NewStringUTF
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] from java.lang.String android.content.res.StringBlock.nativeGetString(long, int)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x75748000 self=0xb4827800
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | sysTid=14933 nice=-11 cgrp=default sched=0/0 handle=0xb6f5abec
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | state=R schedstat=( 0 0 0 ) utm=12 stm=4 core=1 HZ=100
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | stack=0xbe4b4000-0xbe4b6000 stackSize=8MB
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #00 pc 00004dfc /system/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+23)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #01 pc 00003631 /system/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+8)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #02 pc 00256a39 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+68)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #03 pc 0023a93d /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+148)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #04 pc 000b5d07 /system/lib/libart.so (_ZN3artL8JniAbortEPKcS1_+582)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #05 pc 000b6437 /system/lib/libart.so (_ZN3art9JniAbortFEPKcS1_z+58)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #06 pc 000b8839 /system/lib/libart.so (_ZN3art11ScopedCheck5CheckEbPKcz.constprop.129+876)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #07 pc 000c10b9 /system/lib/libart.so (_ZN3art8CheckJNI12NewStringUTFEP7_JNIEnvPKc+36)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #08 pc 00090c5b /system/lib/libandroid_runtime.so (???)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: #09 pc 0026e053 /system/framework/arm/boot.oat (Java_android_content_res_StringBlock_nativeGetString__JI+102)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.content.res.StringBlock.nativeGetString(Native method)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.content.res.StringBlock.get(StringBlock.java:82)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] - locked <0x2b2c6a62> (a android.content.res.StringBlock)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.content.res.XmlBlock$Parser.getPooledString(XmlBlock.java:482)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:1003)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.content.res.TypedArray.getText(TypedArray.java:145)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.widget.TextView.<init>(TextView.java:991)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.widget.TextView.<init>(TextView.java:685)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.widget.TextView.<init>(TextView.java:681)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at java.lang.reflect.Constructor.newInstance!(Native method)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.view.LayoutInflater.createView(LayoutInflater.java:607)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] - locked <0x141f57f3> (a java.lang.Object[])
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:436)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.app.Activity.setContentView(Activity.java:2245)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at user.example.charu.its2017huree.homeActivity.onCreate(homeActivity.java:26)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.app.Activity.performCreate(Activity.java:6178)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2648)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.app.ActivityThread.access$900(ActivityThread.java:177)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.os.Handler.dispatchMessage(Handler.java:102)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.os.Looper.loop(Looper.java:135)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at android.app.ActivityThread.main(ActivityThread.java:5910)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at java.lang.reflect.Method.invoke!(Native method)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at java.lang.reflect.Method.invoke(Method.java:372)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65]
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] Runtime aborting...
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] Aborting thread:
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] "main" prio=10 tid=1 Native
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | group="" sCount=0 dsCount=0 obj=0x75748000 self=0xb4827800
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | sysTid=14933 nice=-11 cgrp=default sched=0/0 handle=0xb6f5abec
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | state=R schedstat=( 0 0 0 ) utm=16 stm=6 core=1 HZ=100
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | stack=0xbe4b4000-0xbe4b6000 stackSize=8MB
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | held mutexes= "abort lock" "mutator lock"(shared held)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #00 pc 00004dfc /system/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+23)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #01 pc 00003631 /system/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+8)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #02 pc 00256a39 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+68)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #03 pc 0023a93d /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+148)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #04 pc 0022a937 /system/lib/libart.so (_ZN3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+22)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #05 pc 0022abb3 /system/lib/libart.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+386)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #06 pc 0022ad61 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+72)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #07 pc 000ac1c5 /system/lib/libart.so (_ZN3art10LogMessageD1Ev+1312)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #08 pc 000b5eed /system/lib/libart.so (_ZN3artL8JniAbortEPKcS1_+1068)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #09 pc 000b6437 /system/lib/libart.so (_ZN3art9JniAbortFEPKcS1_z+58)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #10 pc 000b8839 /system/lib/libart.so (_ZN3art11ScopedCheck5CheckEbPKcz.constprop.129+876)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #11 pc 000c10b9 /system/lib/libart.so (_ZN3art8CheckJNI12NewStringUTFEP7_JNIEnvPKc+36)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #12 pc 00090c5b /system/lib/libandroid_runtime.so (???)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #13 pc 0026e053 /system/framework/arm/boot.oat (Java_android_content_res_StringBlock_nativeGetString__JI+102)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.StringBlock.nativeGetString(Native method)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.StringBlock.get(StringBlock.java:82)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] - locked <0x2b2c6a62> (a android.content.res.StringBlock)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.XmlBlock$Parser.getPooledString(XmlBlock.java:482)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:1003)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.TypedArray.getText(TypedArray.java:145)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.widget.TextView.<init>(TextView.java:991)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.widget.TextView.<init>(TextView.java:685)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.widget.TextView.<init>(TextView.java:681)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at java.lang.reflect.Constructor.newInstance!(Native method)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.createView(LayoutInflater.java:607)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] - locked <0x141f57f3> (a java.lang.Object[])
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:436)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.Activity.setContentView(Activity.java:2245)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at user.example.charu.its2017huree.homeActivity.onCreate(homeActivity.java:26)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.Activity.performCreate(Activity.java:6178)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2648)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread.access$900(ActivityThread.java:177)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.os.Handler.dispatchMessage(Handler.java:102)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.os.Looper.loop(Looper.java:135)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread.main(ActivityThread.java:5910)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at java.lang.reflect.Method.invoke!(Native method)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at java.lang.reflect.Method.invoke(Method.java:372)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] Dumping all threads without appropriate locks held: thread list lock mutator lock
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] All threads:
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] DALVIK THREADS (11):
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] "main" prio=10 tid=1 Native
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | group="" sCount=0 dsCount=0 obj=0x75748000 self=0xb4827800
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | sysTid=14933 nice=-11 cgrp=default sched=0/0 handle=0xb6f5abec
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | state=R schedstat=( 0 0 0 ) utm=21 stm=6 core=1 HZ=100
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | stack=0xbe4b4000-0xbe4b6000 stackSize=8MB
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] | held mutexes= "abort lock"
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #00 pc 00004dfc /system/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+23)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #01 pc 00003631 /system/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+8)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #02 pc 00256a39 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+68)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #03 pc 0023a93d /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+148)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #04 pc 00243a49 /system/lib/libart.so (_ZN3art10ThreadList10DumpLockedERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+104)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #05 pc 0022ab1f /system/lib/libart.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+238)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #06 pc 0022ad61 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+72)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #07 pc 000ac1c5 /system/lib/libart.so (_ZN3art10LogMessageD1Ev+1312)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #08 pc 000b5eed /system/lib/libart.so (_ZN3artL8JniAbortEPKcS1_+1068)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #09 pc 000b6437 /system/lib/libart.so (_ZN3art9JniAbortFEPKcS1_z+58)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #10 pc 000b8839 /system/lib/libart.so (_ZN3art11ScopedCheck5CheckEbPKcz.constprop.129+876)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #11 pc 000c10b9 /system/lib/libart.so (_ZN3art8CheckJNI12NewStringUTFEP7_JNIEnvPKc+36)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #12 pc 00090c5b /system/lib/libandroid_runtime.so (???)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] native: #13 pc 0026e053 /system/framework/arm/boot.oat (Java_android_content_res_StringBlock_nativeGetString__JI+102)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.StringBlock.nativeGetString(Native method)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.StringBlock.get(StringBlock.java:82)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] - locked <0x2b2c6a62> (a android.content.res.StringBlock)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.XmlBlock$Parser.getPooledString(XmlBlock.java:482)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:1003)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.content.res.TypedArray.getText(TypedArray.java:145)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.widget.TextView.<init>(TextView.java:991)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.widget.TextView.<init>(TextView.java:685)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.widget.TextView.<init>(TextView.java:681)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at java.lang.reflect.Constructor.newInstance!(Native method)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.createView(LayoutInflater.java:607)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] - locked <0x141f57f3> (a java.lang.Object[])
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:436)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.Activity.setContentView(Activity.java:2245)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at user.example.charu.its2017huree.homeActivity.onCreate(homeActivity.java:26)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.Activity.performCreate(Activity.java:6178)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2648)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread.access$900(ActivityThread.java:177)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.os.Handler.dispatchMessage(Handler.java:102)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.os.Looper.loop(Looper.java:135)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at android.app.ActivityThread.main(ActivityThread.java:5910)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at java.lang.reflect.Method.invoke!(Native method)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at java.lang.reflect.Method.invoke(Method.java:372)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
02-01 07:34:43.652 14933-14933/? A/art: sart/runtime/runtime.cc:293] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
答案 1 :(得分:0)
Android在xml do中有一个xml致敬 Android版: “?ATTR / selectablebackground” 背景= 有涟漪效应可能是你的追求吗?
答案 2 :(得分:0)
在字符串中尝试此定义🌑
。
<string name="unicode_str">🌑</string>
并在textview上
android:text = "@string/unicode_str"