首页 / 浏览问题 / 移动GIS / 问题详情
fragment中使用行业导航
9EXP 2021年07月08日

您好,麻烦问下可以在fragment中使用行业导航吗?

在运行到下面语句时,开始报错

m_Navigation2 = m_MapControl.getNavigation2(); 

错误如下:

android.view.InflateException: Binary XML file line #185 in com.example.roadcar:attr/action: Binary XML file line #185 in com.example.roadcar:attr/action: Error inflating class Button
    Caused by: android.view.InflateException: Binary XML file line #185 in com.example.roadcar:attr/action: Error inflating class Button
    Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.AppCompat (or a descendant).

1个回答

您好,请问一下您那边使用的iMobile for Android是哪个版本呢 ?可以使用最新版本10.1.2测试一下
9,137EXP 2021年07月09日
...