java.lang.InternalError
at rx.internal.util.unsafe.UnsafeAccess.a(UnsafeAccess.java:115)
at rx.internal.util.unsafe.MpmcArrayQueueProducerField.<clinit>(MpmcArrayQueue.java:34)
at rx.internal.util.ObjectPool.a(ObjectPool.java:154)
at rx.internal.util.ObjectPool.<init>(ObjectPool.java:58)
at rx.internal.util.ObjectPool.<init>(ObjectPool.java:37)
at rx.internal.util.RxRingBuffer$1.<init>(RxRingBuffer.java:265)
at rx.internal.util.RxRingBuffer.<clinit>(RxRingBuffer.java:265)
at rx.Observable.a(Observable.java:7673)
at me.shaohui.advancedluban.LubanCompresser.a(LubanCompresser.java:64)
at me.shaohui.advancedluban.Luban.a(Luban.java:204)
at me.shaohui.advancedluban.Luban.a(Luban.java:194)
at me.shaohui.advancedluban.Luban.a(Luban.java:152)
at com.wisdomschool.stu.utils.ImgCompressUtils.a(ImgCompressUtils.java:47)
at com.wisdomschool.stu.module.supervise.manager.SuperviseCreateManager.a(SuperviseCreateManager.java:180)
at com.wisdomschool.stu.ui.activities.SuperviseCreateActivity.onClick(SuperviseCreateActivity.java:357)
at com.wisdomschool.stu.ui.activities.SuperviseCreateActivity$$ViewInjector$3.a(SuperviseCreateActivity$$ViewInjector.java:44)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4456)
at android.view.View$PerformClick.run(View.java:18490)
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:5094)
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:893)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:702)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoSuchFieldException: producerIndex
at java.lang.Class.getDeclaredField(Class.java:596)
at rx.internal.util.unsafe.UnsafeAccess.a(UnsafeAccess.java:112)
at rx.internal.util.unsafe.MpmcArrayQueueProducerField.<clinit>(MpmcArrayQueue.java:34)
at rx.internal.util.ObjectPool.a(ObjectPool.java:154)
at rx.internal.util.ObjectPool.<init>(ObjectPool.java:58)
at rx.internal.util.ObjectPool.<init>(ObjectPool.java:37)
at rx.internal.util.RxRingBuffer$1.<init>(RxRingBuffer.java:265)
at rx.internal.util.RxRingBuffer.<clinit>(RxRingBuffer.java:265)
at rx.Observable.a(Observable.java:7673)
at me.shaohui.advancedluban.LubanCompresser.a(LubanCompresser.java:64)
at me.shaohui.advancedluban.Luban.a(Luban.java:204)
at me.shaohui.advancedluban.Luban.a(Luban.java:194)
at me.shaohui.advancedluban.Luban.a(Luban.java:152)
at com.wisdomschool.stu.utils.ImgCompressUtils.a(ImgCompressUtils.java:47)
at com.wisdomschool.stu.module.supervise.manager.SuperviseCreateManager.a(SuperviseCreateManager.java:180)
at com.wisdomschool.stu.ui.activities.SuperviseCreateActivity.onClick(SuperviseCreateActivity.java:357)
at com.wisdomschool.stu.ui.activities.SuperviseCreateActivity$$ViewInjector$3.a(SuperviseCreateActivity$$ViewInjector.java:44)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4456)
at android.view.View$PerformClick.run(View.java:18490)
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:5094)
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:893)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:702)
at dalvik.system.NativeStart.main(Native Method)
该错误是RxJava代码被混淆的问题 需要在混淆的时候添加
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { long producerIndex; long consumerIndex; } -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { rx.internal.util.atomic.LinkedQueueNode producerNode; } -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef { rx.internal.util.atomic.LinkedQueueNode consumerNode; } -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { long producerNode; long consumerNode; } -keep class rx.schedulers.Schedulers { public static <methods>; } -keep class rx.schedulers.Schedulers { public static ** test(); } -keep class rx.schedulers.ImmediateScheduler { public <methods>; } -keep class rx.schedulers.TestScheduler { public <methods>; }
避免混淆即可
Rxjava 问题
java.lang.InternalError
at rx.internal.util.unsafe.UnsafeAccess.a(UnsafeAccess.java:115)
at rx.internal.util.unsafe.MpmcArrayQueueProducerField.<clinit>(MpmcArrayQueue.java:34)
at rx.internal.util.ObjectPool.a(ObjectPool.java:154)
at rx.internal.util.ObjectPool.<init>(ObjectPool.java:58)
at rx.internal.util.ObjectPool.<init>(ObjectPool.java:37)
at rx.internal.util.RxRingBuffer$1.<init>(RxRingBuffer.java:265)
at rx.internal.util.RxRingBuffer.<clinit>(RxRingBuffer.java:265)
at rx.Observable.a(Observable.java:7673)
at me.shaohui.advancedluban.LubanCompresser.a(LubanCompresser.java:64)
at me.shaohui.advancedluban.Luban.a(Luban.java:204)
at me.shaohui.advancedluban.Luban.a(Luban.java:194)
at me.shaohui.advancedluban.Luban.a(Luban.java:152)
at com.wisdomschool.stu.utils.ImgCompressUtils.a(ImgCompressUtils.java:47)
at com.wisdomschool.stu.module.supervise.manager.SuperviseCreateManager.a(SuperviseCreateManager.java:180)
at com.wisdomschool.stu.ui.activities.SuperviseCreateActivity.onClick(SuperviseCreateActivity.java:357)
at com.wisdomschool.stu.ui.activities.SuperviseCreateActivity$$ViewInjector$3.a(SuperviseCreateActivity$$ViewInjector.java:44)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4456)
at android.view.View$PerformClick.run(View.java:18490)
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:5094)
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:893)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:702)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoSuchFieldException: producerIndex
at java.lang.Class.getDeclaredField(Class.java:596)
at rx.internal.util.unsafe.UnsafeAccess.a(UnsafeAccess.java:112)
at rx.internal.util.unsafe.MpmcArrayQueueProducerField.<clinit>(MpmcArrayQueue.java:34)
at rx.internal.util.ObjectPool.a(ObjectPool.java:154)
at rx.internal.util.ObjectPool.<init>(ObjectPool.java:58)
at rx.internal.util.ObjectPool.<init>(ObjectPool.java:37)
at rx.internal.util.RxRingBuffer$1.<init>(RxRingBuffer.java:265)
at rx.internal.util.RxRingBuffer.<clinit>(RxRingBuffer.java:265)
at rx.Observable.a(Observable.java:7673)
at me.shaohui.advancedluban.LubanCompresser.a(LubanCompresser.java:64)
at me.shaohui.advancedluban.Luban.a(Luban.java:204)
at me.shaohui.advancedluban.Luban.a(Luban.java:194)
at me.shaohui.advancedluban.Luban.a(Luban.java:152)
at com.wisdomschool.stu.utils.ImgCompressUtils.a(ImgCompressUtils.java:47)
at com.wisdomschool.stu.module.supervise.manager.SuperviseCreateManager.a(SuperviseCreateManager.java:180)
at com.wisdomschool.stu.ui.activities.SuperviseCreateActivity.onClick(SuperviseCreateActivity.java:357)
at com.wisdomschool.stu.ui.activities.SuperviseCreateActivity$$ViewInjector$3.a(SuperviseCreateActivity$$ViewInjector.java:44)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4456)
at android.view.View$PerformClick.run(View.java:18490)
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:5094)
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:893)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:702)
at dalvik.system.NativeStart.main(Native Method)
该错误是RxJava代码呗混淆的问题 需要在混淆的时候添加
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { long producerIndex; long consumerIndex; } -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { rx.internal.util.atomic.LinkedQueueNode producerNode; } -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef { rx.internal.util.atomic.LinkedQueueNode consumerNode; } -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { long producerNode; long consumerNode; } -keep class rx.schedulers.Schedulers { public static <methods>; } -keep class rx.schedulers.Schedulers { public static ** test(); } -keep class rx.schedulers.ImmediateScheduler { public <methods>; } -keep class rx.schedulers.TestScheduler { public <methods>; }
避免混淆即可