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

在应用 build.gradle文件中的 targetSdkVersion需要小于或等于30,否则在连接服务器时会发生崩溃 #524

Open
LiVanAk opened this issue Nov 27, 2024 · 0 comments

Comments

@LiVanAk
Copy link

LiVanAk commented Nov 27, 2024

Please fill out the form below before submitting, thank you!

这个错误是因为在 Android 12(API 级别 31)及以上版本中,当你创建 PendingIntent 时,需要明确指定其为不可变(FLAG_IMMUTABLE)或可变(FLAG_MUTABLE)。如果你的 PendingIntent 不需要在未来修改其内容,建议使用 FLAG_IMMUTABLE。

Description of Bug:

E.g. Steps to re-create, how often does this happen etc..

Console Log output (if available):

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