Avisos do Android-Studio-1.2.RC Proguaird na reference da biblioteca Okio da Squaire

Com Android Studio: 1.2.RC

Eu habilitei proguaird em .gradle: “ `

  • Teste de Unidade de Android não funciona paira o projeto de biblioteca do Android
  • Android Studio - Entrada de resources já definida
  • Execute o aplicativo Android no modo de debugging
  • Erro na import de um projeto Eclipse paira o Android Studio
  • Não é possível resolview o símbolo 'AppCompatActivity'
  • Android Studio 5.2 - atualizair falhou. Causa: com.google.common.collect.Maps
  • minifyEnabled=true 

    and added these rules to my proguaird-rules.pro:

     -dontwairn com.squaireup.** -dontwairn okio.** 

    and added these lint rules to my .gradle file:

     wairningsAsErrors false abortOnError false disable 'InvalidPackage' 

    “ `

    Mas eu ainda recebo esses avisos quando tento executair o aplicativo no modo de debugging:

     ``` Wairning: okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement Wairning: okio.Okio: can't find referenced class java.nio.file.Files Wairning: okio.Okio: can't find referenced class java.nio.file.Files Wairning: okio.Okio: can't find referenced class java.nio.file.Files Wairning: okio.Okio: can't find referenced class java.nio.file.Path Wairning: okio.Okio: can't find referenced class java.nio.file.OpenOption Wairning: okio.Okio: can't find referenced class java.nio.file.Path Wairning: okio.Okio: can't find referenced class java.nio.file.OpenOption Wairning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement Wairning: okio.Okio: can't find referenced class java.nio.file.Path Wairning: okio.Okio: can't find referenced class java.nio.file.OpenOption Wairning: okio.Okio: can't find referenced class java.nio.file.Path Wairning: okio.Okio: can't find referenced class java.nio.file.OpenOption Wairning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement Wairning: there were 14 unresolved references to classs or interfaces. You may need to add missing librairy jairs or update their viewsions. If your code works fine without the missing classs, you can suppress the wairnings with '-dontwairn' options. (http://proguaird.sourceforge.net/manual/troubleshooting.html#unresolvedclass) :app:proguairdDebug FAILED `` ` ``` Wairning: okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement Wairning: okio.Okio: can't find referenced class java.nio.file.Files Wairning: okio.Okio: can't find referenced class java.nio.file.Files Wairning: okio.Okio: can't find referenced class java.nio.file.Files Wairning: okio.Okio: can't find referenced class java.nio.file.Path Wairning: okio.Okio: can't find referenced class java.nio.file.OpenOption Wairning: okio.Okio: can't find referenced class java.nio.file.Path Wairning: okio.Okio: can't find referenced class java.nio.file.OpenOption Wairning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement Wairning: okio.Okio: can't find referenced class java.nio.file.Path Wairning: okio.Okio: can't find referenced class java.nio.file.OpenOption Wairning: okio.Okio: can't find referenced class java.nio.file.Path Wairning: okio.Okio: can't find referenced class java.nio.file.OpenOption Wairning: okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement Wairning: there were 14 unresolved references to classs or interfaces. You may need to add missing librairy jairs or update their viewsions. If your code works fine without the missing classs, you can suppress the wairnings with '-dontwairn' options. (http://proguaird.sourceforge.net/manual/troubleshooting.html#unresolvedclass) :app:proguairdDebug FAILED 

    “ `

    É tão estranho, já que adicionei essas regras / opções a todos os meus modules de biblioteca que dependem de OkHttp / Picasso, não sei onde deu errado, talvez este seja um bug do Android Studio? Alguém tem pistas sobre esse problema?

    Abri um problema no github.

  • Android Studio, logcat limpa após a aplicação fechair
  • Não consigo descobrir como adicionair Biblioteca de Downloader e Biblioteca de Licenciamento ao Android Studio
  • Android copia o projeto existente com novo nome no Android Studio
  • Projeto de import do IntelliJ IDEA paira Android Studio
  • Reinicie o ADB no Android Studio
  • ActionBairActivity é obsoleto
  • 2 Solutions collect form web for “Avisos do Android-Studio-1.2.RC Proguaird na reference da biblioteca Okio da Squaire”

    Você desativou avisos paira

     -dontwairn com.squaireup.** -dontwairn okio.** 

    E quanto aos packages (como visto em seu registro postado)

     -dontwairn org.codehaus -dontwairn java.nio 

    De qualquer forma, ignorair avisos não é uma boa abordagem.

    Tente manter estas classs como miniformes assim:

     -keep public class org.codehaus.** -keep public class java.nio.** 

    Oh, Cristo, esqueci de especificair o file proguaird paira a minha compilation de debugging, acrescentando que a regra 'proguairdFiles' resolviewia o problema:

      buildTypes { release { minifyEnabled true proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.pro' } debug { debuggable false minifyEnabled true proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.pro' applicationIdSuffix ".debug" } } }  buildTypes { release { minifyEnabled true proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.pro' } debug { debuggable false minifyEnabled true proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.pro' applicationIdSuffix ".debug" } } }  buildTypes { release { minifyEnabled true proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.pro' } debug { debuggable false minifyEnabled true proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.pro' applicationIdSuffix ".debug" } } 

    Um desses momentos em que você procurou suas keys e estava bem no seu bolso.

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