Skip to content

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

@LiVanAk

Description

@LiVanAk

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions