Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
JongChern edited this page May 15, 2025 · 4 revisions

1. Google Firebase compatibility issue - Gradle duplicate classes

To resolve this, exclude the GRPC packages from the ShimmerBluetoothManager and ShimmerDriver imports in the build.gradle file by adding the statement below.

exclude group: 'com.google.api.grpc'

2. Out of memory error when building project

If a java.lang.OutOfMemoryError occurs while attempting to build any of the Android API projects (e.g. below),

Execution failed for task ':shimmerBasicExample:mergeExtDexDebug'. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade java.lang.OutOfMemoryError (no error message)

Try setting the IDE and Gradle heap size settings in the Android Studio settings to the maximum available. This can be found in File -> Settings, by searching for "Memory Settings".

image

3. Common Errors

  • DexArchiveMergerException e.g. ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

To resolve this, enable Multidex in your project's build.gradle file:

android {
    defaultConfig {
        ...
        multiDexEnabled true
        ...
    }
  • Errors with buildToolsVersion and/or MultiDex Incremental These options were removed from the build.gradle files as they are unnecessary in the latest version of Android Studio and Gradle Plugin 3.0 and above. Should you encounter issues with these settings, simply add them back in:
android {
    ...
    buildToolsVersion x.x.x
    
    dexOptions {
        incremental true
    }
    ...

}

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.