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

java.lang.NoClassDefFoundError: io.codetail.animation.RevealAnimator$RevealRadius #32

Closed
wingoku opened this Issue Jun 1, 2015 · 24 comments

Comments

Projects
None yet
@wingoku
Copy link

wingoku commented Jun 1, 2015

I am getting this exception on pre-lollipop devices. Any ideas why? I have imported the library and upon clicking the class name, it takes me to its source code as well.

java.lang.NoClassDefFoundError: io.codetail.animation.RevealAnimator$RevealRadius at io.codetail.animation.RevealAnimator.<clinit>(RevealAnimator.java:20) at io.codetail.animation.ViewAnimationUtils.createCircularReveal(ViewAnimationUtils.java:62)

@ozodrukh

This comment has been minimized.

Copy link
Owner

ozodrukh commented Jun 1, 2015

Hi, Can you provide some more information Device and Code?

@wingoku

This comment has been minimized.

Copy link

wingoku commented Jun 1, 2015

Nexus 5 Android 5.1.1

                int cx = (v.getLeft() + v.getRight()) / 2;
                int cy = (v.getTop() + v.getBottom()) / 2;

 SupportAnimator anim =
                            io.codetail.animation.ViewAnimationUtils.createCircularReveal(swipifyEnableDisableScreen, cx, cy, 0, maxSize);

                    anim.setDuration(1000);
                    anim.setInterpolator(new AccelerateDecelerateInterpolator());

                    anim.addListener(new SupportAnimator.AnimatorListener() {
                        @Override
                        public void onAnimationStart() {

                        }

                        @Override
                        public void onAnimationEnd() {

                        }

                        @Override
                        public void onAnimationCancel() {

                        }

                        @Override
                        public void onAnimationRepeat() {

                        }
                    });

                    anim.start();
@wingoku

This comment has been minimized.

Copy link

wingoku commented Jun 1, 2015

Any solution?

@ozodrukh

This comment has been minimized.

Copy link
Owner

ozodrukh commented Jun 1, 2015

well still not

@wingoku

This comment has been minimized.

Copy link

wingoku commented Jun 1, 2015

It can't find the static class. Check your code for generating the .aar file. It might be ignoring the static files when creating jar for .aar

@scottyab

This comment has been minimized.

Copy link

scottyab commented Jun 2, 2015

Could it be a jitpack.io issue?

@esperia

This comment has been minimized.

Copy link

esperia commented Jun 4, 2015

I have also same problem.
but, Import directly It worked for me.

1.clone

$ cd /path/to/your-project
$ git clone https://github.com/ozodrukh/CircularReveal

2../settings.gradle

include ':app'
include ':CircularReveal:circualreveal' // Add

3../app/build.gradle

dependencies {
    ...
    compile project(':CircularReveal:circualreveal') // Add
}

4../CircularReveal/circualreveal/build.gradle

apply plugin: 'com.android.library'
//apply plugin: 'android-maven' // Comment out
...
@ozodrukh

This comment has been minimized.

Copy link
Owner

ozodrukh commented Jun 4, 2015

looks like jitpack problem, or my broken hands 😞

@wingoku

This comment has been minimized.

Copy link

wingoku commented Jun 4, 2015

@ozodrukh Can you tell me how can I bundle all the dependencies inside the .aar file. I have no expertise in gradle or groovy. So I can't figure out the exact code that would generate the reference dependencies bundle in .aar file. Currenly I am using following code to generate .aar file which I upload to my server from where other can reference them

uploadArchives{
    repositories.mavenDeployer {
        def deployPath = file(getProperty('aar.deployPath'))
        repository(url: "file://${deployPath.absolutePath}")
        pom.project {
            groupId 'myPackageName'
            artifactId 'wingoku-io'
            version "0.0.6"
        }
    }
}
@scottyab

This comment has been minimized.

Copy link

scottyab commented Jun 4, 2015

@ozodrukh I wrote a how to guide for publishing to maven central if it helps.

@wingoku

This comment has been minimized.

Copy link

wingoku commented Jun 4, 2015

@scottyab it doesn't mention anywhere how to bundle all the referenced dependencies in the .aar file.

@ozodrukh

This comment has been minimized.

Copy link
Owner

ozodrukh commented Jun 4, 2015

@wingoku, android it does automatically every time you press on build or run button (only on libraries projects)

@wingoku

This comment has been minimized.

Copy link

wingoku commented Jun 4, 2015

In my case it doesn't add SDK dependencies in the App's gradle file. So I want to package all the dependencies in the .aar file.

@jitpack-io

This comment has been minimized.

Copy link

jitpack-io commented Jun 6, 2015

Hi all,
Is there a problem with the latest 'aar' file? If its something on our side then we'll work on fixing it.
The class itself is included in the aar so perhaps its a similar issue to this one?

@BhaveshPatadiya

This comment has been minimized.

Copy link

BhaveshPatadiya commented Jun 11, 2015

I am still facing this same issue. Any Solution available?

@sridhar-nalam

This comment has been minimized.

Copy link

sridhar-nalam commented Jun 12, 2015

add library in dependencies without aar extension. It worked for me.
dependencies {
compile 'com.github.ozodrukh:CircularReveal:1.1.0'
}

@rahulchowdhury

This comment has been minimized.

Copy link

rahulchowdhury commented Jul 15, 2015

Adding dependencies without @aar worked fine for me as well. Thanks Sridhar 👍

@MeenaxiD

This comment has been minimized.

Copy link

MeenaxiD commented Aug 10, 2015

Yes, adding dependencies without @aar works.

@ozodrukh ozodrukh closed this Aug 10, 2015

@ebabel

This comment has been minimized.

Copy link

ebabel commented Aug 17, 2015

RevealAnimator$RevealRadius is extending FloatProperty, which doesn't exist in android versions prior to 4.0. So this shouldn't work, right? Removing the @aar works for me as well (somehow). Can you remove this from the README.md?

@lvl4fi4

This comment has been minimized.

Copy link

lvl4fi4 commented Sep 3, 2015

hi i had the same problem on some project that i set new CircularReveal version in dependencies . i just used old version compile 'com.github.ozodrukh:CircularReveal:1.0.4'

@RaghavThakkar

This comment has been minimized.

Copy link

RaghavThakkar commented Sep 8, 2015

Without @aar works.

@sachithkn

This comment has been minimized.

Copy link

sachithkn commented Sep 30, 2015

works without @aar thankyou.

@tiveor

This comment has been minimized.

Copy link

tiveor commented Oct 7, 2015

the same here, working like a charm without @aar, many thanks.

@robillo

This comment has been minimized.

Copy link

robillo commented May 4, 2017

working fine with the older version (1.0.4), not working with or without @aar in 2.0.4 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment