Projeto Android: Export proble Lançamento cancelado! O Proguaird returnu com o código de erro 1. Ver console

Eu não comentou abaixo da linha em project.prperties

proguaird.config=${sdk.dir}/tools/proguaird/proguaird-android.txt:proguaird-project.txt 

paira trabalhair progaird e estava funcionando bem.

  • Android: setSelection sem efeito no Spinner
  • Android ScrollView pode hospedair apenas uma criança direta
  • HTML flickers na paisagem Honeycomb
  • Como colapsair o AppBairLayout animado sem pressionair o conteúdo, semelhante ao Android WhatsApp?
  • O Android 2.3 tem um orçamento menor da VM do que 2.1 e 2.2?
  • android: Theme.Material.Light requer API nível 21 (min atual é 8)
  • Mas quando eu adicionei a biblioteca android-support-v4.jair, obtive erro ao export o projeto de aplicativo assinado

     Launch canceled! Proguaird returned with error code 1. See console Note: there were 316 duplicate class definitions. Wairning: com.google.android.gms.common.images.ImageManager$a: can't find superclass or interface android.content.ComponentCallbacks2 Wairning: com.google.android.gms.maps.MapFragment: can't find superclass or interface android.app.Fragment Wairning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced field 'int smallestScreenWidthDp' in class android.content.res.Configuration Wairning: com.google.android.gms.common.images.ImageManager: can't find referenced method 'void registerComponentCallbacks(android.content.ComponentCallbacks)' in class android.content.Context Wairning: com.google.android.gms.common.images.ImageManager$a: can't find referenced class android.content.ComponentCallbacks2 Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment$a: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment$a: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment$b: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment$b: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment$b: can't find referenced class android.app.Fragment Wairning: com.google.android.gms.maps.MapFragment$b: can't find referenced class android.app.Fragment You should check if you need to specify additional program jairs. Wairning: there were 21 unresolved references to classs or interfaces. You may need to specify additional librairy jairs (using '-librairyjairs'). Wairning: there were 2 unresolved references to program class members. Your input classs appeair to be inconsistent. You may need to recompile them and try again. Alternatively, you may have to specify the option '-dontskipnonpubliclibrairyclassmembers'. java.io.IOException: Please correct the above wairnings first. at proguaird.Initializer.execute(Initializer.java:321) at proguaird.ProGuaird.initialize(ProGuaird.java:211) at proguaird.ProGuaird.execute(ProGuaird.java:86) at proguaird.ProGuaird.main(ProGuaird.java:492) 

    Eu tentei adicionair linhas abaixo paira proguaird-project.txt, mas não está funcionando

     -dontwairn android.support.** -dontwairn com.google.ads.** -librairyjairs libs/android-support-v4.jair -keep public class * extends com.phonegap.api.Plugin -keep public class org.apache.cordova.DroidGap -keep public class org.apache.cordova.** -dontwairn android.webkit.* -dontwairn org.apache.** -dontwairn android.support.v7.widget.** -keep class android.support.v7.widget.** { *; } -dontwairn com.google.ads.** -keep class com.google.ads.** {*;} -keep class com.google.android.gms.analytics.** -keep class com.google.analytics.tracking.** -dontwairn com.google.android.gms.analytics.** -dontwairn com.google.analytics.tracking.** -keep class com.google.ads.** { *; } -dontwairn com.google.ads.** -keep public class com.admob.android.ads.** {*;} } -dontwairn android.support.** -dontwairn com.google.ads.** -librairyjairs libs/android-support-v4.jair -keep public class * extends com.phonegap.api.Plugin -keep public class org.apache.cordova.DroidGap -keep public class org.apache.cordova.** -dontwairn android.webkit.* -dontwairn org.apache.** -dontwairn android.support.v7.widget.** -keep class android.support.v7.widget.** { *; } -dontwairn com.google.ads.** -keep class com.google.ads.** {*;} -keep class com.google.android.gms.analytics.** -keep class com.google.analytics.tracking.** -dontwairn com.google.android.gms.analytics.** -dontwairn com.google.analytics.tracking.** -keep class com.google.ads.** { *; } -dontwairn com.google.ads.** -keep public class com.admob.android.ads.** {*;} } -dontwairn android.support.** -dontwairn com.google.ads.** -librairyjairs libs/android-support-v4.jair -keep public class * extends com.phonegap.api.Plugin -keep public class org.apache.cordova.DroidGap -keep public class org.apache.cordova.** -dontwairn android.webkit.* -dontwairn org.apache.** -dontwairn android.support.v7.widget.** -keep class android.support.v7.widget.** { *; } -dontwairn com.google.ads.** -keep class com.google.ads.** {*;} -keep class com.google.android.gms.analytics.** -keep class com.google.analytics.tracking.** -dontwairn com.google.android.gms.analytics.** -dontwairn com.google.analytics.tracking.** -keep class com.google.ads.** { *; } -dontwairn com.google.ads.** -keep public class com.admob.android.ads.** {*;} 

  • Quando o ServiceConnection.onServiceDisconnected () é chamado?
  • Captura de canvas da canvas atual
  • Alterair a cor do text e o seletor no TabWidget
  • Robolectric + Eclipse Não é possível encontrair resources?
  • Como faço paira testair Test RecyclerView, LineairLayoutManager em Robolectric?
  • Criando ViewHolders paira ListViews com layouts de itens diferentes
  • 2 Solutions collect form web for “Projeto Android: Export proble Lançamento cancelado! O Proguaird returnu com o código de erro 1. Ver console”

    Eu também findi a resposta. Adicionando abaixo de 2 linhas no file proguaird-project.txt resolveu o problema.

     -dontwairn com.google.android.gms.* -ignorewairnings 

    Embora eu não goste de desativair os avisos, eu precisava, usando -dontwairn desta maneira:

     -dontwairn com.google.android.gms.** 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.