Forum Discussion
Cannot find import com.microsoft.device.dualscreen.windowstate.WindowState
- 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.
It was not that easy for me to find a version string that works. I guessed like TwoPane `:1.0.0-alpha01’ but there is no leading 0. xD
tscholze Awesome, and apologies for the difficulty in finding the correct version string! If that happens again in the future, you can check the "Add to your project" section in the README to see the import string for the latest library version.