小编Paw*_*wel的帖子

Jetpack 撰写内部编译器参数警告

我使用 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!
Run Code Online (Sandbox Code Playgroud)

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

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

android kotlin android-jetpack-compose

15
推荐指数
1
解决办法
2017
查看次数

标签 统计

android ×1

android-jetpack-compose ×1

kotlin ×1