Forum Discussion

tscholze's avatar
tscholze
Iron Contributor
Jan 17, 2022
Solved

Cannot find import com.microsoft.device.dualscreen.windowstate.WindowState

Hi team,   this might be a noob question but I try to get started using Compose, the Surface SDK and your Dev blog post "https://devblogs.microsoft.com/surface-duo/jetpack-compose-navigation-rail/"...
  • khalper's avatar
    Jan 18, 2022

    tscholze No worries, we welcome all questions 🙂

     

    From the dependencies you included, it looks like you just need to add the version number for the library:

    implementation ‘com.microsoft.device.dualscreen:windowstate:1.0.0-alpha1’

     

    And for your NavigationRail question, that component actually comes from the 'androidx.compose.material' library – as long as you have version 1.1.0-alpha01 or later, I believe you should be able to access the component. I tried updating our 'androidx.navigation:navigation-compose’ to version 2.4.0-rc01 and the sample still ran correctly, but let us know if you’re still experiencing issues with using a NavigationRail.

Resources