📅  最后修改于: 2023-12-03 15:03:09.239000             🧑  作者: Mango
As an Android programmer, you may encounter the error message - "Android SDK does not include your 28 target SDK". This error message means that you have set your project's target SDK to version 28 but your Android SDK installation does not include the necessary components for that version.
To resolve this issue, you need to install the missing components through the Android SDK Manager. Here's how you can do it:
With the target SDK installed, you can take advantage of the new features and improvements available for your app. However, keep in mind that some devices may not support the latest target SDK version, so you may need to set a minimum SDK version for broader compatibility.
In conclusion, missing target SDK components can cause errors in your Android project, but the solution is easy - just install the missing components through the SDK Manager. By doing so, you can take advantage of the latest features for your app and ensure broader compatibility across devices.
// Sample code to set the target and minimum SDK version
android {
defaultConfig {
targetSdkVersion 28
minSdkVersion 19
// other configuration options...
}
// other build configurations...
}