To take advantage of all the latest features (such as Instant Run), improvements and security fixes, we strongly recommend that you update the Android Gradle plugin to version 3* and Gradle to version 4.
遇到的问题:
WARNING: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.
解决方法:把Gradle Scripts文件夹中的build.gradle文件中的compile全部换成implementation
WARNING: The specified Android SDK Build Tools version (25.0.2) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.2.1.
解决方法:build.gradle中compileSdkVersion 版本号与buildToolsVersion不匹配。
改为匹配即可。
改为:buildToolsVersion ‘28.0.3’
编译时出现错误: