Skip to content
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

AlwaysOnTests invalid intent code #990

Open
yschimke opened this issue Jan 17, 2024 · 0 comments
Open

AlwaysOnTests invalid intent code #990

yschimke opened this issue Jan 17, 2024 · 0 comments

Comments

@yschimke
Copy link
Contributor

From https://github.com/android/wear-os-samples/actions/runs/7553630443?pr=989

java.lang.IllegalArgumentException: com.example.android.wearable.wear.alwayson: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
	at android.app.PendingIntent.checkFlags(PendingIntent.java:401)
	at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:671)
	at android.app.PendingIntent.getBroadcast(PendingIntent.java:658)
	at com.example.android.wearable.wear.alwayson.AlwaysOnAppTests$textIsCorrectAfterGoingIntoAmbientModeAndReceivingIntent$1.invokeSuspend$lambda$1(AlwaysOnAppTests.kt:186)
	at com.example.android.wearable.wear.alwayson.AlwaysOnAppTests$textIsCorrectAfterGoingIntoAmbientModeAndReceivingIntent$1.$r8$lambda$a8G_TkkhNUXdHJxiI15hx-rBA5Y(Unknown Source:0)
	at com.example.android.wearable.wear.alwayson.AlwaysOnAppTests$textIsCorrectAfterGoingIntoAmbientModeAndReceivingIntent$1$$ExternalSyntheticLambda0.perform(D8$$SyntheticClass:0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant