首页 / 浏览问题 / 移动GIS / 问题详情
android studio调用导航例程报错
14EXP 2022年07月14日
我是放到fragment里面,不知道怎么继承activity,版本是28了

android.view.InflateException: Binary XML file line #20 in com.example.map3:bool/abc_action_bar_embed_tabs: Binary XML file line #20 in com.example.map3:bool/abc_action_bar_embed_tabs: Error inflating class ImageView
    Caused by: android.view.InflateException: Binary XML file line #20 in com.example.map3:bool/abc_action_bar_embed_tabs: Error inflating class ImageView
    Caused by: android.content.res.Resources$NotFoundException: Drawable com.example.map3:attr/behavior_autoHide with resource ID #0x7f03004e
    Caused by: android.content.res.Resources$NotFoundException: Resource "com.example.map3:attr/behavior_autoHide" (7f03004e) is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f03004e a=10 r=0x7f03004e}

1个回答

您好,错误信息提示布局有错,注意下子窗口初始化使用的父容器,不能为null
3,405EXP 2022年07月14日
要不我发给你,你帮我看看?我没用到父容器呢
您这边可以看下我的navidemo的工程

链接:https://pan.baidu.com/s/1RekTGY9D2w6UifkWsrj4QQ
提取码:8754
 

数据地址链接:https://pan.baidu.com/s/1g_ACIdUWn9Ic1T21KPcumA
提取码:8754
...