output
I want to read excel file in Maps for loading districts in Samsung j5 device is working perfectly without error
when i start using HTC 516 as emulator (real device) then POI-3.13-Library start throwing this error i may not able to fix the error my excel file is simple have two columns please suggest me better solution for problem
04-22 16:07:58.280 5264-5264/kyp.E/dalvikvm: Could not find class 'org.apache.poi.hpsf.MutablePropertySet', referenced from method org.apache.poi.POIDocument.writePropertySet
04-22 16:07:58.280 5264-5264/kyp.W/dalvikvm: VFY: unable to resolve new-instance 8728 (Lorg/apache/poi/hpsf/MutablePropertySet;) in Lorg/apache/poi/POIDocument;
04-22 16:07:58.280 5264-5264/kyp.D/dalvikvm: VFY: replacing opcode 0x22 at 0x0000
04-22 16:07:58.280 5264-5264/kyp.W/dalvikvm: VFY: unable to resolve exception class 8737 (Lorg/apache/poi/hpsf/WritingNotSupportedException;)
04-22 16:07:58.280 5264-5264/kyp.W/dalvikvm: VFY: unable to find exception handler at addr 0x44
04-22 16:07:58.280 5264-5264/kyp.W/dalvikvm: VFY: rejected Lorg/apache/poi/POIDocument;.writePropertySet (Ljava/lang/String;Lorg/apache/poi/hpsf/PropertySet;Lorg/apache/poi/poifs/filesystem/NPOIFSFileSystem;)V
04-22 16:07:58.280 5264-5264/kyp.W/dalvikvm: VFY: rejecting opcode 0x0d at 0x0044
04-22 16:07:58.280 5264-5264/kyp.W/dalvikvm: VFY: rejected Lorg/apache/poi/POIDocument;.writePropertySet (Ljava/lang/String;Lorg/apache/poi/hpsf/PropertySet;Lorg/apache/poi/poifs/filesystem/NPOIFSFileSystem;)V
04-22 16:07:58.290 5264-5264/kyp.W/dalvikvm: Verifier rejected class Lorg/apache/poi/POIDocument;
04-22 16:07:58.290 5264-5264/kyp.D/AndroidRuntime: Shutting down VM
04-22 16:07:58.290 5264-5264/kyp.W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x420048b0)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: FATAL EXCEPTION: main
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: java.lang.VerifyError: org/apache/poi/POIDocument
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at kyp..MapsActivity.readexcel(MapsActivity.java:788)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at kyp..MapsActivity.onCreate(MapsActivity.java:110)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5133)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2264)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at android.app.ActivityThread.access$600(ActivityThread.java:144)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1259)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
04-22 16:07:58.290 5264-5264/kyp. E/AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
04-22 16:07:58.290 5264-5264/kyp. E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5136)
04-22 16:07:58.290 5264-5264/kyp. E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
04-22 16:07:58.290 5264-5264/kyp.app E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:525)
04-22 16:07:58.290 5264-5264/kyp.app E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
04-22 16:07:58.290 5264-5264/kyp. E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
04-22 16:07:58.290 5264-5264/kyp.E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
04-22 16:08:00.310 5264-5354/kyp.D/dalvikvm: GC_FOR_ALLOC freed 569K, 13% free 4757K/5456K, paused 17ms, total 17ms
It is likely related to the version of Android, there were major changes in 5.x.
If you are going to use 5.x then take a look at https://github.com/andruhon/android5xlsx for a way to use POI fully on Android.
If you need Android 4.x support, then please refer to https://github.com/andruhon/AndroidReadXLSX
Furthermore there is an early version of another approach at https://github.com/centic9/poi-on-android/ which allows to build a single jar for Apache POI with all the required dependencies. This one likely also required Android 5.x or newer due to the large size of the jar-file.
Related
This question already has answers here:
Can not find a View with findViewById()
(4 answers)
What is a NullPointerException, and how do I fix it?
(12 answers)
What is a stack trace, and how can I use it to debug my application errors?
(7 answers)
Closed 5 years ago.
03-30 23:49:56.536 15105-15105/? D/dalvikvm: Late-enabling CheckJNI
03-30 23:49:56.560 15105-15111/? E/jdwp: Failed writing handshake
bytes: Broken pipe (-1 of 14) 03-30 23:49:56.560 15105-15111/?
D/dalvikvm: Debugger has detached; object registry had 0 entries 03-30
23:49:56.600 15105-15105/? I/dalvikvm: Could not find method
android.view.Window$Callback.onProvideKeyboardShortcuts, referenced
from method
android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
03-30 23:49:56.600 15105-15105/? W/dalvikvm: VFY: unable to resolve
interface method 21845:
Landroid/view/Window$Callback;.onProvideKeyboardShortcuts
(Ljava/util/List;Landroid/view/Menu;I)V 03-30 23:49:56.600
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 03-30
23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to find class
referenced in signature (Landroid/view/SearchEvent;) 03-30
23:49:56.604 15105-15105/? I/dalvikvm: Could not find method
android.view.Window$Callback.onSearchRequested, referenced from method
android.support.v7.view.WindowCallbackWrapper.onSearchRequested 03-30
23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to resolve
interface method 21847:
Landroid/view/Window$Callback;.onSearchRequested
(Landroid/view/SearchEvent;)Z 03-30 23:49:56.604 15105-15105/?
D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 03-30 23:49:56.604
15105-15105/? I/dalvikvm: Could not find method
android.view.Window$Callback.onWindowStartingActionMode, referenced
from method
android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
03-30 23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to resolve
interface method 21851:
Landroid/view/Window$Callback;.onWindowStartingActionMode
(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode; 03-30
23:49:56.604 15105-15105/? D/dalvikvm: VFY: replacing opcode 0x72 at
0x0002 03-30 23:49:56.604 15105-15105/? I/dalvikvm: Could not find
method android.content.res.TypedArray.getChangingConfigurations,
referenced from method
android.support.v7.widget.TintTypedArray.getChangingConfigurations
03-30 23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to resolve
virtual method 502:
Landroid/content/res/TypedArray;.getChangingConfigurations ()I 03-30
23:49:56.604 15105-15105/? D/dalvikvm: VFY: replacing opcode 0x6e at
0x0002 03-30 23:49:56.604 15105-15105/? I/dalvikvm: Could not find
method android.content.res.TypedArray.getType, referenced from method
android.support.v7.widget.TintTypedArray.getType 03-30 23:49:56.604
15105-15105/? W/dalvikvm: VFY: unable to resolve virtual method 524:
Landroid/content/res/TypedArray;.getType (I)I 03-30 23:49:56.604
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008 03-30
23:49:56.636 15105-15105/? I/dalvikvm: Could not find method
android.widget.FrameLayout.startActionModeForChild, referenced from
method
android.support.v7.widget.ActionBarContainer.startActionModeForChild
03-30 23:49:56.636 15105-15105/? W/dalvikvm: VFY: unable to resolve
virtual method 22329:
Landroid/widget/FrameLayout;.startActionModeForChild
(Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
03-30 23:49:56.640 15105-15105/? D/dalvikvm: VFY: replacing opcode
0x6f at 0x0002 03-30 23:49:56.640 15105-15105/? I/dalvikvm: Could not
find method android.content.Context.getColorStateList, referenced from
method
android.support.v7.content.res.AppCompatResources.getColorStateList
03-30 23:49:56.640 15105-15105/? W/dalvikvm: VFY: unable to resolve
virtual method 315: Landroid/content/Context;.getColorStateList
(I)Landroid/content/res/ColorStateList; 03-30 23:49:56.640
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006 03-30
23:49:56.652 15105-15105/? I/dalvikvm: Could not find method
android.content.res.Resources.getDrawable, referenced from method
android.support.v7.widget.ResourcesWrapper.getDrawable 03-30
23:49:56.652 15105-15105/? W/dalvikvm: VFY: unable to resolve virtual
method 465: Landroid/content/res/Resources;.getDrawable
(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
03-30 23:49:56.652 15105-15105/? D/dalvikvm: VFY: replacing opcode
0x6e at 0x0002 03-30 23:49:56.652 15105-15105/? I/dalvikvm: Could not
find method android.content.res.Resources.getDrawableForDensity,
referenced from method
android.support.v7.widget.ResourcesWrapper.getDrawableForDensity 03-30
23:49:56.652 15105-15105/? W/dalvikvm: VFY: unable to resolve virtual
method 467: Landroid/content/res/Resources;.getDrawableForDensity
(IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
03-30 23:49:56.652 15105-15105/? D/dalvikvm: VFY: replacing opcode
0x6e at 0x0002 03-30 23:49:56.660 15105-15105/? E/dalvikvm: Could not
find class 'android.graphics.drawable.RippleDrawable', referenced from
method
android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
03-30 23:49:56.660 15105-15105/? W/dalvikvm: VFY: unable to resolve
instanceof 150 (Landroid/graphics/drawable/RippleDrawable;) in
Landroid/support/v7/widget/AppCompatImageHelper; 03-30 23:49:56.660
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c 03-30
23:49:56.680 15105-15108/? D/dalvikvm: GC_CONCURRENT freed 234K, 22%
free 2639K/3364K, paused 1ms+2ms, total 9ms 03-30 23:49:56.692
15105-15105/? D/dalvikvm: GC_FOR_ALLOC freed 31K, 21% free
2676K/3364K, paused 3ms, total 3ms 03-30 23:49:56.692 15105-15105/?
I/dalvikvm-heap: Grow heap (frag case) to 3.506MB for 435468-byte
allocation 03-30 23:49:56.692 15105-15114/? D/dalvikvm: GC_FOR_ALLOC
freed 1K, 19% free 3100K/3792K, paused 3ms, total 3ms 03-30
23:49:56.700 15105-15108/? D/dalvikvm: GC_CONCURRENT freed 3K, 19%
free 3097K/3792K, paused 0ms+0ms, total 6ms 03-30 23:49:56.700
15105-15105/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 5ms 03-30
23:49:56.700 15105-15105/? I/dalvikvm-heap: Grow heap (frag case) to
3.821MB for 333408-byte allocation 03-30 23:49:56.704 15105-15114/? D/dalvikvm: GC_FOR_ALLOC freed <1K, 17% free 3422K/4120K, paused 4ms,
total 4ms 03-30 23:49:56.748 15105-15105/? D/libEGL: loaded
/system/lib/egl/libEGL_genymotion.so
[ 03-30 23:49:56.748 15105:15105 D/ ]
HostConnection::get() New Host Connection established 0xb85b25b0, tid 15105
[ 03-30 23:49:56.752 62: 62 D/ ]
Socket deconnection 03-30 23:49:56.756 15105-15105/? D/libEGL: loaded
/system/lib/egl/libGLESv1_CM_genymotion.so 03-30 23:49:56.756
15105-15105/? D/libEGL: loaded /system/lib/egl/libGLESv2_genymotion.so
03-30 23:49:56.804 15105-15105/? W/EGL_genymotion: eglSurfaceAttrib
not implemented 03-30 23:49:56.804 15105-15105/? E/OpenGLRenderer:
Getting MAX_TEXTURE_SIZE from GradienCache 03-30 23:49:56.812
15105-15105/? E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from
Caches::initConstraints() 03-30 23:49:56.812 15105-15105/?
D/OpenGLRenderer: Enabling debug mode 0 03-30 23:50:19.456
15105-15105/com.example.samsungvy277.myapp E/InputEventSender:
Exception dispatching finished signal. 03-30 23:50:19.456
15105-15105/com.example.samsungvy277.myapp E/MessageQueue-JNI:
Exception in MessageQueue callback: handleReceiveCallback 03-30
23:50:19.468 15105-15105/com.example.samsungvy277.myapp D/dalvikvm:
GC_FOR_ALLOC freed 806K, 30% free 3127K/4428K, paused 5ms, total 5ms
03-30 23:50:19.468 15105-15105/com.example.samsungvy277.myapp
E/MessageQueue-JNI: java.lang.IllegalStateException: Could not execute
method for android:onClick
at
android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
at android.view.View.performClick(View.java:4240)
at android.view.View.onKeyUp(View.java:7928)
at android.widget.TextView.onKeyUp(TextView.java:5606)
at android.view.KeyEvent.dispatch(KeyEvent.java:2647)
at android.view.View.dispatchKeyEvent(View.java:7343)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1933)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1408)
at android.app.Activity.dispatchKeyEvent(Activity.java:2384)
at
android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:541)
at
android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at
android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1860)
at
android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:3791)
at
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3774)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3483)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3540)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3516)
at
android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3666)
at
android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:1982)
at
android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1698)
at
android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1689)
at
android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:1959)
at
android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:132)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at an 03-30 23:50:19.468 15105-15105/com.example.samsungvy277.myapp
D/AndroidRuntime: Shutting down VM 03-30 23:50:19.472
15105-15105/com.example.samsungvy277.myapp W/dalvikvm: threadid=1:
thread exiting with uncaught exception (group=0xa4c2e648) 03-30
23:50:19.480 15105-15105/com.example.samsungvy277.myapp
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.IllegalStateException: Could not execute method for
android:onClick
at
android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
at android.view.View.performClick(View.java:4240)
at android.view.View.onKeyUp(View.java:7928)
at android.widget.TextView.onKeyUp(TextView.java:5606)
at android.view.KeyEvent.dispatch(KeyEvent.java:2647)
at android.view.View.dispatchKeyEvent(View.java:7343)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1933)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1408)
at android.app.Activity.dispatchKeyEvent(Activity.java:2384)
at
android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:541)
at
android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at
android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1860)
at
android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:3791)
at
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3774)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3483)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3540)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3516)
at
android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3666)
at
android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:1982)
at
android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1698)
at
android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1689)
at
android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:1959)
at
android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:132)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Met 03-30 23:50:22.504
15105-15105/? I/Process: Sending signal. PID: 15105 SIG: 9
Use findViewById after setting your setContentView(R.layout.activity_main)
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.
I'm trying to create a background service that runs whenever my application is closed .The purpose of this service is to connect to a nodejs server and whenever an event occurs (via socket.io) it will notify the user .
However when i start my service my app crashes and i get the following error
01-06 16:52:14.239 2304-2304/? D/dalvikvm: Late-enabling CheckJNI
01-06 16:52:14.255 2304-2310/? D/dalvikvm: Debugger has detached; object registry had 1 entries
01-06 16:52:14.267 2304-2318/? W/SharedPreferencesImpl: Attempt to read preferences file /data/data/com.esprit.redcrescentapp/shared_prefs/RedCrecent.xml without permission
01-06 16:52:14.267 2304-2304/? D/Service: Created
01-06 16:52:14.267 2304-2304/? I/dalvikvm: Could not find method io.socket.client.IO.socket, referenced from method com.esprit.redcrescentapp.SocketHandler.<init>
01-06 16:52:14.267 2304-2304/? W/dalvikvm: VFY: unable to resolve static method 63105: Lio/socket/client/IO;.socket (Ljava/lang/String;)Lio/socket/client/Socket;
01-06 16:52:14.267 2304-2304/? D/dalvikvm: VFY: replacing opcode 0x71 at 0x0005
01-06 16:52:14.267 2304-2304/? I/dalvikvm: Could not find method io.socket.client.IO.socket, referenced from method com.esprit.redcrescentapp.SocketHandler.getSocketInstance
01-06 16:52:14.267 2304-2304/? W/dalvikvm: VFY: unable to resolve static method 63105: Lio/socket/client/IO;.socket (Ljava/lang/String;)Lio/socket/client/Socket;
01-06 16:52:14.267 2304-2304/? D/dalvikvm: VFY: replacing opcode 0x71 at 0x0006
01-06 16:52:14.267 2304-2304/? D/AndroidRuntime: Shutting down VM
01-06 16:52:14.267 2304-2304/? W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa4d0eb20)
01-06 16:52:14.267 2304-2304/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.esprit.redcrescentapp, PID: 2304
java.lang.NoClassDefFoundError: io.socket.client.IO
at com.esprit.redcrescentapp.SocketHandler.getSocketInstance(SocketHandler.java:100)
at com.esprit.redcrescentapp.MyService.onCreate(MyService.java:74)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2558)
at android.app.ActivityThread.access$1800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
I think that this exception is thrown because of not adding MultiDex.install() in the MyService class but on the other whenever i try to add it i get another exception
01-06 17:05:43.499 7677-7677/? D/dalvikvm: Late-enabling CheckJNI
01-06 17:05:43.519 7677-7683/? D/dalvikvm: Debugger has detached; object registry had 1 entries
01-06 17:05:43.527 7677-7677/? I/MultiDex: VM with version 1.6.0 does not have multidex support
01-06 17:05:43.527 7677-7677/? I/MultiDex: install
01-06 17:05:43.527 7677-7677/? I/MultiDex: MultiDexExtractor.load(/data/app/com.esprit.redcrescentapp-2.apk, false)
01-06 17:05:43.531 7677-7690/? W/SharedPreferencesImpl: Attempt to read preferences file /data/data/com.esprit.redcrescentapp/shared_prefs/multidex.version.xml without permission
01-06 17:05:43.531 7677-7677/? I/MultiDex: Detected that extraction must be performed.
01-06 17:05:43.531 7677-7677/? E/MultiDex: Failed to create dir /data/data/com.esprit.redcrescentapp/code_cache/secondary-dexes. parent file is a dir true, a file false, exists true, readable false, writable false
01-06 17:05:43.531 7677-7677/? E/MultiDex: Multidex installation failure
java.io.IOException: Failed to create cache directory /data/data/com.esprit.redcrescentapp/code_cache/secondary-dexes
at android.support.multidex.MultiDexExtractor.mkdirChecked(MultiDexExtractor.java:301)
at android.support.multidex.MultiDexExtractor.prepareDexDir(MultiDexExtractor.java:261)
at android.support.multidex.MultiDexExtractor.performExtractions(MultiDexExtractor.java:170)
at android.support.multidex.MultiDexExtractor.load(MultiDexExtractor.java:102)
at android.support.multidex.MultiDex.install(MultiDex.java:159)
at com.esprit.redcrescentapp.MyService.attachBaseContext(MyService.java:217)
at android.app.Service.attach(Service.java:694)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2556)
at android.app.ActivityThread.access$1800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
01-06 17:05:43.531 7677-7677/? D/AndroidRuntime: Shutting down VM
01-06 17:05:43.531 7677-7677/? W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa4d0eb20)
01-06 17:05:43.531 7677-7677/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.esprit.redcrescentapp, PID: 7677
java.lang.RuntimeException: Unable to create service com.esprit.redcrescentapp.MyService: java.lang.RuntimeException: Multi dex installation failed (Failed to create cache directory /data/data/com.esprit.redcrescentapp/code_cache/secondary-dexes).
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2568)
at android.app.ActivityThread.access$1800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Multi dex installation failed (Failed to create cache directory /data/data/com.esprit.redcrescentapp/code_cache/secondary-dexes).
at android.support.multidex.MultiDex.install(MultiDex.java:178)
at com.esprit.redcrescentapp.MyService.attachBaseContext(MyService.java:217)
at android.app.Service.attach(Service.java:694)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2556)
at android.app.ActivityThread.access$1800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
in my manifest i had
<service
android:enabled="true"
android:isolatedProcess="true"
/>
once i removed enabled and isolatedProcess it worked
I am developing for Android 2.3.3 and attempting to use the support GridLayout.
After SetContentView is run on onCreate in a class I am using, my app crashes.
I have the following GridLayout in a view:
<android.support.v7.widget.GridLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="#+id/chaptergrid"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:columnCount="4">
</android.support.v7.widget.GridLayout>
And I get the following in the Log Cat:
01-04 08:43:05.648: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed 55K, 53% free 2566K/5379K, external 716K/1038K, paused 56ms
01-04 08:43:05.708: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed 1K, 53% free 2565K/5379K, external 1382K/1894K, paused 26ms
01-04 08:43:05.768: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed <1K, 53% free 2565K/5379K, external 1902K/2568K, paused 27ms
01-04 08:43:05.848: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed <1K, 53% free 2565K/5379K, external 2944K/3677K, paused 36ms
01-04 08:43:05.937: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed <1K, 53% free 2566K/5379K, external 4160K/4795K, paused 25ms
01-04 08:43:05.987: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed <1K, 53% free 2566K/5379K, external 4883K/5590K, paused 25ms
01-04 08:43:06.107: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed 1K, 53% free 2567K/5379K, external 6330K/6493K, paused 33ms
01-04 08:43:06.207: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed 1K, 53% free 2568K/5379K, external 7776K/8299K, paused 32ms
01-04 08:43:36.217: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed 14K, 52% free 2595K/5379K, external 2163K/2886K, paused 24ms
01-04 08:43:36.277: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed 1K, 52% free 2594K/5379K, external 2481K/3205K, paused 24ms
01-04 08:43:36.347: D/dalvikvm(346): GC_EXTERNAL_ALLOC freed <1K, 52% free 2595K/5379K, external 3697K/4332K, paused 23ms
01-04 08:43:36.777: D/dalvikvm(346): GC_CONCURRENT freed 189K, 48% free 3036K/5831K, external 4181K/5012K, paused 4ms+4ms
01-04 08:43:36.998: D/szipinf(346): Initializing inflate state
01-04 08:43:38.547: I/dalvikvm(346): Jit: resizing JitTable from 512 to 1024
01-04 08:43:38.598: W/dalvikvm(346): VFY: unable to resolve static field 1174 (default_gap) in Landroid/support/v7/gridlayout/R$dimen;
01-04 08:43:38.598: D/dalvikvm(346): VFY: replacing opcode 0x60 at 0x0024
01-04 08:43:38.598: D/dalvikvm(346): VFY: dead code 0x0026-007b in Landroid/support/v7/widget/GridLayout;.<init> (Landroid/content/Context;Landroid/util/AttributeSet;I)V
01-04 08:43:38.618: I/dalvikvm(346): Could not find method android.support.v4.view.ViewCompat.resolveSizeAndState, referenced from method android.support.v7.widget.GridLayout.onMeasure
01-04 08:43:38.618: W/dalvikvm(346): VFY: unable to resolve static method 2483: Landroid/support/v4/view/ViewCompat;.resolveSizeAndState (III)I
01-04 08:43:38.618: D/dalvikvm(346): VFY: replacing opcode 0x71 at 0x0050
01-04 08:43:38.618: D/dalvikvm(346): VFY: dead code 0x0053-005b in Landroid/support/v7/widget/GridLayout;.onMeasure (II)V
01-04 08:43:38.618: D/AndroidRuntime(346): Shutting down VM
01-04 08:43:38.618: W/dalvikvm(346): threadid=1: thread exiting with uncaught exception (group=0x40015560)
01-04 08:43:38.627: E/AndroidRuntime(346): FATAL EXCEPTION: main
01-04 08:43:38.627: E/AndroidRuntime(346): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.turbo/com.example.turbo.Chapter}: android.view.InflateException: Binary XML file line #28: Error inflating class android.support.v7.widget.GridLayout
01-04 08:43:38.627: E/AndroidRuntime(346): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.os.Handler.dispatchMessage(Handler.java:99)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.os.Looper.loop(Looper.java:123)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.app.ActivityThread.main(ActivityThread.java:3683)
01-04 08:43:38.627: E/AndroidRuntime(346): at java.lang.reflect.Method.invokeNative(Native Method)
01-04 08:43:38.627: E/AndroidRuntime(346): at java.lang.reflect.Method.invoke(Method.java:507)
01-04 08:43:38.627: E/AndroidRuntime(346): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
01-04 08:43:38.627: E/AndroidRuntime(346): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
01-04 08:43:38.627: E/AndroidRuntime(346): at dalvik.system.NativeStart.main(Native Method)
01-04 08:43:38.627: E/AndroidRuntime(346): Caused by: android.view.InflateException: Binary XML file line #28: Error inflating class android.support.v7.widget.GridLayout
01-04 08:43:38.627: E/AndroidRuntime(346): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
01-04 08:43:38.627: E/AndroidRuntime(346): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.app.Activity.setContentView(Activity.java:1657)
01-04 08:43:38.627: E/AndroidRuntime(346): at com.example.turbo.Chapter.onCreate(Chapter.java:21)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
01-04 08:43:38.627: E/AndroidRuntime(346): ... 11 more
01-04 08:43:38.627: E/AndroidRuntime(346): Caused by: java.lang.reflect.InvocationTargetException
01-04 08:43:38.627: E/AndroidRuntime(346): at java.lang.reflect.Constructor.constructNative(Native Method)
01-04 08:43:38.627: E/AndroidRuntime(346): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
01-04 08:43:38.627: E/AndroidRuntime(346): ... 21 more
01-04 08:43:38.627: E/AndroidRuntime(346): Caused by: java.lang.NoClassDefFoundError: android.support.v7.gridlayout.R$dimen
01-04 08:43:38.627: E/AndroidRuntime(346): at android.support.v7.widget.GridLayout.<init>(GridLayout.java:270)
01-04 08:43:38.627: E/AndroidRuntime(346): at android.support.v7.widget.GridLayout.<init>(GridLayout.java:289)
01-04 08:43:38.627: E/AndroidRuntime(346): ... 24 more
Recently, I encountered a problem,My android app always stopped unexpectedly and some errors are printed on the log.In fact, I do not know how to debug my program base on logcat which everybody I asked for help wanted.please help me!
Here's my log.
04-22 11:57:20.653: W/dalvikvm(346): VFY: unable to resolve new-instance 41 (Loauth/signpost/commonshttp/CommonsHttpOAuthConsumer;) in LOAuth4Sina/com/AuthActivity;
04-22 11:57:20.653: D/dalvikvm(346): VFY: replacing opcode 0x22 at 0x000f
04-22 11:57:20.673: D/dalvikvm(346): VFY: dead code 0x0011-0039 in LOAuth4Sina/com/AuthActivity;.onCreate (Landroid/os/Bundle;)V
04-22 11:57:20.673: I/dalvikvm(346): Could not find method oauth.signpost.OAuthProvider.setOAuth10a, referenced from method OAuth4Sina.com.AuthActivity.onNewIntent
04-22 11:57:20.693: W/dalvikvm(346): VFY: unable to resolve interface method 41: Loauth/signpost/OAuthProvider;.setOAuth10a (Z)V
04-22 11:57:20.693: D/dalvikvm(346): VFY: replacing opcode 0x72 at 0x0010
04-22 11:57:20.733: W/dalvikvm(346): VFY: unable to resolve exception class 44 (Loauth/signpost/exception/OAuthMessageSignerException;)
04-22 11:57:20.733: W/dalvikvm(346): VFY: unable to find exception handler at addr 0x68
04-22 11:57:20.733: W/dalvikvm(346): VFY: rejected LOAuth4Sina/com/AuthActivity;.onNewIntent (Landroid/content/Intent;)V
04-22 11:57:20.766: W/dalvikvm(346): VFY: rejecting opcode 0x0d at 0x0068
04-22 11:57:20.766: W/dalvikvm(346): VFY: rejected LOAuth4Sina/com/AuthActivity;.onNewIntent (Landroid/content/Intent;)V
04-22 11:57:20.766: W/dalvikvm(346): Verifier rejected class LOAuth4Sina/com/AuthActivity;
04-22 11:57:20.766: W/dalvikvm(346): Class init failed in newInstance call (LOAuth4Sina/com/AuthActivity;)
04-22 11:57:20.785: D/AndroidRuntime(346): Shutting down VM
04-22 11:57:20.785: W/dalvikvm(346): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
04-22 11:57:20.812: E/AndroidRuntime(346): FATAL EXCEPTION: main
04-22 11:57:20.812: E/AndroidRuntime(346): java.lang.VerifyError: OAuth4Sina.com.AuthActivity
04-22 11:57:20.812: E/AndroidRuntime(346): at java.lang.Class.newInstanceImpl(Native Method)
04-22 11:57:20.812: E/AndroidRuntime(346): at java.lang.Class.newInstance(Class.java:1429)
04-22 11:57:20.812: E/AndroidRuntime(346): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-22 11:57:20.812: E/AndroidRuntime(346): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
04-22 11:57:20.812: E/AndroidRuntime(346): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-22 11:57:20.812: E/AndroidRuntime(346): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-22 11:57:20.812: E/AndroidRuntime(346): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-22 11:57:20.812: E/AndroidRuntime(346): at android.os.Handler.dispatchMessage(Handler.java:99)
04-22 11:57:20.812: E/AndroidRuntime(346): at android.os.Looper.loop(Looper.java:123)
04-22 11:57:20.812: E/AndroidRuntime(346): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-22 11:57:20.812: E/AndroidRuntime(346): at java.lang.reflect.Method.invokeNative(Native Method)
04-22 11:57:20.812: E/AndroidRuntime(346): at java.lang.reflect.Method.invoke(Method.java:521)
04-22 11:57:20.812: E/AndroidRuntime(346): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-22 11:57:20.812: E/AndroidRuntime(346): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-22 11:57:20.812: E/AndroidRuntime(346): at dalvik.system.NativeStart.main(Native Method)