HERE-maps 高级 sdk 可与 Android Auto sdk 一起使用吗?我正在开发一项功能,只是为了在汽车中镜像我的地图,但总是遇到同样的错误:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context androidx.fragment.app.FragmentActivity.getApplicationContext()' on a null object reference
at com.here.android.mpa.mapping.AndroidXMapFragment.onCreateView(AndroidXMapFragment.java:1)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2963)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3136)
at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:3063)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:2988)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:546)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3136)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3070)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
at com.google.android.gms.car.h.onStart(CarFragmentActivity.java:67)
at com.google.android.apps.auto.sdk.CarActivity.onStart(CarActivity.java:44)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:551)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:232)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:783)
at com.google.android.gms.car.internal.t.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at com.google.android.gms.d.a.a.b.dispatchMessage(TracingHandler.java:9)
at android.os.Looper.loop(Looper.java:235)
at android.app.ActivityThread.main(ActivityThread.java:7441)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
W/System.err: HERE-SDK: HERE SDK Version: 3.14.2.192
谁能帮我?Tks