I have created a brand new android application using compose 1.0.1 and Kotlin 1.5.20 and I am getting this warning during compilation:
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!
You can reproduce it by creating a brand new empty compose activity project in Android Studio Arctic Fox 2020.3.1 and running ./assembleDebug
. It also happens on any other android studio project when compose is added
Should I be worried about this warning? Given this warning, is Compose ready for production yet?
Today, we're releasing version 1.2 of Jetpack Compose, Android's modern, native UI toolkit, continuing to build out our roadmap.
Creating your first Jetpack Compose project is surprisingly easy.
Jetpack Compose is a modern toolkit designed to simplify UI development. It combines a reactive programming model with the conciseness and ease of use of the Kotlin programming language.
Jetpack Compose comes with all the functionality needed to build a rich and responsive application UI and features full interoperability with current Android views, making it easy for developers to implement in existing projects.
Compose is definitely production ready, that is why it is launched on the stable channel now. As far as the warning is concerned, I think you need not worry about it. I have seen this issue in previous versions and it got fixed eventually. It might have recurred, but I guess since it is internal
, there's not much you can do about it. Long as it does not prevent you from developing further, it's ok. Chill
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With