我在模拟我的应用程序时得到这个错误
[ERROR] [GRADLE]
[ERROR] [GRADLE] FAILURE: Build failed with an exception.
[ERROR] [GRADLE]
[ERROR] [GRADLE] * What went wrong:
[ERROR] [GRADLE] Execution failed for task ':app:checkDebugDuplicateClasses'.
[ERROR] [GRADLE] > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
[ERROR] [GRADLE] > Duplicate class com.google.android.gms.auth.api.signin.GoogleSignInAccount found in modules jetified-google-play-services-tigoosh (google-play-services-tigoosh.jar) and jetified-play-services-base-18.1.0-runtime (com.google.android.gms:play-services-base:18.1.0)
[ERROR] [GRADLE] Duplicate class com.google.android.gms.common.AccountPicker found in modules jetified-google-play-services-tigoosh (google-play-services-tigoosh.jar) and jetified-play-services-basement-18.1.0-runtime (com.google.android.gms:play-services-basement:18.1.0)
钛版本11.1.1
1条答案
按热度按时间lx0bsm1f1#
ti.gosh已经好几年没有更新了。在https://github.com/hansemannn/titanium-firebase-cloud-messaging上有一个替代方案,可以运行到最新的SDK版本。这还包括最新的Android版本和您需要获得的权限,以便使用推送。Ti.Goosh没有这些权限。所以我强烈建议切换模块。文档中有一个完整的示例,https://fromzerotoapp.com/ah-push-it-use-firebase-push-in-your-app/上有另一个完整的教程,其中包含所有步骤。
在ti.gosh仓库https://github.com/caffeinalab/ti.goosh/pull/123中有一个PR,以防您仍然想使用该模块。但你需要更新模块内部的所有内容,使其与Android 13兼容