Android prompts when running the project: No signature of method: build_*.android() is applicable for argument types

Error meaning: No method signature: android() in build_*.file is applicable to the parameter type

This happened to me because: 1. The version of Android Studio is higher (2021.3.1P1), 2. The compiled version is higher than 30, so it is suggested that there is a problem with the android plugin of build.gradle

It is found that: 1. Higher versions of application are written differently; 2. The parameters for declaring and compiling the SDK version in android { ...... } are also different. So correct it as shown in the picture above, and it will work normally.

Supongo que te gusta

Origin blog.csdn.net/Goals1989/article/details/128445293
Recomendado
Clasificación