[英]How can I do “Recompile with -Xlint:unchecked for details” on Android Studio?
I am developing an app using Flutter on Android Studio.我正在 Android Studio 上使用 Flutter 开发应用程序。
I have seen warnings like this, but I am not sure how to run Recompile with -Xlint:unchecked for details
on Android Studio specifically.我看到过这样的警告,但我不确定如何
Recompile with -Xlint:unchecked for details
有关 Android Studio 的详细信息。 Could you give me ideas?你能给我一些想法吗?
Pages I have checked (but I think they are a bit different from my case):我检查过的页面(但我认为它们与我的情况有点不同):
In your project level build.gradle file add this and build the app again在您的项目级别 build.gradle 文件中添加此文件并再次构建应用程序
allprojects {
repositories {
google()
jcenter()
}
gradle.projectsEvaluated{
tasks.withType(JavaCompile){
options.compilerArgs << "-Xlint:deprecation"
}
}
}
It will show the deprecation warnings.Upgrade them to latest version.Hope this fix your problem它将显示弃用警告。将它们升级到最新版本。希望这能解决您的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.