Android Studio; Jetpack Compose : Preview could not be rendered due to errors when using rememberPermissionState
So I tackled this problem when trying to request for permissions using the Accompanist library.
Here is a snippet of code causing the problem, the function is Composable and is also opted for experimental API.
if (City.value == "") {
/* val permissionState = rememberPermissionState(
android.Manifest.permission.READ_EXTERNAL_STORAGE
) */
Button(
onClick = {
//getPermissions(permissionState)...