• Error inflating class com.baidu.mapapi.map.MapView


    MapView 引起手机卡顿,黑屏,并且会报如下错误信息:

    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.soft.he/com.software.sign.ui.activity.MatchDetailActivity}: android.view.InflateException: Binary XML file line #1123 in com.soft.he:layout/activity_matevent_detail: Binary XML file line #1123 in com.soft.he:layout/activity_matevent_detail: Error inflating class com.baidu.mapapi.map.MapView
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3763)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3937)
            at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
            at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
            at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2288)
            at android.os.Handler.dispatchMessage(Handler.java:106)
            at android.os.Looper.loopOnce(Looper.java:210)
            at android.os.Looper.loop(Looper.java:299)
            at android.app.ActivityThread.main(ActivityThread.java:8293)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
         Caused by: android.view.InflateException: Binary XML file line #1123 in com.soft.he:layout/activity_matevent_detail: Binary XML file line #1123 in com.soft.he:layout/activity_matevent_detail: Error inflating class com.baidu.mapapi.map.MapView
         Caused by: android.view.InflateException: Binary XML file line #1123 in com.soft.he:layout/activity_matevent_detail: Error inflating class com.baidu.mapapi.map.MapView
         Caused by: java.lang.reflect.InvocationTargetException
            at java.lang.reflect.Constructor.newInstance0(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
            at android.view.LayoutInflater.createView(LayoutInflater.java:881)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1033)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:988)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:1150)
            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1111)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:1153)
            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1111)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:1153)
           

  • 相关阅读:
    Elasticsearch 出现 “429 rejected” 报错,怎么办?
    【洛谷 P1012】[NOIP1998 提高组] 拼数 题解(贪心算法+字典序排序)
    golang gin自定义数据校验器:github.com/go-playground/validator/v10
    机器人十大前沿热点领域(2022-2023)
    Zuul、Gateway、nginx的区别
    车载电子电器防水防尘等级介绍
    75. 颜色分类(中等 数组 双指针 排序)
    算法进修Day-34
    有效沟通是情绪管理
    工业4.0的安全挑战与解决方案
  • 原文地址:https://blog.csdn.net/aidezhanxian/article/details/127585348