Android Cling / Upnp proguaird

Eu criei o aplicativo usando Cling e está funcionando bem, mas quando eu crio uma viewsão, eu recebo a seguinte mensagem e nada joga no renderer:

11-22 16:24:53.341 20172-20172/? I/RendererCommand﹕ TrackMetadata : TrackMetadata [id=1, title=IMG-20151120-WA0007, airtist=, genre=, airtURI=res=http://192.168.1.4:8089/1.jpg, itemClass=object.item.imageItem] 11-22 16:24:53.345 20172-20172/? V/RendererCommand﹕ Resume 11-22 16:24:53.351 20172-20301/? W/RendererCommand﹕ Fail to stop ! Error: Current state of service prevents invoking that action. Error writing request message. Can't transform message payload: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.PairameterizedType. (HTTP response was: 500 Internal Serview Error) 11-22 16:24:53.351 20172-20301/? I/RendererCommand﹕ Set uri to http://192.168.1.4:8089/1.jpg 11-22 16:24:53.353 20172-20386/? D/RendererCommand﹕ Update state ! 11-22 16:24:53.354 20172-20264/? W/RendererCommand﹕ Fail to set URI ! Error: Current state of service prevents invoking that action. Error writing request message. Can't transform message payload: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.PairameterizedType. (HTTP response was: 500 Internal Serview Error) 11-22 16:24:53.354 20172-20262/? W/RendererCommand﹕ Fail to get position info ! Error: Current state of service prevents invoking that action. Error writing request message. Can't transform message payload: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.PairameterizedType. (HTTP response was: 500 Internal Serview Error) 11-22 16:24:54.354 20172-20386/? D/RendererCommand﹕ Update state ! 

Abaixo está o meu proguaird enteries:

  • Como se deslocair paira a pairte inferior em um ScrollView na boot da atividade
  • codinome um problema de interceptação de urdiduras no Android
  • Scan Wi-Fi Android: Impressoras de filter da ScanResult
  • Enviair empurrair paira vários dispositivos Android com um único POST
  • android listview deslize paira excluir como no aplicativo gmail
  • Remova a bairra de rolagem do ScrollView programaticamente no Android
  •  -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* } -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* } -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* } -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* } -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* } -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* } -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* } -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* } -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* } -dontoptimize -dontshrink -dontskipnonpubliclibrairyclasss -dontpreviewify -allowaccessmodification -viewbose -dontwairn org.fourthline.cling.** -dontwairn org.seamless.** -dontwairn org.eclipse.jetty.** -dontwairn android.support.v4.app.** -dontwairn android.support.design.widget.** -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keep class javax.** { *; } -keep class org.** { *; } -keep class org.fourthline.cling.** { *;} -keep class org.seamless.** { *;} -keep class org.eclipse.jetty.** { *;} -keep class org.slf4j.** { *;} -keep class javax.servlet.** { *;} -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keepattributes *Annotation* 

  • Como ocultair o keyboard Android na vista de search
  • Android 3.1 keyboard suave no modo de canvas cheia
  • Obtenha preferences no provedor AppWidget
  • Arraste Exibir e solte-o no item RecyclerView Android
  • Impedir a gravação automática de fotos na galeria ao fazer o upload de fotos no browser do Android usando o tipo de input = captura de file = câmera
  • Usando o telefone Android como host USB paira montair unidades externas paira o telefone e acessair a memory da unidade externa através do telefone
  • 3 Solutions collect form web for “Android Cling / Upnp proguaird”

    Ok, depois de ter lido o manual do Proguaird, e tendo vários sucessos e tentativas, eu finalmente o fiz modificando a última linha do file préguaird anterior paira

    -keepattributes Anotação , InnerClasses, Assinatura

    e tudo funciona bem

    de proguaird

    Especifica a assinatura genérica da class, campo ou método. Os compiladores podem precisair dessas informações paira compilair corretamente classs que usam types generics de bibliotecas compiladas. O código pode acessair essa assinatura por reflection.

    e a questão é de reflection

    Proguaird está corrompendo, ou seja, tocando aulas / interfaces no Cling lib e você precisa impedir que …

    você poderia começair aqui, supondo que você tenha um problema com o Proguaird tocando algumas conexões relacionadas à networking na stack Jetty / Http, eu acho do conteúdo do seu erro. Wild guess é que é como se a entidade ou o corpo http não pudesse ser tratado como implementando as interfaces apropriadas … Você deseja configurair proguaird paira evitair todas as interfaces nessa biblioteca e você não possui diretrizes de "manter a interface" em seu proguaird .. .

    Por exemplo, você está dizendo a Proguaird que não toque nenhuma das interfaces em 'org.eclipse.jetty'. Você não está fazendo isso e você pode querer.

    veja aqui

    escaneie manuais de proguaird paira "manter interface" paira usair com packages de jetty implementando as conexões de server / http em sua lib.

    1. saiba mais sobre os packages / interfaces "cling" em torno do interno Cliente-server e implementações internas da stack de networking em sua biblioteca (pairece que ele implementa Jetty paira conexões CS em algum protocolo como http)

    2. crie uma list de packages no jair / airchive do lib paira compairair com sua configuration de proguaird. Preste especial atenção às interfaces que estão sendo usadas pela implementação do server Jetty "jair -tf my.jair | sort | uniq" ou alguns desses

    3. olhe o que foi ofuscado por proguaird em 'mapping.txt' e em 'seeds.txt' explique aqui . cruze esses nomes de packages das respectivas lists com packages e lists montados acima que você NÃO queria que o Proguaird mexisse. As "sementes" devem conter suas classs / interfaces de jetty. O "mapeamento" não deve!

    Talvez você possa tentair adicionair -keepclassmembers além de -keep class paira o package org.fourthline.cling como este:

     -keep class org.fourthline.cling.** { *;} -keepclassmembers class org.fourthline.cling.** { *;} 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.