Important details
I have added the dummy class listed here
https://realm.io/docs/java/latest/#jackson-databind
And everything works well on Lollipop but as soon as I created a Genymotion emulator for 4.1 Jelly Bean and try to push the application I get the errors listed below which looks like it is trying to resolve the OnSubscribe interface defined within rxjava Observable which I am dummying.
I was not using Proguard for the below stack, but after setting it up I am getting the same.
Is this expected and should be ignored? I have one or two other warn messages I am trying to track down as well.
03-03 16:55:58.510 2017-2017/com.armssoftware.android I/dalvikvm:
Failed resolving Lio/realm/rx/RealmObservableFactory$4; interface
7525 'Lrx/Observable$OnSubscribe;'
03-03 16:55:58.510 2017-2017/com.armssoftware.android W/dalvikvm:
Link of class 'Lio/realm/rx/RealmObservableFactory$4;' failed
03-03 16:55:58.510 2017-2017/com.armssoftware.android E/dalvikvm:
Could not find class 'io.realm.rx.RealmObservableFactory$4',
referenced from method
io.realm.rx.RealmObservableFactory.getObjectObservable
03-03 16:55:58.510 2017-2017/com.armssoftware.android W/dalvikvm:
VFY: unable to resolve new-instance 6678
(Lio/realm/rx/RealmObservableFactory$4;) in
Lio/realm/rx/RealmObservableFactory;
03-03 16:55:58.510 2017-2017/com.armssoftware.android D/dalvikvm:
VFY: replacing opcode 0x22 at 0x0000
03-03 16:55:58.510 2017-2017/com.armssoftware.android I/dalvikvm:
Failed resolving Lio/realm/rx/RealmObservableFactory$3; interface
7525 'Lrx/Observable$OnSubscribe;'
03-03 16:55:58.510 2017-2017/com.armssoftware.android W/dalvikvm:
Link of class 'Lio/realm/rx/RealmObservableFactory$3;' failed
03-03 16:55:58.510 2017-2017/com.armssoftware.android E/dalvikvm:
Could not find class 'io.realm.rx.RealmObservableFactory$3',
referenced from method
io.realm.rx.RealmObservableFactory.getRealmResultsObservable
03-03 16:55:58.510 2017-2017/com.armssoftware.android W/dalvikvm:
VFY: unable to resolve new-instance 6675
(Lio/realm/rx/RealmObservableFactory$3;) in
Lio/realm/rx/RealmObservableFactory;
03-03 16:55:58.510 2017-2017/com.armssoftware.android D/dalvikvm:
VFY: replacing opcode 0x22 at 0x0000
03-03 16:55:58.510 2017-2017/com.armssoftware.android I/dalvikvm:
Failed resolving Lio/realm/rx/RealmObservableFactory$2; interface
7525 'Lrx/Observable$OnSubscribe;'
03-03 16:55:58.510 2017-2017/com.armssoftware.android W/dalvikvm:
Link of class 'Lio/realm/rx/RealmObservableFactory$2;' failed
03-03 16:55:58.510 2017-2017/com.armssoftware.android E/dalvikvm:
Could not find class 'io.realm.rx.RealmObservableFactory$2',
referenced from method io.realm.rx.RealmObservableFactory.from
03-03 16:55:58.510 2017-2017/com.armssoftware.android W/dalvikvm:
VFY: unable to resolve new-instance 6672
(Lio/realm/rx/RealmObservableFactory$2;) in
Lio/realm/rx/RealmObservableFactory;
03-03 16:55:58.510 2017-2017/com.armssoftware.android D/dalvikvm:
VFY: replacing opcode 0x22 at 0x0003
03-03 16:55:58.510 2017-2017/com.armssoftware.android I/dalvikvm:
Failed resolving Lio/realm/rx/RealmObservableFactory$1; interface
7525 'Lrx/Observable$OnSubscribe;'
03-03 16:55:58.510 2017-2017/com.armssoftware.android W/dalvikvm:
Link of class 'Lio/realm/rx/RealmObservableFactory$1;' failed
03-03 16:55:58.510 2017-2017/com.armssoftware.android E/dalvikvm:
Could not find class 'io.realm.rx.RealmObservableFactory$1',
referenced from method io.realm.rx.RealmObservableFactory.from
03-03 16:55:58.510 2017-2017/com.armssoftware.android W/dalvikvm:
VFY: unable to resolve new-instance 6669
(Lio/realm/rx/RealmObservableFactory$1;) in
Lio/realm/rx/RealmObservableFactory;
03-03 16:55:58.510 2017-2017/com.armssoftware.android D/dalvikvm:
VFY: replacing opcode 0x22 at 0x0003
As it turns out this was not what was causing the Application to crash, it was just one of the many error messages being logged when running on dalvik instead of Art.
The issue I encountered was trying to run an app that was using Google Services on a version before 4.2.2 as instructed here.
https://developers.google.com/android/guides/setup
"The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher."
So I still see the following error when deploying but the app seems to be functioning correctly.
03-03 15:51:20.063 16882-16921/com.armssoftware.android I/dalvikvm:
Failed resolving Lio/realm/a/a$1; interface 5529
'Lrx/Observable$OnSubscribe;' 03-03 15:51:20.063
16882-16921/com.armssoftware.android W/dalvikvm: Link of class
'Lio/realm/a/a$1;' failed 03-03 15:51:20.063
16882-16921/com.armssoftware.android E/dalvikvm: Could not find class
'io.realm.a.a$1', referenced from method io.realm.a.a.a 03-03
15:51:20.063 16882-16921/com.armssoftware.android W/dalvikvm: VFY:
unable to resolve new-instance 4885 (Lio/realm/a/a$1;) in
Lio/realm/a/a; 03-03 15:51:20.063 16882-16921/com.armssoftware.android
D/dalvikvm: VFY: replacing opcode 0x22 at 0x0000 03-03 15:51:20.063
16882-16921/com.armssoftware.android I/dalvikvm: Failed resolving
Lio/realm/a/a$1; interface 5529 'Lrx/Observable$OnSubscribe;' 03-03
15:51:20.063 16882-16921/com.armssoftware.android W/dalvikvm: Link of
class 'Lio/realm/a/a$1;' failed 03-03 15:51:20.063
16882-16921/com.armssoftware.android D/dalvikvm: DexOpt: unable to opt
direct call 0x8e17 at 0x02 in Lio/realm/a/a;.a 03-03 15:51:20.063
16882-16921/com.armssoftware.android D/dalvikvm: Trying to load lib
/data/app-lib/com.armssoftware.android-1/librealm-jni.so 0xa63d1538
03-03 15:51:20.063 16882-16921/com.armssoftware.android D/dalvikvm:
Added shared lib
/data/app-lib/com.armssoftware.android-1/librealm-jni.so 0xa63d1538
In Realm documentation, specific section about Jackson say that the solucion is adding RxJAVA dependency in your project.
In my personal case, it's worked.
Related
I'm trying to load with Picasso some images that I get from client's backend but on android 4.4 it doesn't work. All other urls from the internet that I tried work fine except for those that I get from backend.
private ImageView imageView;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
imageView = (ImageView) findViewById(R.id.image);
Picasso.with(this)
.load("https://sdo.gsfc.nasa.gov/assets/img/latest/latest_2048_HMIIC.jpg")
.into(imageView);
}
If I replace https://sdo.gsfc.nasa.gov/assets/img/latest/latest_2048_HMIIC.jpg with any other url from web, it will work fine.
Logs that I get:
09-04 08:16:42.261 18094-18094/? D/dalvikvm: Late-enabling CheckJNI
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve interface method 17054: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve interface method 17056: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve interface method 17060: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve virtual method 475: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
09-04 08:16:42.361 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
09-04 08:16:42.371 18094-18094/com.witanowski.myapplication I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
09-04 08:16:42.371 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve virtual method 497: Landroid/content/res/TypedArray;.getType (I)I
09-04 08:16:42.371 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
09-04 08:16:42.441 18094-18094/com.witanowski.myapplication I/dalvikvm: Could not find method android.widget.FrameLayout.startActionModeForChild, referenced from method android.support.v7.widget.ActionBarContainer.startActionModeForChild
09-04 08:16:42.441 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve virtual method 17491: Landroid/widget/FrameLayout;.startActionModeForChild (Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
09-04 08:16:42.441 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x6f at 0x0002
09-04 08:16:42.451 18094-18094/com.witanowski.myapplication I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList
09-04 08:16:42.451 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve virtual method 284: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
09-04 08:16:42.451 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
09-04 08:16:42.461 18094-18094/com.witanowski.myapplication I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
09-04 08:16:42.461 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve virtual method 438: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
09-04 08:16:42.461 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
09-04 08:16:42.461 18094-18094/com.witanowski.myapplication I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
09-04 08:16:42.461 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve virtual method 440: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
09-04 08:16:42.461 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
09-04 08:16:42.471 18094-18094/com.witanowski.myapplication E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
09-04 08:16:42.471 18094-18094/com.witanowski.myapplication W/dalvikvm: VFY: unable to resolve instanceof 144 (Landroid/graphics/drawable/RippleDrawable;) in Landroid/support/v7/widget/AppCompatImageHelper;
09-04 08:16:42.471 18094-18094/com.witanowski.myapplication D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c
09-04 08:16:42.511 18094-18094/com.witanowski.myapplication W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
09-04 08:16:42.531 18094-18094/com.witanowski.myapplication D/Picasso: Main created [R0] Request{https://btv.leankr.com/api/v1/thumbs/640x360/RTL9/programs/RTL9__112-Unite-durgence.jpg}
09-04 08:16:42.531 18094-18134/com.witanowski.myapplication D/Picasso: Hunter executing [R0]+9ms
09-04 08:16:42.531 18094-18132/com.witanowski.myapplication D/Picasso: Dispatcher enqueued [R0]+8ms
09-04 08:16:42.601 18094-18094/com.witanowski.myapplication I/Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: RGURRAM_AU_LINUX_ANDROID_LNX.LA.3.5.2.2_RB1.04.04.04.087.030+PATCH[ES]_msm8974_LNX.LA.3.5.2.2_RB1__release_ENGG ()
OpenGL ES Shader Compiler Version: E031.24.00.15
Build Date: 08/12/14 Tue
Local Branch:
Remote Branch: quic/LNX.LA.3.5.2.2_rb1
Local Patches: 8b00bd16f3c1d9d35a2fa902df5e679888d2b2e3 Fixes an llvm crash with mini dEQP apk
38bad22e162dead4e008444520a0144c78a347bd Fixes a potential dEQP crash.
ce345e1c45c2ae2d1fb2cb125c8d2574f1af5f95 Rev
09-04 08:16:42.621 18094-18094/com.witanowski.myapplication D/OpenGLRenderer: Enabling debug mode 0
09-04 08:16:42.711 18094-18094/com.witanowski.myapplication I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#43ae7788 time:21977122
09-04 08:16:43.771 18094-18132/com.witanowski.myapplication D/Picasso: Dispatcher retrying [R0]+1246ms
09-04 08:16:43.781 18094-18164/com.witanowski.myapplication D/Picasso: Hunter executing [R0]+1253ms
09-04 08:16:44.731 18094-18132/com.witanowski.myapplication D/Picasso: Dispatcher retrying [R0]+2201ms
09-04 08:16:44.731 18094-18181/com.witanowski.myapplication D/Picasso: Hunter executing [R0]+2204ms
09-04 08:16:44.751 18094-18132/com.witanowski.myapplication D/Picasso: Dispatcher batched [R0]+2224ms for error
09-04 08:16:44.951 18094-18094/com.witanowski.myapplication D/Picasso: Main errored [R0]+2429ms
09-04 08:16:44.961 18094-18132/com.witanowski.myapplication D/Picasso: Dispatcher delivered [R0]+2430ms
I am thinking that the backend image size is too huge so picasso take's time to load on imageview. so use placeholder and error methods of picasso and wait for 20 sec I think it will be load.
Picasso.get()
.load(url)
.placeholder(R.drawable.user_placeholder)
.error(R.drawable.user_placeholder_error)
.into(imageView);
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?
I'm using RecyclerView in my app and my app just hangs (doesn't quit, just animations stop and app becomes completely unresponsive) with the following logs in console:
05-01 09:23:39.075 21296-21296/com.ulouder.ulouder D/dalvikvm: Trying to load lib /data/app-lib/com.ulouder.ulouder-1/libuLouderNative.so 0x41db4c90
05-01 09:23:39.075 21296-21296/com.ulouder.ulouder D/dalvikvm: Added shared lib /data/app-lib/com.ulouder.ulouder-1/libuLouderNative.so 0x41db4c90
05-01 09:23:39.075 21296-21296/com.ulouder.ulouder D/dalvikvm: No JNI_OnLoad found in /data/app-lib/com.ulouder.ulouder-1/libuLouderNative.so 0x41db4c90, skipping init
05-01 09:23:39.345 21296-21296/com.ulouder.ulouder I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#41dab7c8 time:89397538
05-01 09:23:39.350 2281-2319/system_process I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{430106a0 u0 com.ulouder.ulouder/com.ulouder.activities.MainActivity t19} time:89397539
05-01 09:23:42.540 21296-21741/com.ulouder.ulouder D/uLouder: [01 23 2016 09:23:42] Fired event with data: feed loaded nearby
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.isUpdated ()Z from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.isUpdated, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17616: Landroid/support/v7/widget/RecyclerView$ViewHolder;.isUpdated ()Z
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x0031
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.flagRemovedAndOffsetPosition (IIZ)V from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.flagRemovedAndOffsetPosition, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17600: Landroid/support/v7/widget/RecyclerView$ViewHolder;.flagRemovedAndOffsetPosition (IIZ)V
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x0053
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.isRemoved ()Z from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.isRemoved, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17613: Landroid/support/v7/widget/RecyclerView$ViewHolder;.isRemoved ()Z
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x0058
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.clearPayload ()V from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.clearPayload, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17595: Landroid/support/v7/widget/RecyclerView$ViewHolder;.clearPayload ()V
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x007c
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.isAdapterPositionUnknown ()Z from Lcom/ulouder/viewholders/PostViewHolder;)
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.isAdapterPositionUnknown, referenced from method com.ulouder.viewholders.PostViewHolder.access$super
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder W/dalvikvm: VFY: unable to resolve virtual method 17609: Landroid/support/v7/widget/RecyclerView$ViewHolder;.isAdapterPositionUnknown ()Z
05-01 09:23:42.720 21296-21296/com.ulouder.ulouder D/dalvikvm: VFY: replacing opcode 0x6f at 0x0086
...
It just goes on for many methods of RecyclerView, crashing the whole app (or thread) with this at the end of the log:
05-01 09:23:42.730 21296-21296/com.ulouder.ulouder W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41873ce0)
Why am I getting this? This happens on real device (Samsung Galaxy S3) with Android 4.4.4 (API 19) while there's no problem with my emulator with Marshmallow.
Once again, Android was misleading. There was nothing to do with those error messages. There was an actual null pointer exception on view binding which crashed the whole thread, but somehow it wasn't reported correctly to logcat.
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.
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/