Clans / FloatingActionButton

Android Floating Action Button based on Material Design specification
Apache License 2.0
5.22k stars 1.13k forks source link

Could not find class 'android.graphics.drawable.RippleDrawable' #130

Open leijdekkers opened 9 years ago

leijdekkers commented 9 years ago

Maybe nothing major but i see these errors thrown when i have a layout with the FAB button. Any idea what goes wrong?

Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.github.clans.fab.FloatingActionButton.createFillDrawable

Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.github.clans.fab.FloatingActionButton.onActionDown

Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.github.clans.fab.FloatingActionButton.onActionUp

DrewCarlson commented 9 years ago

What's your targetSdkVersion?

leijdekkers commented 9 years ago

Hi

The tarketSDK is 23

Any idea what it could be?

Peter

On Fri, Sep 25, 2015 at 3:53 AM, Drew Carlson notifications@github.com wrote:

What's your targetSdkVersion?

— Reply to this email directly or view it on GitHub https://github.com/Clans/FloatingActionButton/issues/130#issuecomment-143003832 .

DrewCarlson commented 9 years ago

I didn't realize these were runtime errors, these can be safely ignored. It may be worth the effort to prevent Api 21+ methods from being called on older Android versions.

leijdekkers commented 9 years ago

Indeed. But i assume the library should check this and not me in my own code?

DrewCarlson commented 9 years ago

Yes, it would need to be handled internally.

whyte624 commented 9 years ago

:+1: waiting for new release without this error.

ckarthikv commented 9 years ago

Has this error been sorted in the latest build? I keep getting crashes for SDK19 using this.

CSMahajan commented 8 years ago

I have the same errors , does anyone the solution for it?I tried for both targetSdkVersion 23 and my device api that is prelollipop but can't resolve it.

jfest commented 8 years ago

Hi, still having this error with device api 18,

how to fix it plz ?

jfest commented 8 years ago

Just include : compile 'com.android.support:support-annotations:XXXX' Solve the problem, it was fix in code with annotation @Target...

benidict1995 commented 8 years ago

anyone try to code FAB inside service class? .. because i want FAB move around the screen and also i can multi task.

example: while FAB on my screen, i can use any app i can tap what i want.

actually i've done this before but in simple button not FAB.

monemihir commented 7 years ago

i've just seen this error

Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.github.clans.fab.FloatingActionButton.createFillDrawable

this causes the layout inflating to fail since the ripple effect is specified in the XML. the whole app crashes due to this.

i'm targeting SDK15, device is running SDK17 and building with SDK25.