编译Android Studio项目时收到以下消息:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
如何将“--warning-mode all”命令行设置添加到我的Android Studio项目中,以便找到已弃用的功能?
只需在根项目中创建一个名为gradle.properties的文件:
root
|--gradle.properties
|--build.gradle
|--app
|----build.gradle
然后在该文件中添加:
--warning模式=(全部,无,摘要)