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

java.lang.IllegalAccessError: Illegal class access #436

Open
williamtan37 opened this issue Nov 9, 2022 · 1 comment
Open

java.lang.IllegalAccessError: Illegal class access #436

williamtan37 opened this issue Nov 9, 2022 · 1 comment
Labels

Comments

@williamtan37
Copy link

williamtan37 commented Nov 9, 2022

Hello. Would appreciate any insight, been stuck for a day reading solutions to no avail.

Currently when I run my app locally, I have no isues.
But when I run it after being built on jenkins, I get:

java.lang.IllegalAccessError: Illegal class access: 'ClassX' attempting to access 'no.nordicsemi.android.ble.BleManagerHandler' (declaration of com.ClassX.services.stk.BLEManager' appears in base.apk!classes3.dex)
    at com.ClassX.services.stk.BLEManager.access$enableNotifications(Unknown Source:9)
    at com.ClassX.services.stk.BLEManager$BLEManagerGattCallback.u2(Unknown Source:36)
    at no.nordicsemi.android.ble.BleManagerHandler$3.onServicesDiscovered(Unknown Source:456)
    at android.bluetooth.BluetoothGatt$1$6.run(BluetoothGatt.java:412)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8751)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

Any ideas?

@philips77
Copy link
Member

If it runs locally, but not when released, check Proguard configuration. You may also analyze the APK from Jenkins and check differences.
I haven't seen similar issue, sorry.

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

No branches or pull requests

2 participants