New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

要怎么配置混淆文件 #7

Closed
kebbs opened this Issue Apr 4, 2016 · 7 comments

Comments

Projects
None yet
3 participants
@kebbs

kebbs commented Apr 4, 2016

如果没有混淆则app正常,但一旦混淆了,及出现这个错误,我已经配置了不混淆

rxbus

-dontwarn com.hwangjr.rxbus.**
-keep class com.hwangjr.rxbus.** { *;}

java.lang.InternalError
at d.d.d.b.y.a(UnsafeAccess.java:103)
at d.d.d.b.x.(SpscArrayQueue.java:39)
at d.d.a.r.(OperatorObserveOn.java:94)
at d.d.a.q.a(OperatorObserveOn.java:64)
at d.d.a.q.call(OperatorObserveOn.java:44)
at d.b.a(Observable.java:158)
at d.b.call(Observable.java:154)
at d.a.a(Observable.java:8191)
at d.a.b(Observable.java:8158)
at d.a.a(Observable.java:7914)
at com.hwangjr.rxbus.entity.SubscriberEvent.initObservable(SubscriberEvent.java:73)
at com.hwangjr.rxbus.entity.SubscriberEvent.(SubscriberEvent.java:63)
at com.hwangjr.rxbus.finder.AnnotatedFinder.findAllSubscribers(AnnotatedFinder.java:185)
at com.hwangjr.rxbus.finder.Finder$1.findAllSubscribers(Finder.java:28)
at com.hwangjr.rxbus.Bus.register(Bus.java:198)

@hwangjr

This comment has been minimized.

Show comment
Hide comment
@hwangjr

hwangjr Apr 6, 2016

Member

proguard-rules.pro

Check out this file~

Member

hwangjr commented Apr 6, 2016

proguard-rules.pro

Check out this file~

@WellerV

This comment has been minimized.

Show comment
Hide comment
@WellerV

WellerV Apr 14, 2016

我按照上面的配置  报下面这个错误

java.lang.NoSuchFieldError
at libcore.reflect.AnnotationAccess.decodeValue(AnnotationAccess.java:688)
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:663)
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:641)
at libcore.reflect.AnnotationAccess.getDeclaredAnnotation(AnnotationAccess.java:170)
at java.lang.reflect.Method.getAnnotation(Method.java:301)
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source)
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source)
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source)
at com.hwangjr.rxbus.finder.Finder$1.findAllProducers(Unknown Source)
at com.hwangjr.rxbus.Bus.register(Unknown Source)
at cn.youcaitv.live.e.a.a.onCreate(Unknown Source)
at cn.youcaitv.live.usercenter.PreLoginActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6100)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
at android.app.ActivityThread.access$1200(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1371)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5595)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: java.lang.NoSuchFieldException: MAIN_THREAD
at java.lang.Class.getDeclaredField(Class.java:890)
at libcore.reflect.AnnotationAccess.decodeValue(AnnotationAccess.java:685)
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:663) 
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:641) 
at libcore.reflect.AnnotationAccess.getDeclaredAnnotation(AnnotationAccess.java:170) 
at java.lang.reflect.Method.getAnnotation(Method.java:301) 
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source) 
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source) 
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source) 
at com.hwangjr.rxbus.finder.Finder$1.findAllProducers(Unknown Source) 
at com.hwangjr.rxbus.Bus.register(Unknown Source) 
at cn.youcaitv.live.e.a.a.onCreate(Unknown Source) 
at cn.youcaitv.live.usercenter.PreLoginActivity.onCreate(Unknown Source) 
at android.app.Activity.performCreate(Activity.java:6100) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510) 
at android.app.ActivityThread.access$1200(ActivityThread.java:163) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1371) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5595) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) 

WellerV commented Apr 14, 2016

我按照上面的配置  报下面这个错误

java.lang.NoSuchFieldError
at libcore.reflect.AnnotationAccess.decodeValue(AnnotationAccess.java:688)
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:663)
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:641)
at libcore.reflect.AnnotationAccess.getDeclaredAnnotation(AnnotationAccess.java:170)
at java.lang.reflect.Method.getAnnotation(Method.java:301)
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source)
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source)
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source)
at com.hwangjr.rxbus.finder.Finder$1.findAllProducers(Unknown Source)
at com.hwangjr.rxbus.Bus.register(Unknown Source)
at cn.youcaitv.live.e.a.a.onCreate(Unknown Source)
at cn.youcaitv.live.usercenter.PreLoginActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6100)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
at android.app.ActivityThread.access$1200(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1371)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5595)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: java.lang.NoSuchFieldException: MAIN_THREAD
at java.lang.Class.getDeclaredField(Class.java:890)
at libcore.reflect.AnnotationAccess.decodeValue(AnnotationAccess.java:685)
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:663) 
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:641) 
at libcore.reflect.AnnotationAccess.getDeclaredAnnotation(AnnotationAccess.java:170) 
at java.lang.reflect.Method.getAnnotation(Method.java:301) 
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source) 
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source) 
at com.hwangjr.rxbus.finder.AnnotatedFinder.a(Unknown Source) 
at com.hwangjr.rxbus.finder.Finder$1.findAllProducers(Unknown Source) 
at com.hwangjr.rxbus.Bus.register(Unknown Source) 
at cn.youcaitv.live.e.a.a.onCreate(Unknown Source) 
at cn.youcaitv.live.usercenter.PreLoginActivity.onCreate(Unknown Source) 
at android.app.Activity.performCreate(Activity.java:6100) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510) 
at android.app.ActivityThread.access$1200(ActivityThread.java:163) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1371) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5595) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) 

@hwangjr

This comment has been minimized.

Show comment
Hide comment
@hwangjr

hwangjr Apr 15, 2016

Member

我看错误日志,是在cn.youcaitv.live.usercenter.PreLoginActivity类,你注解了Produce,在解析Produce注解时候发生错误,确认下此方法处理了什么。

Member

hwangjr commented Apr 15, 2016

我看错误日志,是在cn.youcaitv.live.usercenter.PreLoginActivity类,你注解了Produce,在解析Produce注解时候发生错误,确认下此方法处理了什么。

@hwangjr

This comment has been minimized.

Show comment
Hide comment
@hwangjr

hwangjr Apr 20, 2016

Member

@huweigoodboy @kebbs ,还有此问题吗?若没有将关闭此issue。

Member

hwangjr commented Apr 20, 2016

@huweigoodboy @kebbs ,还有此问题吗?若没有将关闭此issue。

@WellerV

This comment has been minimized.

Show comment
Hide comment
@WellerV

WellerV Apr 22, 2016

@hwangjr 没有问题了 谢谢 是我没有keep rxbus和rxandroid

WellerV commented Apr 22, 2016

@hwangjr 没有问题了 谢谢 是我没有keep rxbus和rxandroid

@hwangjr

This comment has been minimized.

Show comment
Hide comment
@hwangjr

hwangjr Apr 22, 2016

Member

OK

Member

hwangjr commented Apr 22, 2016

OK

@hwangjr hwangjr closed this Apr 22, 2016

@kebbs

This comment has been minimized.

Show comment
Hide comment
@kebbs

kebbs May 4, 2016

ok thanks

kebbs commented May 4, 2016

ok thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment