Failed to connect using netty after add spdy codec on Android - android

I've written a server and a local proxy using netty. The project runs well on my pc, but when I change a bit to make it an android app, it just cannot work.
I tried many times and find that after insert the following code, things go wrong.
pipeline.addLast("spdyEncoder", new SpdyFrameEncoder(3));
pipeline.addLast("spdyDecoder", new SpdyFrameDecoder(3));
I compared the logs between adding or not the spdy codec, the difference is
"Could not find class 'com.jcraft.jzlib.Deflater', referenced from method io.netty.handler.codec.spdy.SpdyHeaderBlockJZlibEncoder.", SO i guess the problem is with the jzlib deflater, but I really don't know how to fix it. Can anybody help me, thanks a lot in advance.
Here is the LogCat:
09-22 03:35:15.761: D/Multiplex(863): initInstance
09-22 03:35:15.761: D/MultiplexChannelConnMgr(863): constructor
09-22 03:35:15.771: I/dalvikvm(863): Could not find method org.slf4j.LoggerFactory.getILoggerFactory, referenced from method io.netty.util.internal.logging.Slf4JLoggerFactory.<init>
09-22 03:35:15.771: W/dalvikvm(863): VFY: unable to resolve static method 28005: Lorg/slf4j/LoggerFactory;.getILoggerFactory ()Lorg/slf4j/ILoggerFactory;
09-22 03:35:15.771: D/dalvikvm(863): VFY: replacing opcode 0x71 at 0x0026
09-22 03:35:15.781: I/dalvikvm(863): Could not find method org.slf4j.LoggerFactory.getLogger, referenced from method io.netty.util.internal.logging.Slf4JLoggerFactory.newInstance
09-22 03:35:15.781: W/dalvikvm(863): VFY: unable to resolve static method 28006: Lorg/slf4j/LoggerFactory;.getLogger (Ljava/lang/String;)Lorg/slf4j/Logger;
09-22 03:35:15.794: D/dalvikvm(863): VFY: replacing opcode 0x71 at 0x0002
09-22 03:35:15.862: W/System.err(863): log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
09-22 03:35:15.871: W/System.err(863): log4j:WARN Please initialize the log4j system properly.
09-22 03:35:15.871: W/System.err(863): log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
09-22 03:35:16.110: D/dalvikvm(863): GC_CONCURRENT freed 121K, 9% free 2660K/2904K, paused 70ms+38ms, total 213ms
09-22 03:35:16.180: E/dalvikvm(863): Could not find class 'javassist.ClassPool', referenced from method io.netty.util.internal.JavassistTypeParameterMatcherGenerator.<clinit>
09-22 03:35:16.180: W/dalvikvm(863): VFY: unable to resolve new-instance 2027 (Ljavassist/ClassPool;) in Lio/netty/util/internal/JavassistTypeParameterMatcherGenerator;
09-22 03:35:16.180: D/dalvikvm(863): VFY: replacing opcode 0x22 at 0x0008
09-22 03:35:16.180: I/dalvikvm(863): Could not find method javassist.ClassPool.getAndRename, referenced from method io.netty.util.internal.JavassistTypeParameterMatcherGenerator.generate
09-22 03:35:16.190: W/dalvikvm(863): VFY: unable to resolve virtual method 16552: Ljavassist/ClassPool;.getAndRename (Ljava/lang/String;Ljava/lang/String;)Ljavassist/CtClass;
09-22 03:35:16.190: D/dalvikvm(863): VFY: replacing opcode 0x6e at 0x0032
09-22 03:35:16.190: I/dalvikvm(863): Could not find method javassist.ClassPool.appendClassPath, referenced from method io.netty.util.internal.JavassistTypeParameterMatcherGenerator.appendClassPath
09-22 03:35:16.190: W/dalvikvm(863): VFY: unable to resolve virtual method 16550: Ljavassist/ClassPool;.appendClassPath (Ljava/lang/String;)Ljavassist/ClassPath;
09-22 03:35:16.190: D/dalvikvm(863): VFY: replacing opcode 0x6e at 0x0002
09-22 03:35:16.190: W/dalvikvm(863): VFY: unable to find class referenced in signature (Ljavassist/ClassPath;)
09-22 03:35:16.190: I/dalvikvm(863): Could not find method javassist.ClassPool.appendClassPath, referenced from method io.netty.util.internal.JavassistTypeParameterMatcherGenerator.appendClassPath
09-22 03:35:16.190: W/dalvikvm(863): VFY: unable to resolve virtual method 16551: Ljavassist/ClassPool;.appendClassPath (Ljavassist/ClassPath;)Ljavassist/ClassPath;
09-22 03:35:16.190: D/dalvikvm(863): VFY: replacing opcode 0x6e at 0x0002
09-22 03:35:16.190: D/dalvikvm(863): DexOpt: unable to opt direct call 0x40a5 at 0x0b in Lio/netty/util/internal/JavassistTypeParameterMatcherGenerator;.<clinit>
09-22 03:35:16.200: D/dalvikvm(863): DexOpt: unable to opt direct call 0x40a4 at 0x16 in Lio/netty/util/internal/JavassistTypeParameterMatcherGenerator;.<clinit>
09-22 03:35:16.200: W/dalvikvm(863): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lio/netty/util/internal/JavassistTypeParameterMatcherGenerator;
09-22 03:35:16.260: D/MultiplexChannelConnMgr(863): Before connect to 10.108.112.239:9001
09-22 03:35:16.330: E/dalvikvm(863): Could not find class 'com.jcraft.jzlib.Deflater', referenced from method io.netty.handler.codec.spdy.SpdyHeaderBlockJZlibEncoder.<init>
09-22 03:35:16.330: W/dalvikvm(863): VFY: unable to resolve new-instance 574 (Lcom/jcraft/jzlib/Deflater;) in Lio/netty/handler/codec/spdy/SpdyHeaderBlockJZlibEncoder;
09-22 03:35:16.330: D/dalvikvm(863): VFY: replacing opcode 0x22 at 0x0005
09-22 03:35:16.340: W/dalvikvm(863): VFY: unable to resolve instance field 1051
09-22 03:35:16.340: D/dalvikvm(863): VFY: replacing opcode 0x54 at 0x0003
09-22 03:35:16.340: W/dalvikvm(863): VFY: unable to resolve instance field 1051
09-22 03:35:16.340: D/dalvikvm(863): VFY: replacing opcode 0x5b at 0x0049
09-22 03:35:16.350: W/dalvikvm(863): VFY: unable to resolve instance field 1051
09-22 03:35:16.350: D/dalvikvm(863): VFY: replacing opcode 0x5b at 0x000b
09-22 03:35:16.361: I/dalvikvm(863): Could not find method com.jcraft.jzlib.Deflater.deflateEnd, referenced from method io.netty.handler.codec.spdy.SpdyHeaderBlockJZlibEncoder.end
09-22 03:35:16.361: W/dalvikvm(863): VFY: unable to resolve virtual method 4173: Lcom/jcraft/jzlib/Deflater;.deflateEnd ()I
09-22 03:35:16.361: D/dalvikvm(863): VFY: replacing opcode 0x6e at 0x000b
09-22 03:35:16.361: D/dalvikvm(863): DexOpt: unable to opt direct call 0x104b at 0x07 in Lio/netty/handler/codec/spdy/SpdyHeaderBlockJZlibEncoder;.<init>
09-22 03:35:16.381: D/MultiplexChannelConnMgr(863): Catch error: null
**09-22 03:35:16.381: W/System.err(863): java.nio.channels.ClosedChannelException**

