2013-05-17 41 views
2

我試圖未簽名的應用程序從Eclipse導出得到釋放文件之後發生的,它不斷給我Fatal Error Code 1這些細節:致命錯誤試圖出口未簽名的android應用

PS我們使用Twitter4J庫雖然我們不使用與Facebook相關的任何內容。

[2013-05-17 13:16:07 - Faltirha] Proguard returned with error code 1. See console 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.auth.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.auth.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.auth.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback 
[2013-05-17 13:16:07 - Faltirha] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find superclass or interface javax.management.DynamicMBean 
[2013-05-17 13:16:07 - Faltirha] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View 
[2013-05-17 13:16:07 - Faltirha] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook 
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session 

...... 

[2013-05-17 13:16:07 - Faltirha]  You should check if you need to specify additional program jars. 
[2013-05-17 13:16:07 - Faltirha] Warning: there were 203 unresolved references to classes or interfaces. 
[2013-05-17 13:16:07 - Faltirha]   You may need to specify additional library jars (using '-libraryjars'). 
[2013-05-17 13:16:07 - Faltirha] Warning: there were 2 unresolved references to program class members. 
[2013-05-17 13:16:07 - Faltirha]   Your input classes appear to be inconsistent. 
[2013-05-17 13:16:07 - Faltirha]   You may need to recompile them and try again. 
[2013-05-17 13:16:07 - Faltirha]   Alternatively, you may have to specify the option 
[2013-05-17 13:16:07 - Faltirha]   '-dontskipnonpubliclibraryclassmembers'. 
[2013-05-17 13:16:07 - Faltirha] java.io.IOException: Please correct the above warnings first. 
[2013-05-17 13:16:07 - Faltirha] at proguard.Initializer.execute(Initializer.java:321) 
[2013-05-17 13:16:07 - Faltirha] at proguard.ProGuard.initialize(ProGuard.java:211) 
[2013-05-17 13:16:07 - Faltirha] at proguard.ProGuard.execute(ProGuard.java:86) 
[2013-05-17 13:16:07 - Faltirha] at proguard.ProGuard.main(ProGuard.java:492) 

編輯: 我能夠在項目的屬性評論這未簽名應用導出文件

proguard.config = $ {} sdk.dir /工具/ proguard的/ proguard-android.txt:proguard-project.txt:proguard-google-api-client.txt

但我認爲這不是解決方案!

+1

檢查你的Logcat它說什麼: 1. **你應該檢查是否需要指定額外的程序罐** 2. **有203個未解析的類或接口引用** 3. * *您可能需要指定額外的庫jar(使用'-libraryjars')。** 明確地說,您錯過了附加jar文件,可能是twitter4j jar文件。請把它放在lib文件夾中並建立路徑。 –

+0

@ManishAndroid感謝您的及時回覆,問題其實我沒有得到你提到的3個步驟,而且我很確定Twitter4J庫在libs文件夾中 – user2244850

+0

檢查**配置構建路徑**部分。任何圖書館都有紅十字? –

回答

0

我能夠在項目的屬性註釋本(下)文件

proguard.config = $ {} sdk.dir到/tools/proguard/proguard-android.txt未簽名應用導出:proguard-project .txt:proguard-google-api-client.txt

但我認爲這不是合適的解決方案!

5

我能夠通過增加線

-dontwarn com.google.android.gms.** 

我proguard的-project.txt文件來解決這個問題,準確。

+0

將google-play-services_lib添加到具有android:minSdkVersion 9的Eclipse項目後,我遇到了類似的問題。我們得到了關於android.content.ComponentCallbacks2的警告,因爲它僅在API 14中可用。我假設這與其他谷歌圖書館類似,如運行時間檢查的API版本的AdMob,所以這些版本依賴可以安全地忽略 – mwk

0

不,解決方案是不要在項目屬性文件中註釋它,除非你不在乎加密你的apk。如果您不關心某人解密您的代碼,請繼續並將其從項目屬性文件中刪除。

相關問題