android– 点击运行5.1.1的Oppo F1S中的TextInputLayout崩溃

android– 点击运行5.1.1的Oppo F1S中的TextInputLayout崩溃,第1张

概述单击TextInputLayout后,应用程序在运行5.1.1的OppoF1S中延迟1秒后崩溃.我无法使用设备拳头我遇到崩溃报告的崩溃,然后我让我的远程朋友在他们的oppo手机上试试.我无法找出原因,而且由于我无法访问该设备,我发现它非常难以解决问题.它在其他设备上运行良好,甚至在运行8.1.0的oppo

单击TextinputLayout后,应用程序在运行5.1.1的Oppo F1S中延迟1秒后崩溃.我无法使用设备拳头我遇到崩溃报告的崩溃,然后我让我的远程朋友在他们的oppo手机上试试.

我无法找出原因,而且由于我无法访问该设备,我发现它非常难以解决问题.

它在其他设备上运行良好,甚至在运行8.1.0的oppoF7中运行良好

这是我的XML

   <androID.support.design.Widget.TextinputLayout            androID:ID="@+ID/til_email"            androID:layout_wIDth="match_parent"            androID:layout_height="wrap_content"            androID:layout_marginEnd="24dp"            androID:layout_marginStart="24dp"            androID:layout_margintop="32dp"            androID:theme="@style/TextLabel"            app:hintTextAppearance="@style/TextAppearance.App.TextinputLayout"            app:layout_constraintEnd_toEndOf="parent"            app:layout_constraintHorizontal_bias="1.0"            app:layout_constraintStart_toStartOf="parent"            app:layout_constrainttop_toBottomOf="@+ID/textVIEw53">            <androID.support.v7.Widget.AppCompatEditText                androID:ID="@+ID/et_email"                androID:layout_wIDth="match_parent"                androID:layout_height="match_parent"                androID:background="#00000000"                androID:drawablepadding="10dp"                androID:hint="Email"                androID:inputType="textEmailAddress"                androID:onTextChanged="@{(text, start, before, count) -> activity.onEmailChanged(text)}"                androID:paddingtop="10dp"                app:backgroundTint="@color/black" />        </androID.support.design.Widget.TextinputLayout>

这是styles.xml

<!--input fIEld style-->    <style name="MyEditText" parent="theme.AppCompat.light">        <item name="colorControlnormal">@color/black</item>        <item name="colorControlActivated">@color/black</item>        <item name="androID:textcolorHint">@color/greish</item>        <item name="androID:textSize">14sp</item>        <item name="colorAccent">@color/black</item>    </style>    <style name="ErrorText" parent="TextAppearance.AppCompat">        <item name="androID:textStyle">bold|italic</item>        <item name="androID:textcolor">@color/colorPrimary</item>    </style>    <style name="TextLabel" parent="TextAppearance.AppCompat"> <style name="TextAppearance.App.TextinputLayout" parent="@androID:style/TextAppearance">        <item name="androID:textcolor">@color/greish</item>        <item name="androID:textSize">12sp</item>    </style>

Stacktrace 1

