简体   繁体   English

如何在 Android Studio 上执行“使用 -Xlint 重新编译:未选中详细信息”?

[英]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.

相关问题 问题:重新编译 -Xlint:unchecked for details - Problem: Recompile with -Xlint:unchecked for details 在Android studio用-Xlint重新编译 - Recompile with -Xlint in Android studio 如何使用 -Xlint:deprecation 重新编译 - How to recompile with -Xlint:deprecation 如何将 -Xlint:unchecked 添加到我的基于 Android Gradle 的项目中? - How to add -Xlint:unchecked to my Android Gradle based project? 使用或覆盖已弃用的API。 使用-Xlint重新编译:弃用以获取详细信息 - uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details 任务 &#39;:app:checkDebugDuplicateClasses&#39; 执行失败,使用 -Xlint:deprecation 重新编译以获取详细信息 - Execution failed for task ':app:checkDebugDuplicateClasses', Recompile with -Xlint:deprecation for details CyanogenMod:启用构建CM10.2.zip:使用-Xlint:deprecation重新编译以获取详细信息 - CyanogenMod: enable to build CM10.2.zip: recompile with -Xlint:deprecation for details DemoActivity.java使用或覆盖已弃用的API。 注意:使用-Xlint重新编译:弃用以获取详细信息 - DemoActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details .java 使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息 - .java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details 我如何在Android中默认设置RadioGroup为未选中状态? - how can i set RadioGroup unchecked by default in android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM