what is Alternative of android.enableD8=false because it is deprecated
Asked Answered
F

2

8

Hello I am using okio and okhttp library for socket connect. After updating android studio and build tool 3.1.2, I am facing this issue.

And suggestion is android.enableD8=false. but, it's deprecated.

So, Please Suggest What I need to do for solving this issue?

Finesse answered 14/5, 2018 at 6:35 Comment(5)
so you are getting array OutofBoundException for using deprecated methods?Savoyard
No, If I don't Write android.enableD8=false in gradle properties, then I get array OutofBoundException.Finesse
the link that you have mentioned already says there is a bug in it and only work if you write that line or else the app will crash.Savoyard
but, is it due to gradle update or library issue?Finesse
It is due to library issue.Stella
D
4

read this https://android-developers.googleblog.com/2018/04/android-studio-switching-to-d8-dexer.html

then go to

gradle.properties

and Use 'android.enableD8=true' to remove this warning.

Denmark answered 16/12, 2018 at 22:15 Comment(0)
S
3

To solve this you have only one option that is using android.enableD8=false.And as it is deprecated not removed.Hence,you can use it without any problem.

Also keep an eye on the LINK for update about the fix.

Stella answered 14/5, 2018 at 7:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.