首页 > 编程知识 正文

警告:有11个未解析的类或接口引用。

时间:2023-05-04 13:55:00 阅读:247898 作者:3133

问题描述:

Warning: there were 11 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.

问题原因:

       读问题描述可以看到,未解决类或者接口的引用,要么增加jar包,要么用“-dontwarn”

解决办法:

       log日志输出一直往上面拉,或者用ctrl+f搜“warning”就可以看到一系列warning如图。

          如果程序跑不起来,就肯定要引入jar包。如果程序跑起来没问题,就在proguard-rules文件下用“-dontwarn”指令,如下图

然后重新生成jar包即可。

参考文章:https://blog.csdn.net/调皮的音响/article/details/84032387

感谢大佬带我出坑!

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。