Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jetpack compose internal compiler arguments warning

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?

like image 225
Pawel Avatar asked Aug 05 '21 17:08

Pawel


People also ask

Is jetpack compose stable now?

Today, we're releasing version 1.2 of Jetpack Compose, Android's modern, native UI toolkit, continuing to build out our roadmap.

Is jetpack compose hard to learn?

Creating your first Jetpack Compose project is surprisingly easy.

Is jetpack compose reactive?

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.

Is jetpack compose the future of Android development?

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.


1 Answers

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

like image 66
MARSK Avatar answered Oct 09 '22 09:10

MARSK