小编Gar*_*rry的帖子

当定位到 Android 12 时,应用程序因待处理的 Intent 而崩溃

当定位到 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)

android google-play-services google-nearby

14
推荐指数
1
解决办法
9349
查看次数

跨多个应用程序的谷歌智能锁不起作用

我们正在尝试根据文档在我们的应用程序中跨应用程序和网站启用自动登录

目前,我们已经完成了

  1. 将与我们的应用程序相关的内容添加到数字资产链接 JSON 文件中
  2. 添加asset_statemenets到清单文件
  3. asset_statements字符串资源添加到strings.xml
  4. 在 Google Play 商店发布应用程序(100% 推出)
  5. 已申请Smart Lock for Passwords affiliation form serval 次,但没有得到任何回应。我们上次提交是在 10/16

但是最新的应用程序仍然无法获取数字资产链接 JSON 中列出的其他应用程序共享的凭据。有没有办法知道凭证链接进度?目前,我们不知道发生了什么,也不知道我们遇到了什么问题。

android google-contacts-api google-smartlockpasswords

5
推荐指数
0
解决办法
177
查看次数