Question Detail

I am using ViewPager in a Fragment and there are three Fragments of the Activity. ViewPager Working fine if I am on that fragment where I have put ViewPager when I click for next Fragment My app going to Crashed. and Giving me below error : 

Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering

 

FATAL EXCEPTION: main

     Process: com.tech.fun, PID: 19244  java.lang.NullPointerException
 at com.tech.fun.FragmentPack.HomeFragment.changeDotBG(HomeFragment.java:165)
 at com.tech.fun.FragmentPack.HomeFragment.access$000(HomeFragment.java:32)
at com.tech.fun.FragmentPack.HomeFragment$3.onPageSelected(HomeFragment.java:125)
at android.support.v4.view.ViewPager.dispatchOnPageSelected(ViewPager.java:1941)

at android.support.v4.view.ViewPager.scrollToItem(ViewPager.java:680)
 at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:664)

at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:625)

at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:617)

at com.tech.fun.FragmentPack.HomeFragment$4.run(HomeFragment.java:146)

at android.os.Handler.handleCallback(Handler.java:808)

at android.os.Handler.dispatchMessage(Handler.java:103)

 at android.os.Looper.loop(Looper.java:193)

 at android.app.ActivityThread.main(ActivityThread.java:5292)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:515)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)

at dalvik.system.NativeStart.main(Native Method)


Thread Reply