Fatal Exception: androID.vIEw.InflateException: Binary XML file line #42: Error inflating class TextVIEw   at androID.vIEw.LayoutInflater.createVIEwFromTag(LayoutInflater.java:763)   at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:806)   at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:809)   at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:809)   at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:504)   at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:414)   at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:365)   at androID.Widget.OppoCursorController$floatPanelVIEwController.<init>(OppoCursorController.java:1585)   at androID.Widget.OppoCursorController.createfloatPanelVIEwController(OppoCursorController.java:134)   at androID.Widget.OppoCursorController$SelectionModifIErCursorController.<init>(OppoCursorController.java:518)   at androID.Widget.OppoCursorController.create(OppoCursorController.java:81)   at androID.Widget.OppoEditor.getoppoSelectionController(OppoEditor.java:417)   at androID.Widget.OppoEditor.ontouchEventWrap(OppoEditor.java:322)   at androID.Widget.TextVIEw.ontouchEvent(TextVIEw.java:8189)   at androID.vIEw.VIEw.dispatchtouchEvent(VIEw.java:8472)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at com.androID.internal.policy.impl.PhoneWindow$DecorVIEw.superdispatchtouchEvent(PhoneWindow.java:2440)   at com.androID.internal.policy.impl.PhoneWindow.superdispatchtouchEvent(PhoneWindow.java:1748)   at androID.app.Activity.dispatchtouchEvent(Activity.java:2840)   at androID.support.v7.vIEw.WindowCallbackWrapper.dispatchtouchEvent(WindowCallbackWrapper.java:68)   at com.androID.internal.policy.impl.PhoneWindow$DecorVIEw.dispatchtouchEvent(PhoneWindow.java:2379)   at androID.vIEw.VIEw.dispatchPointerEvent(VIEw.java:8667)   at androID.vIEw.VIEwRootImpl$VIEwPostImeinputStage.processpointerEvent(VIEwRootImpl.java:4446)   at androID.vIEw.VIEwRootImpl$VIEwPostImeinputStage.onProcess(VIEwRootImpl.java:4234)   at androID.vIEw.VIEwRootImpl$inputStage.deliver(VIEwRootImpl.java:3767)   at androID.vIEw.VIEwRootImpl$inputStage.onDeliverToNext(VIEwRootImpl.java:3830)   at androID.vIEw.VIEwRootImpl$inputStage.forward(VIEwRootImpl.java:3786)   at androID.vIEw.VIEwRootImpl$AsyncinputStage.forward(VIEwRootImpl.java:3913)   at androID.vIEw.VIEwRootImpl$inputStage.apply(VIEwRootImpl.java:3794)   at androID.vIEw.VIEwRootImpl$AsyncinputStage.apply(VIEwRootImpl.java:3970)   at androID.vIEw.VIEwRootImpl$inputStage.deliver(VIEwRootImpl.java:3767)   at androID.vIEw.VIEwRootImpl$inputStage.onDeliverToNext(VIEwRootImpl.java:3830)   at androID.vIEw.VIEwRootImpl$inputStage.forward(VIEwRootImpl.java:3786)   at androID.vIEw.VIEwRootImpl$inputStage.apply(VIEwRootImpl.java:3794)   at androID.vIEw.VIEwRootImpl$inputStage.deliver(VIEwRootImpl.java:3767)   at androID.vIEw.VIEwRootImpl.deliverinputEvent(VIEwRootImpl.java:6165)   at androID.vIEw.VIEwRootImpl.doProcessinputEvents(VIEwRootImpl.java:6139)   at androID.vIEw.VIEwRootImpl.enqueueinputEvent(VIEwRootImpl.java:6110)   at androID.vIEw.VIEwRootImpl$WindowinputEventReceiver.oninputEvent(VIEwRootImpl.java:6255)   at androID.vIEw.inputEventReceiver.dispatchinputEvent(inputEventReceiver.java:218)   at androID.os.MessageQueue.nativePollOnce(MessageQueue.java)   at androID.os.MessageQueue.next(MessageQueue.java:150)   at androID.os.Looper.loop(Looper.java:139)   at androID.app.ActivityThread.main(ActivityThread.java:5541)   at java.lang.reflect.Method.invoke(Method.java)   at java.lang.reflect.Method.invoke(Method.java:372)   at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)   at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:759)

Stacktrace 2:

