-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error inflating class com.mapbox.services.android.navigation.ui.v5.NavigationView #966
Comments
Hey @franshua, it looks like from your code snippet you are setting your access token after inflating the I reproduced the same scenario and saw this at the end of my stacktrace:
Thanks for checking out the SDK! |
I have same problem and not solved by your point |
2021-06-12 14:57:34.899 11651-11651/com.harman.predictivemap D/AndroidRuntime: Shutting down VM |
Facing same issue, any one found the solution to this? |
Sorry I cannot help you, I resolved this with @danesfeder comment. |
1 similar comment
Sorry I cannot help you, I resolved this with @danesfeder comment. |
Updated from 0.12.0 to 0.13.0 version and changed only minimal code:
` @OverRide
protected void onCreate(@nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Logcat:
05-23 16:58:56.975 28618-28618/com.app.dev E/AndroidRuntime: FATAL EXCEPTION: main Process: com.app.dev, PID: 28618 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.dev/com.app.navigator.DirectionsNavigator}: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.mapbox.services.android.navigation.ui.v5.NavigationView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3255) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3351) at android.app.ActivityThread.access$1100(ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1796) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7230) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.mapbox.services.android.navigation.ui.v5.NavigationView at android.view.LayoutInflater.inflate(LayoutInflater.java:551) at android.view.LayoutInflater.inflate(LayoutInflater.java:429) at android.view.LayoutInflater.inflate(LayoutInflater.java:380) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) at com.app.navigator.DirectionsNavigator.onCreate(DirectionsNavigator.java:32) at android.app.Activity.performCreate(Activity.java:6877) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3208)
**Android API: 23
**Mapbox Navigation SDK version: 0.13.0
Steps to trigger behavior
The text was updated successfully, but these errors were encountered: