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

Project doesn't build in Android Studio 3.1 #2

Closed
Mura75 opened this issue Mar 29, 2018 · 15 comments
Closed

Project doesn't build in Android Studio 3.1 #2

Mura75 opened this issue Mar 29, 2018 · 15 comments

Comments

@Mura75
Copy link

Mura75 commented Mar 29, 2018

Thank you for new version of library.
Project doesn't build in Android Studio 3.1 and show Java compiler error:

Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/.gradle/caches/transforms-1/files-1.1/runtime-3.0.0.aar/84cd871fb4c5b7f20232a4b809b354bd/jars/classes.jar
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
Caused by: java.lang.ArrayIndexOutOfBoundsException
Caused by: java.lang.ArrayIndexOutOfBoundsException: -2147483648

@IUdalov
Copy link
Contributor

IUdalov commented Mar 29, 2018

Looks like overflow bug in D8.
Already submitted as https://issuetracker.google.com/issues/77240639.

@IUdalov
Copy link
Contributor

IUdalov commented Jun 4, 2018

Fixed with newest Android Studio 3.1.2 🎉.

@IUdalov IUdalov closed this as completed Jun 4, 2018
@ilyamodder
Copy link

No, it doesnt.

@IUdalov
Copy link
Contributor

IUdalov commented Jun 4, 2018

Which AS version?

@IUdalov IUdalov reopened this Jun 4, 2018
@ilyamodder
Copy link

3.1.2. Gradle 4.4, Android Gradle plugin 3.1.2

@debian17
Copy link

Android Studio 3.1.3, Android Gradle plugin 3.1.3, Gradle 4.4, same problem

@ilyamodder
Copy link

Found a workaround, just add it to gradle.properties file:

android.enableD8=false

@bsodKeks
Copy link

кто по русски общается? объясните как построить в итоге? всю голову сломал

@onchukovdenis
Copy link

@bsodKeks, добавь в файл gradle.properties строчку android.enableD8=false

@baadev
Copy link

baadev commented Jul 18, 2018

@ilyamodder this option is deprecated in Android Studio 3.1.3

The option 'android.enableD8' is deprecated and should not be used anymore.
Use 'android.enableD8=true' to remove this warning.
It will be removed in AGP version 3.3.

@ilyamodder
Copy link

ilyamodder commented Jul 18, 2018 via email

@josdem
Copy link

josdem commented Aug 22, 2018

android.enableD8=false

Is deprecated and should not be used anymore.

@markizdeviler
Copy link

Today AS 3.2 version released in stable channel. To my point of view DX totally replaced with D8.

android.enableD8=false

This trick shouldn't work with new version of AS. https://issuetracker.google.com/issues/77240639 says The fix should be in Android Studio 3.2 -- unfortunately it didn't make it for Android Studio 3.1.

Some one knows, Is there bug fixed in AS 3.2?

@vbazhenov
Copy link
Contributor

Everything seems to work just fine with Android Studio 3.2. Can anyone else confirm?

@markizdeviler
Copy link

I haven't faced any problem yet after updating AS 3.2. Now this issue can be closed!

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

10 participants