balysv / material-ripple

Android L Ripple effect wrapper for Views
Apache License 2.0
2.36k stars 478 forks source link

Getting Error in Android 2.0 to Android 3.0 #28

Closed pratikbutani closed 9 years ago

pratikbutani commented 9 years ago

02-06 01:46:59.563 678-678/com.androidbuts.sschsc E/AndroidRuntime﹕ FATAL EXCEPTION: main android.view.InflateException: Binary XML file line #7: Error inflating class com.balysv.materialripple.MaterialRippleLayout at android.view.LayoutInflater.createView(LayoutInflater.java:518) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570) at android.view.LayoutInflater.rInflate(LayoutInflater.java:623) at android.view.LayoutInflater.inflate(LayoutInflater.java:408) at android.view.LayoutInflater.inflate(LayoutInflater.java:320) at android.view.LayoutInflater.inflate(LayoutInflater.java:276) at com.androidbuts.sschsc.MenuActivity$MenuAdapter.getView(MenuActivity.java:294) at android.widget.AbsListView.obtainView(AbsListView.java:1418) at android.widget.ListView.makeAndAddView(ListView.java:1745) at android.widget.ListView.fillDown(ListView.java:670) at android.widget.ListView.fillFromTop(ListView.java:727) at android.widget.ListView.layoutChildren(ListView.java:1598) at android.widget.AbsListView.onLayout(AbsListView.java:1248) at android.view.View.layout(View.java:7175) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:912) at android.view.View.layout(View.java:7175) at android.widget.FrameLayout.onLayout(FrameLayout.java:338) at android.view.View.layout(View.java:7175) at android.support.v7.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:502) at android.view.View.layout(View.java:7175) at android.widget.FrameLayout.onLayout(FrameLayout.java:338) at android.view.View.layout(View.java:7175) at android.widget.FrameLayout.onLayout(FrameLayout.java:338) at android.view.View.layout(View.java:7175) at android.view.ViewRoot.performTraversals(ViewRoot.java:1140) at android.view.ViewRoot.handleMessage(ViewRoot.java:1859) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3647) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:415) at android.view.LayoutInflater.createView(LayoutInflater.java:505)             at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)             at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)             at android.view.LayoutInflater.inflate(LayoutInflater.java:408)             at android.view.LayoutInflater.inflate(LayoutInflater.java:320)             at android.view.LayoutInflater.inflate(LayoutInflater.java:276)             at com.androidbuts.sschsc.MenuActivity$MenuAdapter.getView(MenuActivity.java:294)             at android.widget.AbsListView.obtainView(AbsListView.java:1418)             at android.widget.ListView.makeAndAddView(ListView.java:1745)             at android.widget.ListView.fillDown(ListView.java:670)             at android.widget.ListView.fillFromTop(ListView.java:727)             at android.widget.ListView.layoutChildren(ListView.java:1598)             at android.widget.AbsListView.onLayout(AbsListView.java:1248)             at android.view.View.layout(View.java:7175)             at android.widget.RelativeLayout.onLayout(RelativeLayout.java:912)             at android.view.View.layout(View.java:7175)             at android.widget.FrameLayout.onLayout(FrameLayout.java:338)             at android.view.View.layout(View.java:7175)             at android.support.v7.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:502)             at android.view.View.layout(View.java:7175)             at android.widget.FrameLayout.onLayout(FrameLayout.java:338)             at android.view.View.layout(View.java:7175)             at android.widget.FrameLayout.onLayout(FrameLayout.java:338)             at android.view.View.layout(View.java:7175)             at android.view.ViewRoot.performTraversals(ViewRoot.java:1140)             at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)             at android.os.Handler.dispatchMessage(Handler.java:99)             at android.os.Looper.loop(Looper.java:123)             at android.app.ActivityThread.main(ActivityThread.java:3647)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:507)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)             at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NoClassDefFoundError: com.balysv.materialripple.MaterialRippleLayout$4 at com.balysv.materialripple.MaterialRippleLayout.<init>(MaterialRippleLayout.java:456) at com.balysv.materialripple.MaterialRippleLayout.<init>(MaterialRippleLayout.java:111)             at java.lang.reflect.Constructor.constructNative(Native Method)             at java.lang.reflect.Constructor.newInstance(Constructor.java:415)             at android.view.LayoutInflater.createView(LayoutInflater.java:505)             at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)             at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)             at android.view.LayoutInflater.inflate(LayoutInflater.java:408)             at android.view.LayoutInflater.inflate(LayoutInflater.java:320)             at android.view.LayoutInflater.inflate(LayoutInflater.java:276)             at com.androidbuts.sschsc.MenuActivity$MenuAdapter.getView(MenuActivity.java:294)             at android.widget.AbsListView.obtainView(AbsListView.java:1418)             at android.widget.ListView.makeAndAddView(ListView.java:1745)             at android.widget.ListView.fillDown(ListView.java:670)             at android.widget.ListView.fillFromTop(ListView.java:727)             at android.widget.ListView.layoutChildren(ListView.java:1598)             at android.widget.AbsListView.onLayout(AbsListView.java:1248)             at android.view.View.layout(View.java:7175)             at android.widget.RelativeLayout.onLayout(RelativeLayout.java:912)             at android.view.View.layout(View.java:7175)             at android.widget.FrameLayout.onLayout(FrameLayout.java:338)             at android.view.View.layout(View.java:7175)             at android.support.v7.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:502)             at android.view.View.layout(View.java:7175)             at android.widget.FrameLayout.onLayout(FrameLayout.java:338)             at android.view.View.layout(View.java:7175)             at android.widget.FrameLayout.onLayout(FrameLayout.java:338)             at android.view.View.layout(View.java:7175)             at android.view.ViewRoot.performTraversals(ViewRoot.java:1140)             at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)             at android.os.Handler.dispatchMessage(Handler.java:99)             at android.os.Looper.loop(Looper.java:123)             at android.app.ActivityThread.main(ActivityThread.java:3647)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:507)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)             at dalvik.system.NativeStart.main(Native Method)

balysv commented 9 years ago

Sorry, but the library only supports 4.0+. There is some helpful info of how you would port it back here https://github.com/balysv/material-ripple#support-for-android-api-versions---14-