yandex / mapkit-android-demo

MapKit Android demo
Other
122 stars 61 forks source link

Project doesn't build in Android Studio 3.1 #2

Closed Mura75 closed 6 years ago

Mura75 commented 6 years ago

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 commented 6 years ago

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

IUdalov commented 6 years ago

Fixed with newest Android Studio 3.1.2 🎉.

ilyamodder commented 6 years ago

No, it doesnt.

IUdalov commented 6 years ago

Which AS version?

ilyamodder commented 6 years ago

3.1.2. Gradle 4.4, Android Gradle plugin 3.1.2

debian17 commented 6 years ago

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

ilyamodder commented 6 years ago

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

android.enableD8=false
bsodKeks commented 6 years ago

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

onchukovdenis commented 6 years ago

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

baadev commented 6 years ago

@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 commented 6 years ago

Yes, that’s just a temporary workaround.

ср, 18 июля 2018 г. в 23:27, Alexander notifications@github.com:

@ilyamodder https://github.com/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.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/yandex/mapkit-android-demo/issues/2#issuecomment-406063238, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8pBwCfpzC6WKLwDI5zSiBzSaBgyED_ks5uH5oegaJpZM4S_pL2 .

josdem commented 6 years ago
android.enableD8=false

Is deprecated and should not be used anymore.

markizdeviler commented 6 years ago

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 commented 6 years ago

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

markizdeviler commented 6 years ago

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