App with wear os compose 1.0.0 alpha13 deployed on...
# compose-wear
y
App with wear os compose 1.0.0 alpha13 deployed on wear emulator crashes wenn I open the Layout Inspector in AS. Is it a known issue? With Layout Inspector closed, the App is just fine. Is any workaround to use Layout Inspector with wear os compose?
j
Not an issue that I am aware of. Can you provide some details - probably best to raise a bug with details. What are the errors you are seeing?
I have reproduced the problem - It doesn't seem to be related to alpha13 - I have tried alpha11, 12 and 13 and see the issue as well.
y
@John Nichol Great that you can reproduce the problem. I am not sure whether it is a combination of emulator, AVD, compose preview and layout inspector. Since I am new to the compose and compose wear, I thought it would be great to examine the exact layout structure in layout inspector. My error was:
com.example.android.wearable.composeforwearos A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 8476 (HeapTaskDaemon), pid 8462 (omposeforwearos)
I was doing the codelab of wear compose https://developer.android.com/codelabs/compose-for-wear-os#0
I have created this bug report for Android Studio: https://issuetracker.google.com/issues/212542036
j
Thanks @Yingding Wang - This looks to be some version dependency issue, but I haven't been able to work out exactly which combination yet. If you are interested in working against snapshot builds then the latest builds seem to be working fine
Copy code
maven { url '<https://androidx.dev/snapshots/builds/8036295/artifacts/repository>' }


        compose_version = '1.2.0-SNAPSHOT'
        wear_compose_version = '1.0.0-SNAPSHOT'
        lifecycle_version = '2.5.0-SNAPSHOT'
        activity_compose_version = '1.5.0-SNAPSHOT'
🎉 2