Ash
03/29/2020, 11:24 PMclass ComposeFragment : Fragment() {
This worked in Dev05
(fragmentView as ViewGroup).setContent {
Greeting("hji", breatheData)
//materialContent()
}
@Composable
fun Greeting(name: String, BDdatat: MyData) {...}
I have spent the entire day making sure my build.gradle(s) are correct but I still get java.lang.NoSuchMethodError: No static method setContent(Landroid/view/ViewGroup;Lkotlin/jvm/functions/Function0;)Landroidx/compose/Composition; in class Landroidx/ui/core/WrapperKt; or its super classes (declaration of 'androidx.ui.core.WrapperKt
I did follow https://stackoverflow.com/questions/60615308/jetpack-compose-dev06-setcontent-doesnt-work but I am at my wit's end. Any suggestions?Thiago
03/30/2020, 3:12 AMAsh
03/30/2020, 3:52 AMcomposeOptions {
kotlinCompilerVersion "1.3.61-dev-withExperimentalGoogleExtensions-20200129"
kotlinCompilerExtensionVersion "0.1.0-dev07"
}
Val Salamakha
03/30/2020, 6:21 AMfragmentView.activity?.setContent{...}
Why not as above?Adrian Blanco
03/30/2020, 6:48 AMcompose true
as well in the module which calls setContent.
If that is a limitation due to kapt, I think making a setContent extension function without composables as arguments (eg no args) in a different module with compose true
might also workThiago
03/30/2020, 12:08 PMkotlinCompilerVersion
Ash
03/30/2020, 10:08 PMAsh
04/01/2020, 4:23 AMAsh
04/02/2020, 3:11 AMExecution failed for task ':app:kaptGenerateStubsDebugKotlin'.
Ash
04/02/2020, 3:12 AMAsh
04/02/2020, 3:22 AMLeland Richardson [G]
04/03/2020, 3:00 PMAsh
04/03/2020, 10:33 PM