1

I have added the truetime library for getting the network time, but I've got an error which I can't resolve it in android.

library:

implementation 'com.github.instacart.truetime-android:library-extension-rx:2.0'

Error: Android Issues:

    InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored.
Message{kind=WARNING, text=InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored., sources=[Unknown source file], tool name=Optional.of(D8)}

Java Compiler:

The rule `-keep public class *extends java.lang.annotation.Annotation { 

I tried as much, but it couldn't resolve it.

Please, anyone, solve this problem. It would be appreciated.

Thanks in advance.

hem
  • 311
  • 1
  • 5
  • 16

1 Answers1

-1

Please check the answer here.

For your convenience, I also provide the answers here:

Solution 1:

try updating your gradle to the latest version.

Solution 2:

add this line of code on proguard rule

-keepattributes *Annotation*
-keep @**annotation** class * {*;}
Rubick
  • 296
  • 3
  • 22