{
"title": "Android Tips 2023-03-28",
"tags": [
"post",
"Android Dev",
"Android",
"Tip"
],
"sources": [
"xlog"
],
"external_urls": [
"https://lotosbin.xlog.app/Android-Tips-20230328"
],
"date_published": "2023-03-28T14:42:22.331Z",
"content": "#Android #Dev #Tip\n#构建 #配置 #优化\n\n***统一配置所有module的android compileSdk minSdk***\n\n## Usage\n\n1. 修改 settings.gradle 文件\n```groovy\nplugins {\n id(\"com.android.settings\").version(\"7.4.2\")\n}\nandroid {\n compileSdk 33\n minSdk 23\n}\n```\n\n2. 移除所有module的compileSdk和minSdk配置\n\n## Ref\nhttps://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/dsl/SettingsExtension",
"attributes": [
{
"value": "Android-Tips-20230328",
"trait_type": "xlog_slug"
}
]
}