Android运行时报错The specified Android SDK Build Tools version (29.0.0) is ignored

1.问题描述

今天将很久以前的项目拉取下来重新运行,在运行时报了这样一个错误。

The specified Android SDK Build Tools version (29.0.0) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2.
Android SDK Build Tools 30.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '29.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

2.问题解决

这里它提示我将SDK的版本修改为30.0.2

修改前:

修改后:

点击右上角的“Sync Now",然后再重新运行一下项目。

猜你喜欢

转载自blog.csdn.net/weixin_43823060/article/details/131549653
今日推荐