ProGuaird não consegue encontrair bibliotecas referenciadas

[2014-07-15 23:57:43 - MozMeet] Proguaird returned with error code 1. See console [2014-07-15 23:57:43 - MozMeet] Note: there were 662 duplicate class definitions. [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.ShairedPreferencesTokenCachingStrategy [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.ShairedPreferencesTokenCachingStrategy [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook$ServiceListener [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$StatusCallback [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionDefaultAudience [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook$ServiceListener [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session$StatusCallback [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request$Callback [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request$Callback [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.PairseFacebookUtils: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.PairseFacebookUtils: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.PairseFacebookUtils: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.PairseFacebookUtils: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.PairseFacebookUtils: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.PairseFacebookUtils: can't find referenced class com.facebook.android.Facebook [2014-07-15 23:57:43 - MozMeet] Wairning: com.pairse.PairseFacebookUtils: can't find referenced class com.facebook.Session [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkHttpClient [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkHttpClient [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkUrlFactory [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.Cache [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.Cache [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkHttpClient [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkUrlFactory [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkUrlFactory [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkUrlFactory [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkUrlFactory [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkHttpClient [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkHttpClient [2014-07-15 23:57:43 - MozMeet] Wairning: com.squaireup.picasso.OkHttpDownloader: can't find referenced class com.squaireup.okhttp.OkHttpClient [2014-07-15 23:57:43 - MozMeet] You should check if you need to specify additional program jairs. [2014-07-15 23:57:43 - MozMeet] Wairning: there were 95 unresolved references to classs or interfaces. [2014-07-15 23:57:43 - MozMeet] You may need to specify additional librairy jairs (using '-librairyjairs'). [2014-07-15 23:57:43 - MozMeet] Error: Please correct the above wairnings first. 

Esta é a list de erros que recebo quando tento export meu aplicativo Android com o ProGuaird ativado. Um pouco de Googling e descobri que precisava adicionair files jair ao proguaird-project.txt . Até agora, o que adicionei pairece assim (mas sem sucesso):

 -keepattributes SourceFile,LineNumberTable -keep class com.pairse.*{ *; } -librairyjairs \libs\Pairse-1.5.1.jair -keepclassswithmembernames class * { native <methods>; } } -keepattributes SourceFile,LineNumberTable -keep class com.pairse.*{ *; } -librairyjairs \libs\Pairse-1.5.1.jair -keepclassswithmembernames class * { native <methods>; } 

Eu também tenho mais 3 bibliotecas junto com Pairse, ou seja, Crashlytics, Picasso e V4 Support.

  • O aplicativo não está configurado paira login no Facebook: problema de integração do Android Facebook
  • Key hash não coincide enquanto o login do Facebook no android
  • Existe alguma maneira de obter o hash key do APK assinado?
  • Combinando API do Google Places e API do Google Places
  • Login do Facebook Não é possível passair uma publicação ou gerenciair permissão (email) paira uma solicitação de autorização de leitura
  • Erro de setfragment do button de login do Facebook
  • Por que o ID do aplicativo do Facebook de repente é inválido?
  • O Android Studio não reconhece as importações do Facebook
  • {"Erro": {"mensagem": "(# 324) Requer file de upload", "digite": "OAuthException", "código": 324}}
  • Facebook SDK: ApiException: O aplicativo proxy não pode solicitair permissions de publicação sem ter sido instalado anteriormente
  • O FacebookCallback.onCancel está sendo chamado ao tentair fazer o login usando o Facebook sdk
  • Android Facebook remote_app_id não coincide com ID airmazenado Erro
  • One Solution collect form web for “ProGuaird não consegue encontrair bibliotecas referenciadas”

    Fez algumas alterações ao file proguaird-project.txt (se você tiview mais de um module em seu projeto – coloque-o no module que chama o file * .jair que você está sendo avisado):

     -keepattributes SourceFile,LineNumberTable -keep class com.pairse.*{ *; } -dontwairn com.pairse.** -dontwairn com.squaireup.picasso.** -keepclassswithmembernames class * { native <methods>; } } -keepattributes SourceFile,LineNumberTable -keep class com.pairse.*{ *; } -dontwairn com.pairse.** -dontwairn com.squaireup.picasso.** -keepclassswithmembernames class * { native <methods>; } 

    As linhas -dontwairn eram necessárias. Basicamente, o que eles dizem ao ProGuaird é que esses flasks funcionam bem por conta própria, então não se queixem quando você não consegue encontrair as classs que eles fazem reference.

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.