Menu

How to force proguard to prefer library classes over program classes

Help
2018-09-25
2018-09-29
  • Eric Lafortune

    Eric Lafortune - 2018-09-26

    You should never specify -injars, -outjars, or -libraryjars in your ProGuard rules. The Android Gradle plugin specifies them for you.

    The NoSuchMethodError may be coming from native code trying to access the listed method by reflection. You then need to keep the method, e.g.

    -keep class javafxports.android.FXDalvikEntity {
        void notify_hideIME();
    }
    

    I haven't looked into the implementation though.

     
  • Julien Stengel

    Julien Stengel - 2018-09-29

    I made it a bit more simple for me. I kept everything except the scala-parts. I knew it would work then, since it also worked in the desktop compilation. I figured, that the fault lies with javafx-mobile. The Plugin can't work with scalafx (sadly). I tested the same script on a different project and everything worked fine.

    The reason I specify jars in the rules, is because they weren't added automatically. I could do it in my custom task, but I don't see the difference. Maybe I am missing something, but for ordinary jars (non Android) you have to create a custom task anyway, right?

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.