particle-iot / spark-setup-android

Former home of the Particle Device Setup library for Android
Apache License 2.0
23 stars 30 forks source link

DexArchiveBuilderException when building #62

Closed 7200rpm closed 6 years ago

7200rpm commented 6 years ago

Getting an issue when building with the latest 0.5.2 related to dex and "invoke-customs". I have "multiDexEnabled" as true in my defaultconfig. Switching back to 0.4.9 builds with no issues. Not sure if this is a bug or something else in my config. Would appreciate any help!

devicesetupissue
CityVibes commented 6 years ago

@7200rpm Do you target Java8 or 7? Code below should exist in your build.gradle

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
7200rpm commented 6 years ago

That seemed to fix it! Given that this isn't the default setup, might be worth mentioning.