gpt4 book ai didi

android - 错误 : The SDK platform-tools version ((23)) is too old to check APIs compiled with API 23

转载 作者:行者123 更新时间:2023-11-29 14:30:51 33 4
gpt4 key购买 nike

我尝试了提供的解决方案 here但这并不能解决问题。

完整错误:

The SDK platform-tools version ((23)) is too old to check APIs compiled with API 23; please update less... (Ctrl+F1) This check scans through all the Android API calls in the application and warns about any calls that are not available on all versions targeted by this application (according to its minimum SDK attribute in the manifest). If you really want to use this API and don't need to support older devices just set the minSdkVersion in your build.gradle or AndroidManifest.xml files. If your code is deliberately accessing newer APIs, and you have ensured (e.g. with conditional execution) that this code will only ever be called on a supported platform, then you can annotate your class or method with the @TargetApi annotation specifying the local minimum SDK to apply, such as @TargetApi(11), such that this check considers 11 rather than your manifest file's minimum SDK as the required API level. If you are deliberately setting android: attributes in style definitions, make sure you place this in a values-vNN folder in order to avoid running into runtime conflicts on certain devices where manufacturers have added custom attributes whose ids conflict with the new ones on later platforms. Similarly, you can use tools:targetApi="11" in an XML file to indicate that the element will only be inflated in an adequate context.

最佳答案

我遇到了同样的错误,然后我刚刚将 Android SDK 平台工具从 sdk 管理器更新到修订版 23.0.1。在 Android Studio 中:File->Invalidate Caches/Restart。我希望它能帮助你。如果没有,您可以按 Ctrl + Shift + A,键入检查更新并按 Enter。您可能会在已修复的地方获得更新。

关于android - 错误 : The SDK platform-tools version ((23)) is too old to check APIs compiled with API 23,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33856223/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com