在我的项目中更新firebase UI和firebase auth版本之后,我正在努力应对一种奇怪的行为。错误说"向类TextView"出错时出错,这里是stacktrace:
@app.route('/receiver', methods=['GET', 'POST'])
def worker():
data= request.data
print(data)
这是我的app.gradle:
02-24 16:22:15.537 20983-20983/com.nikogalla.tripbook E/AndroidRuntime:
FATAL EXCEPTION: main
Process: com.nikogalla.tripbook, PID: 20983
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nikogalla.tripbook/com.firebase.ui.auth.KickoffActivity}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class TextView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2891)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2969)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1658)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:206)
at android.app.ActivityThread.main(ActivityThread.java:6733)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:845)
Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class TextView
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class TextView
Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 6: TypedValue{t=0x2/d=0x7f040075 a=4 r=0x7f06002d}
at android.content.res.TypedArray.getColorStateList(TypedArray.java:541)
at android.widget.TextView.<init>(TextView.java:913)
at android.widget.TextView.<init>(TextView.java:827)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:76)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:72)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1016)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1073)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.AppCompatDelegateImplV9.createSubDecor(AppCompatDelegateImplV9.java:383)
at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:323)
at android.support.v7.app.AppCompatDelegateImplV9.onPostCreate(AppCompatDelegateImplV9.java:170)
at android.support.v7.app.AppCompatActivity.onPostCreate(AppCompatActivity.java:97)
at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1284)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2873)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2969)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1658)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:206)
at android.app.ActivityThread.main(ActivityThread.java:6733)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:845)
我没有混合使用firebase UI / firebase的奇怪版本,因为firebase UI的文档说我使用firebase / play服务11.8.0和firebase ui 3.2.1。关于这个奇怪问题的任何线索?谢谢!
答案 0 :(得分:0)
问题与我的主要活动有关。我无法理解为什么但是通过将FragmentActivity中的活动类型更改为AppCompatActivity,错误消失了。我也从我的gradle支持v4库中删除了