Hello everyone! I'm using `AS 4.2 Canary 15` &...
# compose
d
Hello everyone! I'm using
AS 4.2 Canary 15
&
1.0.0-alpha04
when I try to build the project constantly I receive the message: The project needs to be compiled for the preview to be displayed I try to deploy in my device too but I received the following exception. Maybe I forgot something, but I would like to understand what cause this situation. Thanks for your help.
Copy code
2020-11-05 04:08:46.021 6713-6713/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: pe.devpicon.android.compose.composemovieapp, PID: 6713
    java.lang.NoSuchMethodError: No static method setContent$default(Landroidx/activity/ComponentActivity;Landroidx/compose/runtime/Recomposer;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Landroidx/compose/runtime/Composition; in class Landroidx/compose/ui/platform/WrapperKt; or its super classes (declaration of 'androidx.compose.ui.platform.WrapperKt' appears in /data/app/~~y-6tioGr0hL5Too_D6cd8A==/pe.devpicon.android.compose.composemovieapp-7RI0hBEy3aAYmCB7LAi_jQ==/base.apk)
        at androidx.ui.tooling.preview.PreviewActivity.setComposableContent(PreviewActivity.kt:70)
        at androidx.ui.tooling.preview.PreviewActivity.onCreate(PreviewActivity.kt:57)
        at android.app.Activity.performCreate(Activity.java:8000)
        at android.app.Activity.performCreate(Activity.java:7984)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)