gpt4 book ai didi

android - 如何抑制与项目无关的android gradle依赖项警告

转载 作者:行者123 更新时间:2023-12-03 05:46:54 25 4
gpt4 key购买 nike

在 react native 项目中,我们使用来自外部源的 java 模块,如下所示:

.
.
implementation project(':react-native-image-picker')
implementation project(':mapbox-react-native-mapbox-gl')
.
.

有时这些项目是过多警告的来源,如下所示:
The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018.


Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018


The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.0.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Update Build Tools version and sync project
Open File


Configuration 'provided' is obsolete and has been replaced with 'compileOnly'.
It will be removed at the end of 2018


The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018.


Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018


The specified Android SDK Build Tools version (25.0.2) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.0.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Update Build Tools version and sync project
Open File

构建项目时如何抑制此警告。它令人讨厌和误导?

最佳答案

关于android - 如何抑制与项目无关的android gradle依赖项警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49586650/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com