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
IllegalAccessException on Android L #70
Comments
Fix coming in the next L preview. |
retrofit.RetrofitError: Illegal class access: 'okio.Buffer' attempting to access 'okio.SegmentPool' (declaration of 'okio.Buffer' appears ) in Android L preview |
I'm also encountered the the error below in Nexus 5 (hammerhead). Caused by: java.lang.IllegalAccessError: Illegal class access: 'okio.Buffer' attempting to access 'okio.SegmentPool' (declaration of 'okio.Buffer' appears in /data/app/com.globe.gcash.android-1.apk) |
retrofit.RetrofitError: Illegal class access: 'okio.Buffer' attempting to access 'okio.SegmentPool' (declaration of 'okio.Buffer' appears in /data/app.... in Android L Preview |
For what it's worth, this didn't seem to get fixed in the latest L preview build lpv81c found here: I think this was released around early August? |
The second preview was just an update to Google Play Services for Wear support. Nothing in the core platform changed. |
Also that preview builds were not cut from HEAD but from highly curated branches. |
I have a problem with using wire inside okio lib on new Android L developer preview. It's crashing with exception:
java.lang.IllegalAccessError: Illegal class access ('okio.Buffer' attempting to access 'okio.Util') in attempt to invoke static method void okio.Util.checkOffsetAndCount(long, long, long) (declaration of 'okio.Buffer' appears in /data/app/ru.advisa-1.apk)
at okio.Buffer.write(Buffer.java:554)
at okio.Buffer.write(Buffer.java:549)
at com.squareup.wire.WireInput.newInstance(WireInput.java:68)
at com.squareup.wire.Wire.parseFrom(Wire.java:124)
at ru.advisa.service.SyncNetworkOperationDelegate.doRequest(SyncNetworkOperationDelegate.java:95)
I think it related to new android runtime (art)
The text was updated successfully, but these errors were encountered: