简体   繁体   English

Proguard在APK导出时返回了错误代码1

[英]Proguard returned with error code 1 at the time of apk export

I am developing Android application using Parse library and many different library projects. 我正在使用Parse库和许多不同的库项目开发Android应用程序。 For exporting apk file, I am using Pro Guard. 为了导出apk文件,我正在使用Pro Guard。 While doing the export of the apk file I am receiving the following error: 在导出apk文件时,我收到以下错误:

[2015-05-03 20:59:49 - SampleProject] Proguard returned with error code 1. See console
[2015-05-03 20:59:49 - SampleProject] Warning: com.parse.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener
[2015-05-03 20:59:49 - SampleProject] Warning: com.parse.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback
[2015-05-03 20:59:49 - SampleProject] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback
[2015-05-03 20:59:49 - SampleProject] Warning: org.hamcrest.generator.qdox.ant.AbstractQdoxTask: can't find superclass or interface org.apache.tools.ant.Task
[2015-05-03 20:59:49 - SampleProject] Warning: org.hamcrest.integration.EasyMock2Adapter: can't find superclass or interface org.easymock.IArgumentMatcher
[2015-05-03 20:59:49 - SampleProject] Warning: org.hamcrest.integration.JMock1Adapter: can't find superclass or interface org.jmock.core.Constraint
[2015-05-03 20:59:49 - SampleProject] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable

In your proguard-project.txt add this -dontwarn and - keep class lines: 在您的proguard-project.txt添加以下内容-dontwarn和- keep class行:

 -keep class com.parse.*{ *; }
 -dontwarn com.parse.**
 -dontwarn com.google.common.**
 -dontwarn org.hamcrest.**

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM