android - 是否可以使用新的 Material 组件将应用程序发布到 Play 商店?

标签 android google-play google-play-console material-components material-components-android

我想使用设计支持库的 28.0.0-alpha1 版本中引入的新 Material 组件。

我发现如果不将 compileSdkVersion 设置为 android-P,这个版本的设计库将无法编译,因为它引用了仅在 API 级别 28 上找到的属性(对于例如,android:attr/dialogCornerRadius )。

另一方面,Google Play 控制台不允许我上传针对 android-P 的应用,它给我错误消息“您无法上传仅供测试的 APK”。这似乎是故意的,因为 these docs状态:

Google Play prevents publishing of apps targeting the P Developer Preview. When the Android P final SDK is available, you’ll be able to target the official Android P API level and publish your app to Google Play via the alpha, beta, and production release channels.

这是否真的意味着新组件还不能用于生产应用?

最佳答案

Does this really mean that the new components can't be used for production apps yet?

它应该用于试用目的,但不应发布给最终用户。顾名思义,它仍处于预览阶段,尚未最终确定。

从开发人员的角度来看,目的是让我们在最终版本发布之前熟悉 API,并通过使用新 API 为用户提供最佳体验来为我们的应用程序更新做好准备。这也使我们能够事先检查兼容性,并为遵守新的变化和政策做好准备。

从 Google 的角度来看,他们有机会执行一些测试,从开发人员那里获得反馈以微调他们的实现并修复在此过程中发现的问题。简而言之,他们使用开发人员作为他们新 API 和功能的测试人员。最终 API 可能会有一些剧烈的变化,这可能会破坏我们应用程序的预期行为,因此 Google 不鼓励并阻止我们意外上传到 Play 商店。

关于android - 是否可以使用新的 Material 组件将应用程序发布到 Play 商店?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50664207/

相关文章:

android - 在 ViewPager 位置从 SQLite 表设置 EditText

Android - 使用 NDK 的 OpenGL ES 2.0 教程?

android - 如何为 Android 应用程序创建深层链接

Android:将申请草稿上传到一个 Google Play 帐户,然后用另一个帐户发布?

google-play - Playstore 应用程序更新被拒绝 - 免责声明/来源 : Missing Clear Source of Information/Disclaimer

android - APK 或 App Bundle 可用于 64 位设备,但它们只有 32 位 native 代码 Unity Play store 错误

android - 错误连接被拒绝

java - Firebase 推送通知中的自定义声音

android - Google Play APK 扩展文件究竟是如何工作的?

google-play - Google Play控制台帐户所有者没有所有者权限