簡體   English   中英

Proguard在APK導出時返回了錯誤代碼1

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

我正在使用Parse庫和許多不同的庫項目開發Android應用程序。 為了導出apk文件,我正在使用Pro Guard。 在導出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

在您的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