Google Cloud Translate-Android Studio错误55

问题描述

当我添加(实现“ com.google.cloud:google-cloud-texttospeech:1.2.1”)作为其中之一时,尝试构建Android Studio应用程序时,出现“原因:无效的类型代码:55”我的依赖性。

我已经生成了我的凭据,下载了json并设置了我的GOOGLE_APPLICATION_CREDENTIALS,但是文档中没有提及无效的类型代码:相对于Google Cloude套件而言是55?

当我删除依赖项时,应用程序运行,但是当我添加(并同步)依赖项时,它甚至无法构建。

有人知道这意味着什么吗?

LOGCAT:

2020-10-17 21:51:12.797 2313-2767/? E/NetRec: [96] amnl.a: Could not retrieve server token for package com.google.android.apps.gcs
    java.util.concurrent.ExecutionException: rqg: 29503: 
        at awoy.b(:com.google.android.gms@[email protected] (100700-333172415):5)
        at awoy.a(:com.google.android.gms@[email protected] (100700-333172415):23)
        at amnl.a(:com.google.android.gms@[email protected] (100700-333172415):1)
        at amnl.a(:com.google.android.gms@[email protected] (100700-333172415):4)
        at amnk.getHeaders(:com.google.android.gms@[email protected] (100700-333172415):2)
        at com.android.volley.toolBox.HttpClientStack.performRequest(:com.google.android.gms@[email protected] (100700-333172415):18)
        at sqa.performRequest(:com.google.android.gms@[email protected] (100700-333172415):1)
        at bnl.executeRequest(:com.google.android.gms@[email protected] (100700-333172415):1)
        at com.android.volley.toolBox.BasicNetwork.performRequest(:com.google.android.gms@[email protected] (100700-333172415):9)
        at sqb.performRequest(:com.google.android.gms@[email protected] (100700-333172415):17)
        at com.android.volley.Networkdispatcher.processRequest(:com.google.android.gms@[email protected] (100700-333172415):5)
        at com.android.volley.Networkdispatcher.a(:com.google.android.gms@[email protected] (100700-333172415):0)
        at com.android.volley.Networkdispatcher.run(:com.google.android.gms@[email protected] (100700-333172415):2)
     Caused by: rqg: 29503: 
        at rvw.a(:com.google.android.gms@[email protected] (100700-333172415):4)
        at apnu.b(:com.google.android.gms@[email protected] (100700-333172415):3)
        at apol.a(:com.google.android.gms@[email protected] (100700-333172415):8)
        at aakz.run(:com.google.android.gms@[email protected] (100700-333172415):19)
        at bonr.run(:com.google.android.gms@[email protected] (100700-333172415):2)
        at svn.b(:com.google.android.gms@[email protected] (100700-333172415):12)
        at svn.run(:com.google.android.gms@[email protected] (100700-333172415):7)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at tbn.run(:com.google.android.gms@[email protected] (100700-333172415):0)
        at java.lang.Thread.run(Thread.java:764)
2020-10-17 21:51:12.994 2313-15315/? I/NetworkScheduler.Stats: Task com.google.android.gms/com.google.android.gms.netrec.module.NetRecGcmTaskService finished executing. cause:4 result: 1 elapsed_millis: 801 uptime_millis: 801 exec_start_elapsed_seconds: 11635 [CONTEXT service_id=218 ]

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)