迁移到androidx后错误膨胀类androidx.constraintlayout.ConstraintLayout

迁移到androidx后错误膨胀类androidx.constraintlayout.ConstraintLayout,第1张

概述我刚刚通过AndroidStudio菜单选项Refactor迁移到androidx–>重构到AndroidX我收到以下错误:android.view.InflateException:BinaryXMLfileline#2:BinaryXMLfileline#2:Errorinflatingclassandroidx.constraintlayout.ConstraintLayout任何想法?堆栈跟踪:20

我刚刚通过Android Studio菜单选项Refactor迁移到androIDx – >重构到AndroIDX

我收到以下错误:

androID.vIEw.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androIDx.constraintlayout.ConstraintLayout

任何想法?

堆栈跟踪:

2018-10-19 00:25:58.128 28131-28131/com.mIDounoo.mIDounoo E/AndroIDRuntime: FATAL EXCEPTION: main    Process: com.mIDounoo.mIDounoo, PID: 28131    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mIDounoo.mIDounoo/com.mIDounoo.mIDounoo.Base.MainActivity}: androID.vIEw.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androIDx.constraintlayout.ConstraintLayout        at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:2724)        at androID.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789)        at androID.app.ActivityThread.-wrap12(ActivityThread.java)        at androID.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)        at androID.os.Handler.dispatchMessage(Handler.java:110)        at androID.os.Looper.loop(Looper.java:203)        at androID.app.ActivityThread.main(ActivityThread.java:6255)        at java.lang.reflect.Method.invoke(Native Method)        at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)        at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:924)     Caused by: androID.vIEw.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androIDx.constraintlayout.ConstraintLayout     Caused by: androID.vIEw.InflateException: Binary XML file line #2: Error inflating class androIDx.constraintlayout.ConstraintLayout     Caused by: java.lang.classNotFoundException: DIDn't find class "androIDx.constraintlayout.ConstraintLayout" on path: DexPathList[[zip file "/data/app/com.mIDounoo.mIDounoo-2/base.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_dependencIEs_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.mIDounoo.mIDounoo-2/split_lib_slice_9_apk.apk"],nativelibraryDirectorIEs=[/data/app/com.mIDounoo.mIDounoo-2/lib/arm64, /system/lib64, /vendor/lib64, /system/vendor/lib64]]        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)        at java.lang.classLoader.loadClass(ClassLoader.java:380)        at java.lang.classLoader.loadClass(ClassLoader.java:312)        at androID.vIEw.LayoutInflater.createVIEw(LayoutInflater.java:609)        at androID.vIEw.LayoutInflater.createVIEwFromTag(LayoutInflater.java:787)        at androID.vIEw.LayoutInflater.createVIEwFromTag(LayoutInflater.java:727)        at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:495)        at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:426)        at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:377)        at androIDx.appcompat.app.AppCompatDelegateImpl.setContentVIEw(AppCompatDelegateImpl.java:469)        at androIDx.appcompat.app.AppCompatActivity.setContentVIEw(AppCompatActivity.java:140)        at com.mIDounoo.mIDounoo.Base.MainActivity.onCreate(MainActivity.java:43)        at androID.app.Activity.performCreate(Activity.java:6666)        at androID.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)        at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:2677)        at androID.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789)        at androID.app.ActivityThread.-wrap12(ActivityThread.java)        at androID.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)        at androID.os.Handler.dispatchMessage(Handler.java:110)        at androID.os.Looper.loop(Looper.java:203)        at androID.app.ActivityThread.main(ActivityThread.java:6255)        at java.lang.reflect.Method.invoke(Native Method)        at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)

解决方法:

我通过改变所有出现的问题来解决我的问题

androIDx.constraintlayout.ConstraintLayout

androIDx.constraintlayout.Widget.ConstraintLayout

总结

以上是内存溢出为你收集整理的迁移到androidx后错误膨胀类androidx.constraintlayout.ConstraintLayout全部内容,希望文章能够帮你解决迁移到androidx后错误膨胀类androidx.constraintlayout.ConstraintLayout所遇到的程序开发问题。

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

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

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

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

发表评论

登录后才能评论

评论列表(0条)

保存