skip to Main Content

Android Studio – Studio BumbleBee "Render Problem" For Compose Preview

I am unable to preview anything in Studio, extending to something as simple as a Text. I get a "Render Error", revealing this stack trace. java.lang.NoSuchMethodException: com.<packageName>.Navigation_ComponentsKt.<PreviewName> at androidx.compose.ui.tooling.CommonPreviewUtils.findComposableMethod(CommonPreviewUtils.kt:78) at androidx.compose.ui.tooling.CommonPreviewUtils.invokeComposableViaReflection$ui_tooling_release(CommonPreviewUtils.kt:183) at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1$composable$1.invoke(ComposeViewAdapter.kt:553) at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1$composable$1.invoke(ComposeViewAdapter.kt:551) at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1.invoke(ComposeViewAdapter.kt:590) at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1.invoke(ComposeViewAdapter.kt:546) at…

VIEW QUESTION

Android studio 'The activity must be exported or contain an intent-filter'

I wanted to show 'RealMainActivity.kt' to first main page, so I wrote below. <activity android:name=".RealMainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> but there is still Error running 'app': The activity must be exported or contain an intent-filter.…

VIEW QUESTION
Back To Top
Search