Jetpack Compose App Doesn't Launch On Avd
I've written a sample using Jetpack Compose then whenever i try to Install it on an AVD, gradle builds the Project Successfully but the Built App doesn't launch. Everything About t
Solution 1:
I had the same issue, but what worked for me was running it from the preview. Once you have a connected device, hitting the little run image(with a green play icon) on the top right corner of the preview pane will launch on the device or emulator. If you can't see this icon, scroll the preview pane all the way to the right.
However, to run your app using the normal run button on android studio, you need to make sure that your setContent{ } block inside onCreate is calling your Composable functions you declared earlier. This was the missing link for me as well.
Solution 2:
Make sure that android:exported
flag for your launch activity in AndroidManifest is set to true
Post a Comment for "Jetpack Compose App Doesn't Launch On Avd"