android - Do I need to check the box Backwards Compatibillity (AppCompat) in Android Studio 3.2.1?
问题描述
I plan to design a new APP which minimum SDK is API 21, I hope to use latest AndroidX library.
Do I need to check the box Backwards Compatibillity (AppCompat) in Android Studio 3.2.1 ?
Image 1
Image 2
解决方案
不必要。您可以在不选中此框的情况下使用它。
向后兼容性是为了让您的应用程序在旧版本中显示相同。如果最低版本是 API 21,我仍然认为您应该使用向后兼容性,因为随着时间的推移,该版本将被弃用,然后您将不得不支持它以获得独特的外观。
从 Android 开发者页面
支持库提供标准框架 API 中不可用的其他便利类和功能,以便在更多设备上更轻松地进行开发和支持。
所以,回答你的问题:是的。因为 API 21 很快就会过时,你需要支持它们。
您还可以在官方网站上阅读更多内容:https ://developer.android.com/topic/libraries/support-library/
推荐阅读
- javascript - 即使交换后阵列也没有保持准确的位置?
- dart - 如何在装饰图像中使用 FileImage 压缩或更改图像质量?
- ios - 如何从 WKWebView 启用和获取 cookie?
- svg - 在文本元素中添加变量
- java - 无法使用 for 循环从 Jtable 获取所有行数据.. 给我最后一行
- vulkan - Vulkan中RenderPass和Pipeline是什么关系?
- c# - 从网页获取数据到 C# 应用程序
- ios - 等待来自主机的连接
- c# - 如何仅在播放器需要时从文件夹中加载预制件?
- django - 仅显示与同一用户 Django 关联的最后一条未读消息