Menu

Android related

2015-02-09
2015-04-13
  • Stefan Zobel

    Stefan Zobel - 2015-02-09

    Lately there have incurred so many Android related questions that I thought it would be reasonable to open a dedicated discussion thread for this topic.

    So please use this thread for Android discussions in order to relieve the other threads from debates that don't belong there. Thanks.

     
  • Anonymous

    Anonymous - 2015-02-11

    Yeap, Android thread is quite reasonable. 1.1.4 works fine, so thank you.
    And I have a new question now. I can't compile my app due to some ProGuard exception that says something related to this library. I assume, that I have to write some rules to proguard-rules.pro file in order to keep java8.* classes from removing during minification my .apk.
    Screenshot: http://i.imgur.com/sYbBW8D.png

     

    Last edit: Anonymous 2015-02-11
  • Stefan Zobel

    Stefan Zobel - 2015-02-11

    Hhm, not sure if I can help you here. I don't use ProGuard exactly because of such issues.
    I don't see a real ProGuard error in your picture, only warnings that could be suppressed?

    It obviously doesn't find sun.misc.Unsafe - a classpath issue. The only half-way reasonable warning is that about j.u.f.Consumer in j8.u.DelegatingSpliterator.

    If that turns out to help you, you could delete DelegatingSpliterator completely - it is currently not used. But it shouldn't be necessary. Just tell that crap tool it should leave the j8.util stuff untouched.

     

    Last edit: Stefan Zobel 2015-02-11
  • Anonymous

    Anonymous - 2015-04-13

    Adding this to my proguard configuration resolved the issue:

    -keep class java8.**
    -dontwarn java8.**
    

    If anyone has a more efficient solution than discarding all optimizations on streamsupport completely, please share.

     

    Last edit: Anonymous 2015-04-13
    • Stefan Zobel

      Stefan Zobel - 2015-04-13

      Thanks for sharing

       

Anonymous
Anonymous

Add attachments
Cancel