Sergey Y.
08/29/2020, 11:58 PMkotlin-android-extensions
plugin and use kotlinx.android.synthetic
in the code your project will not compile.
Kotlin compiler throws the error:
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!
e: java.lang.AssertionError: Unbound symbols not allowed
Unbound public symbol for public kotlinx.android.synthetic.main.activity_main/main_nav_host.<get-main_nav_host>|-3528664450170310972[0]
Unbound public symbol for public kotlinx.android.synthetic.main.activity_main/main_bottom_bar.<get-main_bottom_bar>|4532161378387945271[0]
at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:96)
...
Adding Compose to existing projects can be difficult right now.
I will file an issue on this.