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.
Warning: there were 11 unresolved references to classes or interfaces._第1张图片

问题原因:

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

解决办法:

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

Warning: there were 11 unresolved references to classes or interfaces._第2张图片

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

Warning: there were 11 unresolved references to classes or interfaces._第3张图片

然后重新生成jar包即可。

参考文章:https://blog.csdn.net/maosidiaoxian/article/details/84032387

感谢大佬带我出坑!

你可能感兴趣的:(Warning: there were 11 unresolved references to classes or interfaces.)