Android studio中使用LoopRotarySwitchView实现图片无限循环滚动,测试时出现闪退情况,求大神支招
PHP中文网
PHP中文网 2017-04-17 17:59:13
0
0
978

使用LoopRotarySwitchView实现图片无限循环滚动,测试
报错信息:
I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
W/dalvikvm: VFY: unable to resolve interface method 15739: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
W/dalvikvm: VFY: unable to resolve interface method 15741: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
W/dalvikvm: VFY: unable to resolve interface method 15745: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
W/dalvikvm: VFY: unable to resolve virtual method 461: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
W/dalvikvm: VFY: unable to resolve virtual method 483: Landroid/content/res/TypedArray;.getType (I)I
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
I/dalvikvm: Could not find method android.widget.FrameLayout.startActionModeForChild, referenced from method android.support.v7.widget.ActionBarContainer.startActionModeForChild
W/dalvikvm: VFY: unable to resolve virtual method 16173: Landroid/widget/FrameLayout;.startActionModeForChild (Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0002
I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList
W/dalvikvm: VFY: unable to resolve virtual method 276: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
W/dalvikvm: VFY: unable to resolve virtual method 424: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
W/dalvikvm: VFY: unable to resolve virtual method 426: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
W/dalvikvm: VFY: unable to resolve instanceof 136 (Landroid/graphics/drawable/RippleDrawable;) in Landroid/support/v7/widget/AppCompatImageHelper;
D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c
D/dalvikvm: GC_FOR_ALLOC freed 203K, 10% free 3115K/3436K, paused 5ms, total 7ms
D/dalvikvm: GC_FOR_ALLOC freed 50K, 7% free 3486K/3720K, paused 3ms, total 4ms
D/libEGL: loaded /system/lib/egl/libEGL_genymotion.so

      [ 12-22 19:30:51.086  2262: 2262 D/         ]
      HostConnection::get() New Host Connection established 0xb9336558, tid 2262

D/libEGL: loaded /system/lib/egl/libGLESv1_CM_genymotion.so
D/libEGL: loaded /system/lib/egl/libGLESv2_genymotion.so
W/EGL_genymotion: eglSurfaceAttrib not implemented
E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer: MAX_TEXTURE_SIZE: 16384
E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/OpenGLRenderer: MAX_TEXTURE_SIZE: 16384
D/OpenGLRenderer: Enabling debug mode 0
D/AndroidRuntime: Shutting down VM
W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa4c98b20)
E/AndroidRuntime: FATAL EXCEPTION: main

              Process: com.example.kc2348.myapplication, PID: 2262
              java.lang.IllegalStateException
                  at java.util.AbstractList$FullListIterator.set(AbstractList.java:145)
                  at loop.view.LoopRotarySwitchView.sortList(LoopRotarySwitchView.java:132)
                  at loop.view.LoopRotarySwitchView.initView(LoopRotarySwitchView.java:185)
                  at loop.view.LoopRotarySwitchView$3.onAnimationUpdate(LoopRotarySwitchView.java:232)
                  at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1251)
                  at android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1175)
                  at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1216)
                  at android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:524)
                  at android.animation.ValueAnimator.start(ValueAnimator.java:936)
                  at android.animation.ValueAnimator.start(ValueAnimator.java:946)
                  at loop.view.LoopRotarySwitchView.RAnimation(LoopRotarySwitchView.java:237)
                  at loop.view.LoopRotarySwitchView.RAnimation(LoopRotarySwitchView.java:214)
                  at loop.view.LoopRotarySwitchView.onLayout(LoopRotarySwitchView.java:209)
                  at android.view.View.layout(View.java:14817)
                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                  at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
                  at android.view.View.layout(View.java:14817)
                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                  at android.view.View.layout(View.java:14817)
                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                  at android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:433)
                  at android.view.View.layout(View.java:14817)
                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                  at android.view.View.layout(View.java:14817)
                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
                  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
                  at android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
                  at android.view.View.layout(View.java:14817)
                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                  at android.view.View.layout(View.java:14817)
                  at android.view.ViewGroup.layout(ViewGroup.java:4631)
                  at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1983)
                  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1740)
                  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
                  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
                  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
                  at android.view.Choreographer.doCallbacks(Choreographer.java:574)
                  at android.view.Choreographer.doFrame(Choreographer.java:544)
                  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
                  at android.os.Handler.handleCallback(Handler.java:733)
                  at android.os.Handler.dispatchMessage(Handler.java:95)
                  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/Process: Sending signal. PID: 2262 SIG: 9
Disconnected from the target VM, address: 'localhost:8607', transport: 'socket'

PHP中文网
PHP中文网

认证高级PHP讲师

全部回覆(0)
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板