Proguard返回了错误代码1。请参阅控制台Android

用户名

这个问题已经被问过很多次了,但我无法解决。我正在尝试使用eclipse导出我的应用程序以发布最终版本,但出现以下错误。我添加了其他人在其他链接中建议的所有条目,但没有帮助。请帮助我如何摆脱这个错误。

 Proguard returned with error code 1. See console
[2014-08-24 11:21:11 - ] Note: there were 1035 duplicate class definitions.
[2014-08-24 11:21:11 - ] Warning:com.google.api.client.extensions.jdo.JdoDataStoreFactory$JdoValue: can't find superclass or interface javax.jdo.spi.PersistenceCapable

[2014-08-24 11:21:11 - ] Warning: com.google.api.client.extensions.jdo.JdoDataStoreFactory$JdoDataStore: can't find referenced class javax.jdo.PersistenceManagerFactory
[2014-08-24 11:21:11 - 
[2014-08-24 11:21:11 - ] Warning: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential: can't find referenced class com.google.android.gms.common.AccountPicker
[2014-08-24 11:21:11 - ] Warning: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential: can't find referenced class com.google.android.gms.auth.GoogleAuthUtil

 You should check if you need to specify additional program jars.
   Warning: there were 127 unresolved references to classes or interfaces.
 You may need to specify additional library jars (using '-libraryjars').
  Error: Please correct the above warnings first.

有很长的错误,所以我粘贴了相关的错误。以下是我的proguard-project.txt文件条目。

-keep class android.support.v4.** { *; }   
-dontwarn android.support.v4.**
-dontwarn javax.activation.**
-dontwarn javax.security.**
-dontwarn java.awt.**
-libraryjars <java.home>/lib/rt.jar
-keep class javax.** {*;}
-keep class com.sun.** {*;}
-keep class myjava.** {*;}
-keep class org.apache.harmony.** {*;}
-keep public class Mail {*;}        
-dontshrink
-dontwarn org.mockito.**
-dontwarn sun.reflect.**
-dontwarn android.test.**
-keep class javax.ws.rs.** { *; }
-dontwarn com.fasterxml.jackson.**
-dontwarn org.xmlpull.v1.**
用户名

我解决了这个问题。我在下面两行添加了内容,现在它没有给出任何警告,并且能够使用eclipse成功生成.apk文件。

-dontwarn javax.jdo.**
-dontwarn com.google.api.client.googleapis.extensions.android.gms.**

希望它会帮助某人。谢谢

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

为什么控制台输出未显示“ Hello”?(请参阅随附的test.c中的第43行)

/ usr / bin / dpkg在python:3.7-slim-stretch上返回了错误代码(1)

开发服务器返回了响应错误代码:React Native中为500

Javascript控制台返回了不正确的排序数组

控制台提示音字符代码-错误的号码?

通过将Proguard规则映射文件上传到Google Play控制台来消除生产Android错误的混淆

离子4平台添加android错误代码ENOLOCAL

获取对象返回的控制台错误

可绘制资源:无法重新打包资源,请参阅控制台以获取详细信息

futex工具在带有WSL的VS Code上返回了意外错误代码

错误代码“子查询返回了多个值[...]”

未满足的依赖关系和子进程/ usr / bin / dpkg在DEBIAN中返回了错误代码(1)错误

sudo apt-get update子进程返回了错误代码

Android应用程序签名:Proguard返回,错误代码为1。请参阅控制台

带有Unity3d的Proguard返回错误代码1

Proguard:如何解决错误代码1?

Eclipse for PHP错误Java wa启动,但返回了错误代码13

服务器客户端控制台重新启动后,Node.js请参阅进程日志

Eclipse错误:Java已启动,但返回了退出代码= 1

udev子进程/ usr / bin / dpkg返回了错误代码(1)

libqtcore4:子进程/ usr / bin / dpkg返回了错误代码(1)-“试图覆盖共享的`/ etc / xdg / Trolltech.conf`”

php exec返回错误代码1

Clonezilla安装-子进程/ usr / bin / dpkg返回了错误代码(1)

dpkg搞砸了,返回了错误代码(1)

安装kubuntu-desktop后,“子进程/ usr / bin / dpkg返回了错误代码”

如何修复错误E:子进程/ usr / bin / dpkg返回了错误代码(1)

TFS 忽略控制台应用程序失败 - 错误代码

Google Play 控制台签名 apk 版本代码错误

我返回了两个值,但控制台只显示一个值..我的代码有什么问题?