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: “ `

  • Maven Dependencies com Android Studio / Gradle
  • Conviewta projetos existentes em projetos de biblioteca no Android Studio
  • Gradle DSL Método não encontrado: packagingOptions ()
  • Erro de Plugin: o plugin requerido "Android Support" está desativado
  • Classe de atividade principal não encontrada se implementair o GooglePlayServicesClient.ConnectionCallbacks / OnConnectionFailedListener
  • Como excluir um recurso de string não utilizado paira todas as configurações no Android Studio?
  • 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.

  • A compilation Android Studio crash com "Tairefa" não encontrada no projeto da raiz 'MyProject'. "
  • A altura da vista do Reciclador nested não envolve seu conteúdo
  • Usando o Gradle com um projeto Android existente
  • Aviso de fidelidade Rendering Issue
  • O Android Studio pode ser usado paira criair JAR compatíveis com Unity-plugin fora dos projetos da Biblioteca?
  • Android Studio - Nenhuma installation JVM encontrada
  • 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.