高德导航问题-AmapNaviPage.getInstance().showRouteActivity空白页

AmapNaviPage.getInstance().showRouteActivity空白,并有如下错误提示:



W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.widget.RelativeLayout.findViewById(int)' on a null object reference

W/System.err: at com.amap.api.col.sln3.ka.a(RoutePage.java:191)

W/System.err:    at com.amap.api.navi.AmapRouteActivity.switchScr(AmapRouteActivity.java:144)

W/System.err:    at com.amap.api.navi.AmapRouteActivity.newScr(AmapRouteActivity.java:156)

W/System.err:    at com.amap.api.navi.AmapRouteActivity.onCreate(AmapRouteActivity.java:115)

W/System.err:    at android.app.Activity.performCreate(Activity.java:6017)

W/System.err:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1116)

W/System.err:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2427)

W/System.err:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2541)

W/System.err:    at android.app.ActivityThread.access$800(ActivityThread.java:153)

W/System.err:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1419)

W/System.err:    at android.os.Handler.dispatchMessage(Handler.java:102)

W/System.err:    at android.os.Looper.loop(Looper.java:135)

W/System.err:    at android.app.ActivityThread.main(ActivityThread.java:5475)

W/System.err:    at java.lang.reflect.Method.invoke(Native Method)

W/System.err:    at java.lang.reflect.Method.invoke(Method.java:372)

W/System.err:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:948)

W/System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743)


只是部分log,其中


搜索这个找不到的07f060006


高德导航问题-AmapNaviPage.getInstance().showRouteActivity空白页_第1张图片

看出来是系统的资源没找到,结合高德的常见错误解决该问题:

AmapRouteActivity设置该主题:

   android:theme="@android:style/Theme.NoTitleBar"

你可能感兴趣的:(高德导航问题-AmapNaviPage.getInstance().showRouteActivity空白页)