GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Proguard causes `NoSuchMethodException` · Issue #4 · daimajia/AnimationEasingFunctions

Proguard causes NoSuchMethodException  #4

New issue
Copy link
New issue
Copy link
Closed
Closed
Proguard causes NoSuchMethodException #4
Copy link

Description

@landakram
landakram
opened on Feb 6, 2015
Issue body actions

Hey! Just want to say first that I really appreciate your work.

I'm using this library in an application and found a bug when using proguard. Without any changes to the proguard.project.txt file, I get this error when trying to use the animations:

W/System.err(22899): java.lang.NoSuchMethodException: <init> [float]
W/System.err(22899):    at java.lang.Class.getConstructorOrMethod(Class.java:472)
W/System.err(22899):    at java.lang.Class.getConstructor(Class.java:446)
W/System.err(22899):    at com.daimajia.easing.Skill.a(SourceFile:104)
W/System.err(22899):    at com.daimajia.easing.Glider.a(SourceFile:33)

I worked around this by adding to my proguard-project.txt file:

-keep class com.daimajia.easing.** { *; }
-keep interface com.daimajia.easing.** { *; }

It might be helpful to add this to documentation (like the README).

Reacted by Darwin Toledo

Activity

  1. daimajia commented on Feb 15, 2015

    @daimajia
    daimajia
    on Feb 15, 2015
    Owner
    More actions

    Yeah, I'll do this today.

    Thanks for your feedback. (SORRY FOR MY LATE REPLY). :-D

  2. daimajia
    closed this as completedin fcdfb86on Feb 15, 2015
  3. landakram commented on Feb 17, 2015

    @landakram
    landakram
    on Feb 17, 2015
    Author
    More actions

    Thanks @daimajia!

  4. ultimate-deej commented on Mar 3, 2016

    @ultimate-deej
    ultimate-deej
    on Mar 3, 2016
    More actions

    I've encountered exactly the same issue today.
    The following rule helped me:

    -keepclassmembers public class * extends com.daimajia.easing.BaseEasingMethod {
        public <init>(...);
    }
    

    The source of the problem is that constructors are called indirectly. This rule prevents proguard from removing constructors instead of forcing it to keep everything.

    Reacted by Nikita G., Claus Thomasen and Darwin Toledo
  5. eirinaios commented on Mar 12, 2016

    @eirinaios
    eirinaios
    on Mar 12, 2016
    More actions

    Thank you so much @ultimate-deej! You saved my day!

    Reacted by Maxim Naumov
  6. nikkorejz commented on Jan 27, 2017

    @nikkorejz
    nikkorejz
    on Jan 27, 2017
    More actions

    Thanks, @ultimate-deej !

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.