初学Android,现在用的是Android Studio 3.1,gradle版本是4.4。在导入看的书配套的源代码的时候,因为书上用的ide版本是2.3,gradle版本也不对,build时报了这样的警告:
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 (24.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 '24.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018
Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.