Caused by java.lang.RuntimeException: Failed to resolve attribute at index 24   at androID.content.res.TypedArray.getcolor(TypedArray.java:401)   at androID.Widget.TextVIEw.<init>(TextVIEw.java:709)   at androID.Widget.TextVIEw.<init>(TextVIEw.java:645)   at androID.support.v7.Widget.AppCompatTextVIEw.<init>(AppCompatTextVIEw.java:75)   at androID.support.v7.Widget.AppCompatTextVIEw.<init>(AppCompatTextVIEw.java:71)   at androID.support.v7.app.AppCompatVIEwInflater.createVIEw(AppCompatVIEwInflater.java:103)   at androID.support.v7.app.AppCompatDelegateImplV9.createVIEw(AppCompatDelegateImplV9.java:1024)   at androID.support.v7.app.AppCompatDelegateImplV9.onCreateVIEw(AppCompatDelegateImplV9.java:1081)   at androID.vIEw.LayoutInflater.createVIEwFromTag(LayoutInflater.java:725)   at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:806)   at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:809)   at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:809)   at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:504)   at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:414)   at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:365)   at androID.Widget.OppoCursorController$floatPanelVIEwController.<init>(OppoCursorController.java:1585)   at androID.Widget.OppoCursorController.createfloatPanelVIEwController(OppoCursorController.java:134)   at androID.Widget.OppoCursorController$SelectionModifIErCursorController.<init>(OppoCursorController.java:518)   at androID.Widget.OppoCursorController.create(OppoCursorController.java:81)   at androID.Widget.OppoEditor.getoppoSelectionController(OppoEditor.java:417)   at androID.Widget.OppoEditor.ontouchEventWrap(OppoEditor.java:322)   at androID.Widget.TextVIEw.ontouchEvent(TextVIEw.java:8189)   at androID.vIEw.VIEw.dispatchtouchEvent(VIEw.java:8472)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at androID.vIEw.VIEwGroup.dispatchtransformedtouchEvent(VIEwGroup.java:2417)   at androID.vIEw.VIEwGroup.dispatchtouchEvent(VIEwGroup.java:2050)   at com.androID.internal.policy.impl.PhoneWindow$DecorVIEw.superdispatchtouchEvent(PhoneWindow.java:2440)   at com.androID.internal.policy.impl.PhoneWindow.superdispatchtouchEvent(PhoneWindow.java:1748)   at androID.app.Activity.dispatchtouchEvent(Activity.java:2840)   at androID.support.v7.vIEw.WindowCallbackWrapper.dispatchtouchEvent(WindowCallbackWrapper.java:68)   at com.androID.internal.policy.impl.PhoneWindow$DecorVIEw.dispatchtouchEvent(PhoneWindow.java:2379)   at androID.vIEw.VIEw.dispatchPointerEvent(VIEw.java:8667)   at androID.vIEw.VIEwRootImpl$VIEwPostImeinputStage.processpointerEvent(VIEwRootImpl.java:4446)   at androID.vIEw.VIEwRootImpl$VIEwPostImeinputStage.onProcess(VIEwRootImpl.java:4234)   at androID.vIEw.VIEwRootImpl$inputStage.deliver(VIEwRootImpl.java:3767)   at androID.vIEw.VIEwRootImpl$inputStage.onDeliverToNext(VIEwRootImpl.java:3830)   at androID.vIEw.VIEwRootImpl$inputStage.forward(VIEwRootImpl.java:3786)   at androID.vIEw.VIEwRootImpl$AsyncinputStage.forward(VIEwRootImpl.java:3913)   at androID.vIEw.VIEwRootImpl$inputStage.apply(VIEwRootImpl.java:3794)   at androID.vIEw.VIEwRootImpl$AsyncinputStage.apply(VIEwRootImpl.java:3970)   at androID.vIEw.VIEwRootImpl$inputStage.deliver(VIEwRootImpl.java:3767)   at androID.vIEw.VIEwRootImpl$inputStage.onDeliverToNext(VIEwRootImpl.java:3830)   at androID.vIEw.VIEwRootImpl$inputStage.forward(VIEwRootImpl.java:3786)   at androID.vIEw.VIEwRootImpl$inputStage.apply(VIEwRootImpl.java:3794)   at androID.vIEw.VIEwRootImpl$inputStage.deliver(VIEwRootImpl.java:3767)   at androID.vIEw.VIEwRootImpl.deliverinputEvent(VIEwRootImpl.java:6165)   at androID.vIEw.VIEwRootImpl.doProcessinputEvents(VIEwRootImpl.java:6139)   at androID.vIEw.VIEwRootImpl.enqueueinputEvent(VIEwRootImpl.java:6110)   at androID.vIEw.VIEwRootImpl$WindowinputEventReceiver.oninputEvent(VIEwRootImpl.java:6255)   at androID.vIEw.inputEventReceiver.dispatchinputEvent(inputEventReceiver.java:218)   at androID.os.MessageQueue.nativePollOnce(MessageQueue.java)   at androID.os.MessageQueue.next(MessageQueue.java:150)   at androID.os.Looper.loop(Looper.java:139)   at androID.app.ActivityThread.main(ActivityThread.java:5541)   at java.lang.reflect.Method.invoke(Method.java)   at java.lang.reflect.Method.invoke(Method.java:372)   at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)   at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:759)

任何想法可能是什么问题? (我无法访问该设备,我从crashlytics获得了stacktrace)

任何帮助将不胜感激.

解决方法:

使用androID.support.v7.Widget.AppCompatEditText而不是使用Edittext并且不使用androID:onclick属性,它将在lolipop设备上崩溃.

总结

以上是内存溢出为你收集整理的android – 点击运行5.1.1的Oppo F1S中的TextInputLayout崩溃全部内容,希望文章能够帮你解决android – 点击运行5.1.1的Oppo F1S中的TextInputLayout崩溃所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1104861.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存