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)