gpt4 book ai didi

android - 创建版本 android 签名的 apk 时出现 Proguard 异常

转载 作者:行者123 更新时间:2023-11-30 03:34:23 26 4
gpt4 key购买 nike

我在我们的项目中使用 Google API 进行 Google 身份验证,但是在发布签名 APK 时,我们面临一些警告,因此我们无法生成签名 APK。请指出实际问题出在哪里。

[2013-06-01 10:32:01 - Proguard returned with error code 1. See console
[2013-06-01 10:32:01 - Note: there were 366 duplicate class definitions.
[2013-06-01 10:32:01 - Warning: library class android.net.http.AndroidHttpClient extends or implements program class org.apache.http.client.HttpClient
[2013-06-01 10:32:01 - Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R
[2013-06-01 10:32:01 - Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can'tfind referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-06-01 10:32:01 - Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class
[2013-06-01 10:32:01 - Warning: com.google.api.services.tasks.v1.Tasks$RemoteRequest: can't find referenced class com.google.api.client.http.HttpMethod
[2013-06-01 10:32:01 - Warning: com.google.api.services.tasks.v1.Tasks$RemoteRequest: can't find referenced class com.google.api.client.http.HttpMethod
[2013-06-01 10:32:01 - Warning: com.google.api.services.tasks.v1.Tasks$RemoteRequest: can't find referenced class com.google.api.client.http.HttpMethod
[2013-06-01 10:32:01 -Warning: com.google.api.services.tasks.v1.Tasks$RemoteRequest: can't find referenced class com.google.api.client.http.HttpMethod
[2013-06-01 10:32:01 - Warning: com.google.api.services.tasks.v1.Tasks$RemoteRequest: can't find referenced class com.google.api.client.http.HttpMethod
[2013-06-01 10:32:01 - Warning: com.google.api.services.tasks.v1.Tasks$Tasklists$Delete: can't find referenced class com.google.api.client.http.HttpMethod
[2013-06-01 10:32:01 - Warning: com.google.api.services.tasks.v1.Tasks$Tasklists$Delete: can't find referenced class com.google.api.client.http.HttpMethod
[2013-06-01 10:32:01 - Warning: com.google.api.services.tasks.v1.Tasks$Tasklists$Get: can't find referenced class com.google.api.client.http.json.JsonHttpParser
[2013-06-01 10:32:01 - Warning: com.google.api.services.tasks.v1.Tasks$Tasklists$Get: can't find referenced field 'com.google.api.client.http.HttpHeaders headers' in class com.google.api.client.http.HttpResponse

最佳答案

我的解决方案很简单,进入 android SDK tools/progaurd 目录更新所有 jar 文件。

关于android - 创建版本 android 签名的 apk 时出现 Proguard 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16869374/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com