-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AppWidget Viewer] NoSuchMethodError: No static method ModalBottomSheetLayout #12
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
A fix is getting worked on but isn't released yet: https://issuetracker.google.com/issues/298066147#comment3 |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
I've updated the PR #13 to update to the latest dependencies, would it be possible to review it, merge it and make a new release of the libraries? The artifacts on Maven Central are still very outdated. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
.. and does anyone solve this problem :'( |
still not working :'( |
do you get the same error |
when I launch GlancePreviewActivity (implements GlanceViewerActivity), it terminated with message:
my activity: @OptIn(ExperimentalGlanceRemoteViewsApi::class)
class GlancePreviewActivity: GlanceViewerActivity() {
@ExperimentalGlanceRemoteViewsApi
override suspend fun getGlanceSnapshot(receiver: Class<out GlanceAppWidgetReceiver>): GlanceSnapshot {
return when (receiver) {
AnalogClockWidgetReceiver::class.java -> GlanceSnapshot(
instance = AnalogClockWidget(),
// state = mutablePreferencesOf(intPreferencesKey("state") to value)
)
else -> throw IllegalArgumentException()
}
}
@ExperimentalGlanceRemoteViewsApi
override fun getProviders(): List<Class<out AppWidgetProvider>> {
return listOf(AnalogClockWidgetReceiver::class.java)
}
} |
but are you actually using the code from the PR #13 instead of the Maven Central artifact of this library? |
to be honest, your code works only if I add material (compose material2) library. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Not stale |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Still not stale. |
Describe the bug
The project is currently using outdated version of many dependencies, including Compose and Glance.
This is causing crashes like the following:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The viewer should work as expected
Environment:
Additional context
I would be happy to work on a PR that bumps the dependencies but, before investing effort on it, I would like to have a confirmation that it would be appreciated and merged if successful.
The text was updated successfully, but these errors were encountered: