Warning: there were 11 unresolved references to classes or interfaces.

2024-01-20 02:30

本文主要是介绍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.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/624526

相关文章

解决PHP Warning: strftime(): It is not safe to rely on the system's timezone set

当运行一些程序时,在httpd日志中会有如下警告日志: PHP Warning:  strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set(

the following classes could not be found android.support.v7.internal.

打开XML的界面时候显示 rendering problems: the following classes could not be found android.support.v7.internal.....。 后来发现http://stackoverflow.com/questions/33742114/the-following-classes-could-not-be-fou

Linux - SSH: WARNING REMOTE HOST IDENTIFICATION HAS CHANGED

一、问题     通过 SSH 登录节点时遇到的问题 二、方案     通过 vi ~/.ssh/known_hosts 删除对应节点 ip 的 rsa 信息即可

modelsim 关闭 warning 的方法

按照下面的图片设置后可以关闭 warning

c/c++: warning: ISO C90 forbids variable length array ‘a’

文章目录 介绍C99安全问题类似的alloca安全问题的防护 介绍 https://en.cppreference.com/w/c/language/array @item -Wvla @opindex Wvla @opindex Wno-vla Warn if a variable-length array is used in the code. @option{-Wno-v

Qt 错误qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error

今天运行程序中有一个从网页下载文件到本地的功能运行输出下列错误         qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error     qt.network.ssl: QSslSocket: cannot call unresolved function TLSv1_client_method

Gnu: binutils: ld: .gnu.warning.链接时的主动警告 glibc

这个是一个gnu的extension,glibc会使用这个功能,标记即将被淘汰的符号,产生链接时的警告,比如: /* When a reference to SYMBOL is encountered, the linker will emit awarning message MSG. *//* We want the .gnu.warning.SYMBOL section to be u

PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0

服务器突然出现这种提示,无法上传文件和图片,怎么解决? PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0 1.因为php.ini中没有设置上传的临时文件,默认为系统的临时文件地址。 2.如果没有权限去读系统的临时文件目录的话就会产生上述错误。 解决的方法就

Kontlin+databinding报错:Error: Unresolved reference: databinding

今天在使用Kontlin+databinding时,意料之中的报错: Error:Unresolved reference: databinding Error:Unresolved reference: FragmentDataBinding 下面记录一下解决方案: 在项目的build.gradle中获取到当前Android plugin版本,比如我的是: