本文主要是介绍AndroidStudio编译错误‘android.injected.build.density‘ is deprecated,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题
AndroidStudio编译错误
The option ‘android.injected.build.density’ is deprecated.
It was removed in version 8.0 of the Android Gradle plugin.
Density property injection from Android Studio has been removed.
解决
app/build.gradle
中这行
apply plugin: ‘com.android.application’
改成
plugins {
id ‘com.android.application’
}
这篇关于AndroidStudio编译错误‘android.injected.build.density‘ is deprecated的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!