Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetpack Compose for Desktop Multiplatform Wizard, creates an android app that crashes on launch #576

Open
ColtonIdle opened this issue Apr 9, 2021 · 1 comment
Assignees

Comments

@ColtonIdle
Copy link

2021-04-09 06:10:52.042 24009-24009/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: myapp.android, PID: 24009
    java.lang.IllegalStateException: ViewTreeLifecycleOwner not set for this ComposeView. If you are adding this ComposeView to an AppCompatActivity, make sure you are using AppCompat version 1.3+. If you are adding this ComposeView to a Fragment, make sure you are using Fragment version 1.3+. For other cases, manually set owners on this view by using `ViewTreeLifecycleOwner.set()` and `ViewTreeSavedStateRegistryOwner.set()`.
        at androidx.compose.ui.platform.AbstractComposeView.onAttachedToWindow(ComposeView.android.kt:212)
        at android.view.View.dispatchAttachedToWindow(View.java:20479)

Just looks like a dep has to be updated. Don't know if this is the right place or youtrack.

Screen Shot 2021-04-09 at 6 07 38 AM

@okushnikov
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants