androidstudio出包问题--Warning: there were 1 unresolved referenc

时间:2021-01-17 17:48:37

问题:

Warning: there were 1 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with ‘-dontwarn‘ options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)

 

解决方案:

build日志网上找警告Warning

Warning: com.tapjoy.TJAdUnit: can‘t find referenced class javax.annotation.Nullable

在proguard-rules.pro里面添加

-dontwarn com.tapjoy.**

因为我的项目找到的是tapjoy的问题:,所以我添加的是com.tapjoy.**