【问题标题】:Jetpack compose internal compiler arguments warningJetpack 撰写内部编译器参数警告
【发布时间】:2021-10-10 17:56:08
【问题描述】:

我使用 compose 1.0.1 和 Kotlin 1.5.20 创建了一个全新的 android 应用程序,并且在编译过程中收到此警告:

w: ATTENTION!
This build uses unsafe internal compiler arguments:

-XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes

This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!

您可以通过在 Android Studio 北极狐 2020.3.1 中创建一个全新的空撰写活动项目并运行 ./assembleDebug 来重现它。添加 compose 时,它​​也会发生在任何其他 android studio 项目中

我应该担心这个警告吗?鉴于此警告,Compose 准备好投入生产了吗?

【问题讨论】:

    标签: android kotlin android-jetpack-compose


    【解决方案1】:

    Compose 绝对可以生产,这就是它现在在稳定频道上发布的原因。就警告而言,我认为您不必担心。我在以前的版本中看到过这个问题,最终得到了修复。它可能会再次发生,但我想因为它是internal,所以你无能为力。只要不妨碍你进一步发展,没关系。冷静

    【讨论】:

    • 今天收到此警告。但看起来我不用担心,我可以Chill
    • 'Chill' 是可组合的吗?你为什么使用代码格式化?通过投票表示您的支持!
    • 干杯!第一个回答有 5 个赞!!
    • 我赞成这个问题。谢谢提醒。
    • 但我还没有收到任何东西
    猜你喜欢
    • 1970-01-01
    • 2011-05-09
    • 2021-07-12
    • 1970-01-01
    • 2018-11-29
    • 1970-01-01
    • 1970-01-01
    • 2015-08-19
    相关资源
    最近更新 更多