Droppers / AnimatedBottomBar

A customizable and easy to use BottomBar navigation view with sleek animations, with support for ViewPager, ViewPager2, NavController, and badges.
MIT License
1.39k stars 111 forks source link

I try to run DEMO, but there is an error in the execution. #29

Closed WORLD8848 closed 3 years ago

WORLD8848 commented 3 years ago

I downloaded the source file. I try to run DEMO, but there is an error in the execution.

Please see the error message below and give us some advice to carry out the demonstration.

Thank you.

error message ------------------------------------------------

E/AndroidRuntime: FATAL EXCEPTION: main Process: nl.joery.demo.animatedbottombar, PID: 2834 java.lang.RuntimeException: Unable to start activity ComponentInfo{nl.joery.demo.animatedbottombar/nl.joery.demo.animatedbottombar.playground.PlaygroundActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class nl.joery.animatedbottombar.AnimatedBottomBar at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2378) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2440) at android.app.ActivityThread.access$800(ActivityThread.java:162) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5422) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:914) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707) Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class nl.joery.animatedbottombar.AnimatedBottomBar at android.view.LayoutInflater.createView(LayoutInflater.java:633) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.inflate(LayoutInflater.java:504) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at android.view.LayoutInflater.inflate(LayoutInflater.java:365) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696) at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170) at nl.joery.demo.animatedbottombar.playground.PlaygroundActivity.onCreate(PlaygroundActivity.kt:34) at android.app.Activity.performCreate(Activity.java:6057) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2331) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2440)  at android.app.ActivityThread.access$800(ActivityThread.java:162)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:135)  at android.app.ActivityThread.main(ActivityThread.java:5422)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:914)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)  Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:288) at android.view.LayoutInflater.createView(LayoutInflater.java:607) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)  at android.view.LayoutInflater.inflate(LayoutInflater.java:504)  at android.view.LayoutInflater.inflate(LayoutInflater.java:414)  at android.view.LayoutInflater.inflate(LayoutInflater.java:365)  at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696)  at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170)  at nl.joery.demo.animatedbottombar.playground.PlaygroundActivity.onCreate(PlaygroundActivity.kt:34)  at android.app.Activity.performCreate(Activity.java:6057)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2331)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2440)  at android.app.ActivityThread.access$800(ActivityThread.java:162)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:135)  at android.app.ActivityThread.main(ActivityThread.java:5422)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:914)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)  Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f07005f at android.content.res.Resources.getValue(Resources.java:1316) at android.content.res.Resources.getDrawable(Resources.java:812) at android.content.Context.getDrawable(Context.java:403) at com.android.internal.view.menu.MenuItemImpl.getIcon(MenuItemImpl.java:388) at nl.joery.animatedbottombar.utils.MenuParser.parse(MenuParser.kt:22) at nl.joery.animatedbottombar.AnimatedBottomBar.initInitialTabs(AnimatedBottomBar.kt:272) at nl.joery.animatedbottombar.AnimatedBottomBar.initAttributes(AnimatedBottomBar.kt:221) at nl.joery.animatedbottombar.AnimatedBottomBar.(AnimatedBottomBar.kt:54) at nl.joery.animatedbottombar.AnimatedBottomBar.(AnimatedBottomBar.kt:31) at nl.joery.animatedbottombar.AnimatedBottomBar.(AnimatedBottomBar.kt) at java.lang.reflect.Constructor.newInstance(Native Method)  at java.lang.reflect.Constructor.newInstance(Constructor.java:288)  at android.view.LayoutInflater.createView(LayoutInflater.java:607)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)  at android.view.LayoutInflater.inflate(LayoutInflater.java:504)  at android.view.LayoutInflater.inflate(LayoutInflater.java:414)  at android.view.LayoutInflater.inflate(LayoutInflater.java:365)  at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696)  at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170)  at nl.joery.demo.animatedbottombar.playground.PlaygroundActivity.onCreate(PlaygroundActivity.kt:34)  at android.app.Activity.performCreate(Activity.java:6057)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2331)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2440)  at android.app.ActivityThread.access$800(ActivityThread.java:162)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:135)  at android.app.ActivityThread.main(ActivityThread.java:5422)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:914)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)