You need to add com.jcraft.jzlib to your classpath. This is done by adding jzlib jar.
http://www.jcraft.com/jzlib/

Related

Create a function to add .error to EditText

I have an app with many EditText, I want to make a function to add errors to them, for example, if a particular EditText.lenght() == 0, then it has to set an error "Error, field must not be empty" or so.
What I've tried
I have a function:
fun errorEmpty(et: EditText) {
if(et.length() > 0)
et.error = null
else {
et.error = "Error, field must not be empty"
et.requestFocus()
}
}
This one breaks the app:
var et = someEditText
errorEmpty(et)
This is the log for the last one
05-17 17:53:18.841 21899-21899/? D/dalvikvm: Late-enabling CheckJNI
05-17 17:53:19.091 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.view.Window$Callback.onPointerCaptureChanged, referenced from method android.support.v7.view.WindowCallbackWrapper.onPointerCaptureChanged
05-17 17:53:19.091 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve interface method 21221: Landroid/view/Window$Callback;.onPointerCaptureChanged (Z)V
05-17 17:53:19.091 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
05-17 17:53:19.091 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
05-17 17:53:19.091 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve interface method 21223: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
05-17 17:53:19.091 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve interface method 21225: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve interface method 21229: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 747: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 769: Landroid/content/res/TypedArray;.getType (I)I
05-17 17:53:19.101 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
05-17 17:53:19.101 21899-21919/com.example.name.exampleapp E/Qmage: onDecode : QmageDecodeFrame 20140421 Rev.6376
This is decoding
decoding stream->hasLength()
onDecode : QmageDecParseHeader call : QM
Qmage parsing for decoding ok
onDecode : QmageHeader.NinePatched 0
onDecode : QmageHeader Height() 12 Width() : 522 sampleSize : 1
Qmage Make Color table
SkBitmap::kIndex8_Config == config && 1 == sampleSize
onDecode : return true QM
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 527: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.getCodeCacheDir, referenced from method android.support.v4.content.ContextCompat.getCodeCacheDir
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 533: Landroid/content/Context;.getCodeCacheDir ()Ljava/io/File;
05-17 17:53:19.111 21899-21920/com.example.name.exampleapp E/Qmage: onDecode : QmageDecodeFrame 20140421 Rev.6376
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.111 21899-21920/com.example.name.exampleapp E/Qmage: This is decoding
decoding stream->hasLength()
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.ContextCompat.getColor
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 534: Landroid/content/Context;.getColor (I)I
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.ContextCompat.getColorStateList
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 535: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.getDataDir, referenced from method android.support.v4.content.ContextCompat.getDataDir
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 537: Landroid/content/Context;.getDataDir ()Ljava/io/File;
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.ContextCompat.getDrawable
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 538: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.ContextCompat.getNoBackupFilesDir
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 545: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.ContextCompat.isDeviceProtectedStorage
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 558: Landroid/content/Context;.isDeviceProtectedStorage ()Z
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.startForegroundService, referenced from method android.support.v4.content.ContextCompat.startForegroundService
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 573: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
05-17 17:53:19.111 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.111 21899-21920/com.example.name.exampleapp E/Qmage: onDecode : QmageDecParseHeader call : QM
Qmage parsing for decoding ok
onDecode : QmageHeader.NinePatched 0
onDecode : QmageHeader Height() 135 Width() : 522 sampleSize : 1
normal image decoding
onDecode : QmageDecodeFrame call : QM
05-17 17:53:19.161 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.support.design.widget.AppBarLayout.setKeyboardNavigationCluster, referenced from method android.support.design.widget.AppBarLayout.<init>
05-17 17:53:19.161 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 3053: Landroid/support/design/widget/AppBarLayout;.setKeyboardNavigationCluster (Z)V
05-17 17:53:19.161 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x006e
05-17 17:53:19.161 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.support.design.widget.AppBarLayout.setTouchscreenBlocksFocus, referenced from method android.support.design.widget.AppBarLayout.<init>
05-17 17:53:19.161 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 3056: Landroid/support/design/widget/AppBarLayout;.setTouchscreenBlocksFocus (Z)V
05-17 17:53:19.161 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x007f
05-17 17:53:19.181 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList
05-17 17:53:19.181 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 535: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
05-17 17:53:19.181 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
05-17 17:53:19.181 21899-21920/com.example.name.exampleapp E/Qmage: onDecode : return true QM
05-17 17:53:19.201 21899-21899/com.example.name.exampleapp E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
05-17 17:53:19.201 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve instanceof 206 (Landroid/graphics/drawable/RippleDrawable;) in Landroid/support/v7/widget/AppCompatImageHelper;
05-17 17:53:19.201 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/graphics/drawable/Icon;)
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.ImageButton.setImageIcon, referenced from method android.support.v7.widget.AppCompatImageButton.setImageIcon
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 21769: Landroid/widget/ImageButton;.setImageIcon (Landroid/graphics/drawable/Icon;)V
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0000
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 710: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 712: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeMaxTextSize, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeMaxTextSize
05-17 17:53:19.221 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 22111: Landroid/widget/TextView;.getAutoSizeMaxTextSize ()I
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeMinTextSize, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeMinTextSize
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 22112: Landroid/widget/TextView;.getAutoSizeMinTextSize ()I
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeStepGranularity, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeStepGranularity
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 22113: Landroid/widget/TextView;.getAutoSizeStepGranularity ()I
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeTextAvailableSizes, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeTextAvailableSizes
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 22114: Landroid/widget/TextView;.getAutoSizeTextAvailableSizes ()[I
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeTextType, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeTextType
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 22115: Landroid/widget/TextView;.getAutoSizeTextType ()I
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0007
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.TextView.setAutoSizeTextTypeUniformWithConfiguration, referenced from method android.support.v7.widget.AppCompatTextView.setAutoSizeTextTypeUniformWithConfiguration
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 22165: Landroid/widget/TextView;.setAutoSizeTextTypeUniformWithConfiguration (IIII)V
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.TextView.setAutoSizeTextTypeUniformWithPresetSizes, referenced from method android.support.v7.widget.AppCompatTextView.setAutoSizeTextTypeUniformWithPresetSizes
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 22166: Landroid/widget/TextView;.setAutoSizeTextTypeUniformWithPresetSizes ([II)V
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.TextView.setAutoSizeTextTypeWithDefaults, referenced from method android.support.v7.widget.AppCompatTextView.setAutoSizeTextTypeWithDefaults
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 22167: Landroid/widget/TextView;.setAutoSizeTextTypeWithDefaults (I)V
05-17 17:53:19.231 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
05-17 17:53:19.241 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeStepGranularity, referenced from method android.support.v7.widget.AppCompatTextHelper.loadFromAttributes
05-17 17:53:19.241 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 22113: Landroid/widget/TextView;.getAutoSizeStepGranularity ()I
05-17 17:53:19.241 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6e at 0x0163
05-17 17:53:19.241 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.text.StaticLayout$Builder.obtain, referenced from method android.support.v7.widget.AppCompatTextViewAutoSizeHelper.createStaticLayoutForMeasuring
05-17 17:53:19.241 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve static method 20411: Landroid/text/StaticLayout$Builder;.obtain (Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)Landroid/text/StaticLayout$Builder;
05-17 17:53:19.241 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x71 at 0x0014
05-17 17:53:19.311 21899-21899/com.example.name.exampleapp D/GC: <tid=21899> OES20 ===> GC Version : GC Ver rls_pxa988_KK44_GC13.20
05-17 17:53:19.361 21899-21899/com.example.name.exampleapp D/OpenGLRenderer: Enabling debug mode 0
05-17 17:53:19.391 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/graphics/drawable/Icon;)
05-17 17:53:19.391 21899-21899/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.ImageView.setImageIcon, referenced from method android.support.v7.widget.AppCompatImageView.setImageIcon
05-17 17:53:19.391 21899-21899/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 21814: Landroid/widget/ImageView;.setImageIcon (Landroid/graphics/drawable/Icon;)V
05-17 17:53:19.391 21899-21899/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0000
This one just doesn't do anything (it does not break the app):
errrorEmpty(someEditText)
Thanks in advance!
EDIT:
I've also tried:
fun errorEmpty(et: EditText): EditText {
if(et.length() > 0)
et.error = null
else {
et.error = "Error, field must not be empty"
et.requestFocus()
}
}return et
And then assigned the result to an EditText:
et = errorEmpty(et)
and it also breaks the app, this is the log:
05-17 18:46:38.262 22870-22870/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x71 at 0x0014
05-17 18:46:38.322 22870-22890/com.example.name.exampleapp E/Qmage: onDecode : QmageDecodeFrame 20140421 Rev.6376
This is decoding
decoding stream->hasLength()
onDecode : QmageDecParseHeader call : QM
Qmage parsing for decoding ok
onDecode : QmageHeader.NinePatched 0
onDecode : QmageHeader Height() 12 Width() : 522 sampleSize : 1
Qmage Make Color table
SkBitmap::kIndex8_Config == config && 1 == sampleSize
onDecode : return true QM
05-17 18:46:38.322 22870-22891/com.example.name.exampleapp E/Qmage: onDecode : QmageDecodeFrame 20140421 Rev.6376
05-17 18:46:38.342 22870-22891/com.example.name.exampleapp E/Qmage: This is decoding
decoding stream->hasLength()
05-17 18:46:38.352 22870-22870/com.example.name.exampleapp D/GC: <tid=22870> OES20 ===> GC Version : GC Ver rls_pxa988_KK44_GC13.20
05-17 18:46:38.352 22870-22891/com.example.name.exampleapp E/Qmage: onDecode : QmageDecParseHeader call : QM
05-17 18:46:38.362 22870-22891/com.example.name.exampleapp E/Qmage: Qmage parsing for decoding ok
onDecode : QmageHeader.NinePatched 0
onDecode : QmageHeader Height() 135 Width() : 522 sampleSize : 1
05-17 18:46:38.453 22870-22870/com.example.name.exampleapp D/OpenGLRenderer: Enabling debug mode 0
05-17 18:46:38.483 22870-22891/com.example.name.exampleapp E/Qmage: normal image decoding
onDecode : QmageDecodeFrame call : QM
05-17 18:46:38.533 22870-22870/com.example.name.exampleapp W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/graphics/drawable/Icon;)
05-17 18:46:38.533 22870-22870/com.example.name.exampleapp I/dalvikvm: Could not find method android.widget.ImageView.setImageIcon, referenced from method android.support.v7.widget.AppCompatImageView.setImageIcon
05-17 18:46:38.543 22870-22870/com.example.name.exampleapp W/dalvikvm: VFY: unable to resolve virtual method 21814: Landroid/widget/ImageView;.setImageIcon (Landroid/graphics/drawable/Icon;)V
05-17 18:46:38.543 22870-22870/com.example.name.exampleapp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0000
05-17 18:46:38.813 22870-22891/com.example.name.exampleapp E/Qmage: onDecode : return true QM
(I'm only posting what I think is the important part because of character restrictions)

Run an Android App

Can anyone kindly help me, please with this error?
07-06 21:22:04.794 8489-8489/? D/dalvikvm: Late-enabling CheckJNI
07-06 21:22:04.944 8489-8489/? I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
07-06 21:22:04.944 8489-8489/? W/dalvikvm: VFY: unable to resolve interface method 15403: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
07-06 21:22:04.944 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
07-06 21:22:04.944 8489-8489/? W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
07-06 21:22:04.944 8489-8489/? I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
07-06 21:22:04.944 8489-8489/? W/dalvikvm: VFY: unable to resolve interface method 15405: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
07-06 21:22:04.944 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
07-06 21:22:04.944 8489-8489/? I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
07-06 21:22:04.944 8489-8489/? W/dalvikvm: VFY: unable to resolve interface method 15409: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
07-06 21:22:04.944 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
07-06 21:22:04.954 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 477: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
07-06 21:22:04.954 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
07-06 21:22:04.954 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 499: Landroid/content/res/TypedArray;.getType (I)I
07-06 21:22:04.954 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
07-06 21:22:04.954 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 268: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
07-06 21:22:04.954 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getCodeCacheDir, referenced from method android.support.v4.content.ContextCompat.getCodeCacheDir
07-06 21:22:04.954 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 273: Landroid/content/Context;.getCodeCacheDir ()Ljava/io/File;
07-06 21:22:04.954 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.ContextCompat.getColor
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 274: Landroid/content/Context;.getColor (I)I
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.ContextCompat.getColorStateList
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 275: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getDataDir, referenced from method android.support.v4.content.ContextCompat.getDataDir
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 277: Landroid/content/Context;.getDataDir ()Ljava/io/File;
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.ContextCompat.getDrawable
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 278: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.ContextCompat.getNoBackupFilesDir
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 285: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.ContextCompat.isDeviceProtectedStorage
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 298: Landroid/content/Context;.isDeviceProtectedStorage ()Z
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.984 8489-8489/? D/AndroidRuntime: Shutting down VM
07-06 21:22:04.984 8489-8489/? W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41692c08)
07-06 21:22:04.994 8489-8489/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.lenovo.app, PID: 8489
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.lenovo.app/com.example.lenovo.app.MainActivity}: java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
at android.app.ActivityThread.access$900(ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5511)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat.
at android.support.v7.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:713)
at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:194)
at android.support.v7.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:81)
at android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:129)
at android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:152)
at android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:29)
at android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:53)
at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:204)
at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:184)
at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:518)
at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:70)
at com.example.lenovo.app.MainActivity.onCreate(MainActivity.java:10)
at android.app.Activity.performCreate(Activity.java:5322)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2303)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391) 
at android.app.ActivityThread.access$900(ActivityThread.java:166) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:146) 
at android.app.ActivityThread.main(ActivityThread.java:5511) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099) 
at dalvik.system.NativeStart.main(Native Method) 
07-06 21:22:07.814 8489-8489/? I/Process: Sending signal. PID: 8489 SIG: 9
add this code to your app.gradle :
android {
//....something
defaultConfig {
generatedDensities = []
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
Yo need to implement correctly VectorDrawableCompat:
1- Make sure that your gradle is updated at less at v2.3.3
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
2- In your Gradle:
android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
}
dependencies {
compile 'com.android.support:appcompat-v7:23.2.0'
}
3- In your Application class:
#Override
public void onCreate() {
super.onCreate();
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
4- In your xmls use app:srcCompat instead of android:src
Note:
If you are enabling vector compat in each activity like this
static {
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
please don't forget extend your activity from AppCompatActivity
If still not works please provide us more information about your project

Could not find class 'android.os.PersistableBundle', referenced from method com.xxx.CartoonActivity.access$super in android 4.4.2

hey guys!
I'm losing my mind. I have a custom gridview class that I have put it inside a scrollview. I have no problem in devices with android +5, but in some devices I got this error:
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.ablazephoenix.mycartoon.CartoonActivity.access$super
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon W/dalvikvm: VFY: unable to resolve check-cast 296 (Landroid/os/PersistableBundle;) in Lcom/ablazephoenix/mycartoon/CartoonActivity;
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon D/dalvikvm: VFY: replacing opcode 0x1f at 0x00fc
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method com.ablazephoenix.mycartoon.CartoonActivity.access$super
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon W/dalvikvm: VFY: unable to resolve virtual method 688: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon D/dalvikvm: VFY: replacing opcode 0x6f at 0x010c
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon I/dalvikvm: Could not find method android.app.Activity.onVisibleBehindCanceled, referenced from method com.ablazephoenix.mycartoon.CartoonActivity.access$super
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon W/dalvikvm: VFY: unable to resolve virtual method 294: Landroid/app/Activity;.onVisibleBehindCanceled ()V
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon D/dalvikvm: VFY: replacing opcode 0x6f at 0x011c
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon I/dalvikvm: Could not find method android.content.ContextWrapper.deleteSharedPreferences, referenced from method com.ablazephoenix.mycartoon.CartoonActivity.access$super
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon W/dalvikvm: VFY: unable to resolve virtual method 749: Landroid/content/ContextWrapper;.deleteSharedPreferences (Ljava/lang/String;)Z
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon D/dalvikvm: VFY: replacing opcode 0x6f at 0x0126
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon I/dalvikvm: Could not find method android.app.Activity.onWindowStartingActionMode, referenced from method com.ablazephoenix.mycartoon.CartoonActivity.access$super
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon W/dalvikvm: VFY: unable to resolve virtual method 298: Landroid/app/Activity;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon D/dalvikvm: VFY: replacing opcode 0x6f at 0x0151
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon I/dalvikvm: Could not find method android.app.Activity.dismissKeyboardShortcutsHelper, referenced from method com.ablazephoenix.mycartoon.CartoonActivity.access$super
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon W/dalvikvm: VFY: unable to resolve virtual method 168: Landroid/app/Activity;.dismissKeyboardShortcutsHelper ()V
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon D/dalvikvm: VFY: replacing opcode 0x6f at 0x0157
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.ablazephoenix.mycartoon.CartoonActivity.access$super
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon W/dalvikvm: VFY: unable to resolve check-cast 296 (Landroid/os/PersistableBundle;) in Lcom/ablazephoenix/mycartoon/CartoonActivity;
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon D/dalvikvm: VFY: replacing opcode 0x1f at 0x01ba
08-25 01:24:56.890 6673-6673/com.ablazephoenix.mycartoon E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method com.ablazephoenix.mycartoon.CartoonActivity.access$super
so guys, before I lose my my mind(!) please tell me what this error means? what can I do to resolve this problem?
There is no problem. This is perfectly normal behavior. It indicates that you have code that references classes or methods that do not exist on the version of Android that you are running on. So long as you do not execute any of that code, you are fine. If you do execute some of that code, you will crash, and LogCat will show a Java stack trace showing the source of the error.

OnUnbind of Accessibility Service is not called

I have created one Accessibility Service but if I switch off the accessibility service(for my app) from settings panel, and the app is not alive, onUnbind of service is not called. onUnbind is called everytime if app is alive.
07-13 11:47:24.327 10974-10974/com.example.tarun.myappforkeyevent I/dalvikvm: Could not find method android.content.Context.getSystemService, referenced from method service.MyAccessibilityService.access$super
07-13 11:47:24.327 10974-10974/com.example.tarun.myappforkeyevent W/dalvikvm: VFY: unable to resolve virtual method 502: Landroid/content/Context;.getSystemService (Ljava/lang/Class;)Ljava/lang/Object;
07-13 11:47:24.329 10974-10974/com.example.tarun.myappforkeyevent D/dalvikvm: VFY: replacing opcode 0x6f at 0x0035
07-13 11:47:24.329 10974-10974/com.example.tarun.myappforkeyevent I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method service.MyAccessibilityService.access$super
07-13 11:47:24.330 10974-10974/com.example.tarun.myappforkeyevent W/dalvikvm: VFY: unable to resolve virtual method 484: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
07-13 11:47:24.331 10974-10974/com.example.tarun.myappforkeyevent D/dalvikvm: VFY: replacing opcode 0x6f at 0x004f
07-13 11:47:24.331 10974-10974/com.example.tarun.myappforkeyevent I/dalvikvm: Could not find method android.accessibilityservice.AccessibilityService.getWindows, referenced from method service.MyAccessibilityService.access$super
07-13 11:47:24.332 10974-10974/com.example.tarun.myappforkeyevent W/dalvikvm: VFY: unable to resolve virtual method 25: Landroid/accessibilityservice/AccessibilityService;.getWindows ()Ljava/util/List;
07-13 11:47:24.333 10974-10974/com.example.tarun.myappforkeyevent D/dalvikvm: VFY: replacing opcode 0x6f at 0x0080
07-13 11:47:24.333 10974-10974/com.example.tarun.myappforkeyevent I/dalvikvm: Could not find method android.content.ContextWrapper.getCodeCacheDir, referenced from method service.MyAccessibilityService.access$super
07-13 11:47:24.334 10974-10974/com.example.tarun.myappforkeyevent W/dalvikvm: VFY: unable to resolve virtual method 555: Landroid/content/ContextWrapper;.getCodeCacheDir ()Ljava/io/File;
07-13 11:47:24.335 10974-10974/com.example.tarun.myappforkeyevent D/dalvikvm: VFY: replacing opcode 0x6f at 0x00e6
Why is it showing these errors instead of calling onUnbind?

Log cat unknown error on while running AccessibilityService in API 16 android

I'm having an unknown logcat warning and error message shown while I tried to run my code in API 16 of android. It's working in Android L.
I'm trying to fetch notifications using the code.
Could anyone know this. Please help.
07-09 20:52:45.850 26369-26369/? D/dalvikvm﹕ Late-enabling CheckJNI
07-09 20:52:46.681 26369-26369/com.example.tony.acctest E/Trace﹕ error opening trace file: No such file or directory (2)
07-09 20:52:47.362 26369-26369/com.example.tony.acctest I/dalvikvm﹕ Could not find method android.view.ViewGroup.onRtlPropertiesChanged, referenced from method android.support.v7.widget.Toolbar.onRtlPropertiesChanged
07-09 20:52:47.362 26369-26369/com.example.tony.acctest W/dalvikvm﹕ VFY: unable to resolve virtual method 13334: Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V
07-09 20:52:47.362 26369-26369/com.example.tony.acctest D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0007
07-09 20:52:47.372 26369-26369/com.example.tony.acctest I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
07-09 20:52:47.372 26369-26369/com.example.tony.acctest W/dalvikvm﹕ VFY: unable to resolve virtual method 412: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
07-09 20:52:47.372 26369-26369/com.example.tony.acctest D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
07-09 20:52:47.372 26369-26369/com.example.tony.acctest I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
07-09 20:52:47.372 26369-26369/com.example.tony.acctest W/dalvikvm﹕ VFY: unable to resolve virtual method 434: Landroid/content/res/TypedArray;.getType (I)I
07-09 20:52:47.372 26369-26369/com.example.tony.acctest D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
I'm not able to run the service, it's not working. As per my knowledge the code should work from API level 14.
To refer code, please take a look at my answer at Cannot access notification through Android AccessibilityService
The logcat error is still shwoing, but I found it. The code worked when I compiled it with API version 14.

Categories

Resources