我已经添加了用于获取网络时间的truetime库,但是我有一个错误,我无法在android中解决它。
图书馆:
implementation 'com.github.instacart.truetime-android:library-extension-rx:2.0'
错误:Android问题:
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编译器:
The rule `-keep public class *extends java.lang.annotation.Annotation {
我尝试了很多,但它无法解决它。
请任何人解决这个问题。我们将不胜感激。
提前致谢。
请检查答案here。
为方便起见,我也在这里提供答案:
解决方案1:
尝试将您的gradle
更新到最新版本。
解决方案2:
在proguard规则上添加这行代码
-keepattributes *Annotation*
-keep @**annotation** class * {*;}