-
Notifications
You must be signed in to change notification settings - Fork 13
FAQ
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'
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".

- 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
}
...
}