AnyChart-Android icon indicating copy to clipboard operation
AnyChart-Android copied to clipboard

Build issue

Open AlessandroBiaggi opened this issue 6 years ago • 2 comments

While I try to build, Android Studio says:

Caused by: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete Caused by: com.android.tools.r8.utils.AbortException: Error: null, Cannot fit requested classes in a single dex file (# methods: 122418 > 65536)

AlessandroBiaggi avatar Jun 03 '19 10:06 AlessandroBiaggi

@AlessandroBiaggi Please, make sure that you are using the latest version of the AnyChart Android library and modern version of Android Studio. The approach described in the repo wiki builds the project properly.

Shestac92 avatar Jun 06 '19 04:06 Shestac92

add

defaultConfig {
        ...
        multiDexEnabled true
    }

to build.gradle

abolfazlbzgh avatar Jan 01 '20 10:01 abolfazlbzgh