当定位到 android 12 时,由于附近消息 API,应用程序崩溃了。这是崩溃日志
2021-10-07 18:59:44.916 10343-10384/com.example.nearbymessagescanner E/AndroidRuntime: FATAL EXCEPTION: GoogleApiHandler
Process: com.example.nearbymessagescanner, PID: 10343
java.lang.IllegalArgumentException: com.example.nearbymessagescanner: 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:375)
at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:458)
at android.app.PendingIntent.getActivity(PendingIntent.java:444)
at android.app.PendingIntent.getActivity(PendingIntent.java:408)
at com.google.android.gms.common.api.GoogleApiActivity.zaa(com.google.android.gms:play-services-base@@17.5.0:4)
at com.google.android.gms.common.GoogleApiAvailability.zaa(com.google.android.gms:play-services-base@@17.5.0:116)
at …Run Code Online (Sandbox Code Playgroud) 我们正在尝试根据文档在我们的应用程序中跨应用程序和网站启用自动登录
目前,我们已经完成了
asset_statemenets到清单文件asset_statements字符串资源添加到strings.xml但是最新的应用程序仍然无法获取数字资产链接 JSON 中列出的其他应用程序共享的凭据。有没有办法知道凭证链接进度?目前,我们不知道发生了什么,也不知道我们遇到了什么问题。
android ×2