Skip to content
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

Illegal class access #89

Closed
w4lle opened this issue Apr 18, 2016 · 5 comments
Closed

Illegal class access #89

w4lle opened this issue Apr 18, 2016 · 5 comments

Comments

@w4lle
Copy link

w4lle commented Apr 18, 2016

run app with redex and without Proguard
and I use the --sign commond to resign the apk
crash log :

AndroidRuntime: FATAL EXCEPTION: main
       Process: com.boohee.one, PID: 30145
        java.lang.IllegalAccessError: Illegal class access: 'me.nereo.multi_image_selector.R' attempting to access 'com.handmark.pulltorefresh.library.OverscrollHelper$1' (declaration of 'me.nereo.multi_image_selector.R' appears in /data/app/com.boohee.one-1/base.apk)
        at me.nereo.multi_image_selector.R.overScrollBy(me.nereo.multi_image_selector.R some line)
        at me.nereo.multi_image_selector.R.overScrollBy(me.nereo.multi_image_selector.R some line)
        at com.handmark.pulltorefresh.library.PullToRefreshScrollView$InternalScrollViewSDK9.overScrollBy(titleEditText:91)
        at android.widget.ScrollView.onTouchEvent(ScrollView.java:711)
        at android.view.View.dispatchTouchEvent(View.java:8461)
@tiffyangel89
Copy link

What is this shit?
On Apr 18, 2016 1:43 AM, "Wanglinglong" [email protected] wrote:

run app with redex used
crash log :

AndroidRuntime: FATAL EXCEPTION: main
Process: com.boohee.one, PID: 30145
java.lang.IllegalAccessError: Illegal class access: 'me.nereo.multi_image_selector.R' attempting to access 'com.handmark.pulltorefresh.library.OverscrollHelper$1' (declaration of 'me.nereo.multi_image_selector.R' appears in /data/app/com.boohee.one-1/base.apk)
at me.nereo.multi_image_selector.R.overScrollBy(me.nereo.multi_image_selector.R some line)
at me.nereo.multi_image_selector.R.overScrollBy(me.nereo.multi_image_selector.R some line)
at com.handmark.pulltorefresh.library.PullToRefreshScrollView$InternalScrollViewSDK9.overScrollBy(titleEditText:91)
at android.widget.ScrollView.onTouchEvent(ScrollView.java:711)
at android.view.View.dispatchTouchEvent(View.java:8461)


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#89

@w4lle
Copy link
Author

w4lle commented Apr 19, 2016

I use the InterDexPass, and product my app's classes list, and the config file like this

{
  "redex" : {
    "passes" : [
      "ReBindRefsPass",
      "BridgePass",
      "SynthPass",
      "FinalInlinePass",
      "DelSuperPass",
      "SingleImplPass",
      "SimpleInlinePass",
      "StaticReloPass",
      "RemoveEmptyClassesPass",
      "ShortenSrcStringsPass",
      "InterDexPass"
    ]
   },
   "InterDexPass" : {
    "coldstart_classes" : "list_of_classes.txt"
  }
}
redex input.apk -o out.apk --sign -s xx -a xx -p xx -c InterDex.config

but the issue still here
it seems access the method of class which does not accessed right now
what's wrong about it?

@w4lle
Copy link
Author

w4lle commented Apr 19, 2016

is same issue with #30 ?
but #30 is not solved now.

@w4lle w4lle changed the title Illegal class access R with third module Illegal class access Apr 19, 2016
@huyongli
Copy link

Do you solved now ? @w4lle

@bertmaher
Copy link
Contributor

#30 is solved as of a few minutes ago, thanks for reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants