本文主要是介绍Warning: there were 11 unresolved references to classes or interfaces.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题描述:
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/maosidiaoxian/article/details/84032387
感谢大佬带我出坑!
这篇关于Warning: there were 11 unresolved references to classes or interfaces.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!