它有另外一个界面中Proguard的接口类 [英] Proguard Interface class which has another interface inside
本文介绍了它有另外一个界面中Proguard的接口类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个接口A类和A类我还有一个界面B 我想ProGuard的包,当我在摇篮打造它,我得到
下面的错误
符号:B级
位置:界面
../Progaurd/android/trunk/sample/module-c/src/main/java/com/c/db/C.java:24:错误:找不到符号
公共C类实现乙
在实际的类如下:
公共接口A {
公共接口B {
...
}
}
我曾尝试与下面的线ProGuard的-project.txt文件
-keep类*实现com.sample.manager.storage.AB
请帮我....
解决方案
-keep公共接口com.sample.manager.storage.A $ B {*;}
I have an Interface class A and in the Class A i have another Interface B I am trying to proguard the Package and when i build it in gradle I getting
The below error
symbol: class B
location: interface A
../Progaurd/android/trunk/sample/module-c/src/main/java/com/c/db/C.java:24: error: cannot find symbol
public class C implements B
The actual class is as follows
public interface A{
public interface B{
...
}
}
I have tried with the below lines in proguard-project.txt file
-keep class * implements com.sample.manager.storage.A.B
Please help me....
解决方案
-keep public interface com.sample.manager.storage.A$B {*;}
这篇关于它有另外一个界面中Proguard的接口类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文