最新gradle agp 8.12.0 适配
Android studio 升级到最新版本后也给项目同步升级了gradle版本,在编译时候报错:
An exception occurred applying plugin request [id: 'com.android.application', version: '8.12.0']
> Failed to apply plugin 'com.android.internal.application'.
> The option 'android.useDeprecatedNdk' is deprecated.
The current default is 'false'.
It has been removed from the current version of the Android Gradle plugin.
NdkCompile is no longer supported
解决办法:
- 打开项目根目录下的gradle.properties文件
- 查找并删除以下配置(如果存在):
android.useDeprecatedNdk=true

浙公网安备 33010602011771号