Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDevDebugAndroidTest'.
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-kapt'
- android {
- compileSdkVersion COMPILE_SDK_VERSION.toInteger()
- defaultConfig {
- applicationId "ch.ti8m.package"
- minSdkVersion MIN_SDK_VERSION.toInteger()
- targetSdkVersion TARGET_SDK_VERSION.toInteger()
- versionCode 1
- versionName "1.0"
- multiDexEnabled true
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
- buildToolsVersion BUILD_TOOLS_VERSION.toString()
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- dataBinding {
- enabled = true
- }
- lintOptions {
- abortOnError false
- }
- kapt {
- generateStubs = true
- }
- flavorDimensions "app"
- productFlavors {
- dev {
- // dev utilizes minSDKVersion = 21 to allow the Android gradle plugin
- // to pre-dex each module and produce an APK that can be tested on
- // Android Lollipop without time consuming dex merging processes.
- minSdkVersion MIN_SDK_VERSION_DEV.toInteger()
- applicationIdSuffix ".dev"
- versionNameSuffix "-dev"
- }
- prod {
- // The actual minSdkVersion for the application.
- minSdkVersion MIN_SDK_VERSION.toInteger()
- }
- }
- dexOptions {
- preDexLibraries true
- maxProcessCount 8
- jumboMode true
- javaMaxHeapSize "4g"
- incremental true
- // Instead of setting the heap size for the DEX process, increase Gradle's
- // heap size to enable dex-in-process.
- }
- aaptOptions {
- // You should anyway use WebP format or SVG. To Convert your PNG to WebP checkout this
- // link https://developer.android.com/studio/write/convert-webp.html#convert_images_to_webp.
- //Because build types or product flavors don't define this property, you need to manually
- // set this property to true when building the release version of your app.
- cruncherEnabled false
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$KOTLIN_VERSION"
- // ---------------------------------------------------------------------------
- // GOOGLE SUPPORT LIBS
- // ---------------------------------------------------------------------------
- // support libs
- implementation "com.android.support:appcompat-v7:$ANROID_SUPPORT_VERSION"
- implementation "com.android.support:design:$ANROID_SUPPORT_VERSION"
- implementation "com.android.support:support-dynamic-animation:$ANROID_SUPPORT_VERSION"
- implementation "com.android.support.constraint:constraint-layout:$ANROID_SUPPORT_CONSTRAINT_LAYOUT_VERSION"
- // multidex
- implementation 'com.android.support:multidex:1.0.3' // TODO export it to proprperties
- // android arch
- implementation "android.arch.lifecycle:runtime:$ANROID_ARCH_VERSION"
- implementation "android.arch.lifecycle:extensions:$ANROID_ARCH_VERSION"
- implementation "com.android.support:design:$ANROID_SUPPORT_VERSION"
- implementation 'com.android.support.constraint:constraint-layout:1.0.2'
- kapt 'com.android.databinding:compiler:3.0.1'
- kapt "android.arch.lifecycle:compiler:$ANROID_ARCH_VERSION"
- //data binding
- kapt "com.android.databinding:compiler:$ANDROID_GRADLE_TOOLS_VERSION"
- // ---------------------------------------------------------------------------
- // GOOGLE LIBS
- implementation "com.google.firebase:firebase-auth:$FIREBASE_VERSION"
- implementation "com.google.firebase:firebase-database:$FIREBASE_VERSION"
- implementation "com.google.firebase:firebase-core:$FIREBASE_VERSION"
- implementation "com.google.firebase:firebase-messaging:$FIREBASE_VERSION"
- // ---------------------------------------------------------------------------
- // di
- implementation "com.google.dagger:dagger:$DAGGER_VERSION"
- implementation "com.google.dagger:dagger-android-support:$DAGGER_VERSION"
- kapt "com.google.dagger:dagger-android-processor:$DAGGER_VERSION"
- kapt "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
- // ---------------------------------------------------------------------------
- // OTHER LIBS
- implementation "com.journeyapps:zxing-android-embedded:$ZXING_VERSION"
- implementation "com.android.support.test.espresso:espresso-idling-resource:$ESPRESSO_VERSION"
- // ---------------------------------------------------------------------------
- //material utils
- implementation "blue.aodev:material-values:$MATERIAL_VALUES_VERSION"
- //data binding utils
- implementation "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter:$BINDING_COLLECTION_ADAPTER_VERSION"
- implementation "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter-recyclerview:$BINDING_COLLECTION_ADAPTER_VERSION"
- // --------------------------------- TESTING ---------------------------------
- testImplementation "junit:junit:$JUNIT_VERSION"
- testImplementation "com.google.truth:truth:$GOOGLE_TRUTH_VERSION"
- testImplementation "org.mockito:mockito-core:$MOCKITO_VERSION"
- androidTestImplementation "com.android.support.test:runner:$RUNNER_VERSION"
- androidTestImplementation "com.android.support.test:rules:$RUNNER_VERSION"
- androidTestImplementation "com.android.support.test.uiautomator:uiautomator-v18:2.1.3"
- androidTestImplementation "com.android.support.test.espresso:espresso-core:$ESPRESSO_VERSION"
- androidTestImplementation "com.android.support.test.espresso:espresso-intents:$ESPRESSO_VERSION"
- androidTestImplementation "com.android.support.test.espresso:espresso-web:$ESPRESSO_VERSION"
- androidTestImplementation "com.android.support.test:testing-support-lib:0.1"
- }
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'com.google.gms.google-services'
- # Project-wide Gradle settings.
- # IDE (e.g. Android Studio) users:
- # Gradle settings configured through the IDE *will override*
- # any settings specified in this file.
- # For more details on how to configure your build environment visit
- # http://www.gradle.org/docs/current/userguide/build_environment.html
- # Specifies the JVM arguments used for the daemon process.
- # The setting is particularly useful for tweaking memory settings.
- org.gradle.jvmargs=-Xmx2048m
- # When configured, Gradle will run in incubating parallel mode.
- # This option should only be used with decoupled projects. More details, visit
- # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
- org.gradle.parallel=true
- org.gradle.configureondemand=true
- org.gradle.daemon=true
- # ===========================================================================
- # VERSIONS
- # ===========================================================================
- # ---------------------------------------------------------------------------
- # BUILD TOOLS & BUILD PLUGINS
- # ---------------------------------------------------------------------------
- COMPILE_SDK_VERSION=27
- BUILD_TOOLS_VERSION=27.0.3
- MIN_SDK_VERSION=19
- MIN_SDK_VERSION_DEV=21
- TARGET_SDK_VERSION=27
- KOTLIN_VERSION=1.2.10
- ANDROID_GRADLE_TOOLS_VERSION=3.0.0
- GOOGLE_SERVICES_PLUGIN_VERSION=3.1.0
- # ----------------------------------- APP -----------------------------------
- # ---------------------------------------------------------------------------
- # GOOGLE SUPPORT LIBS
- # ---------------------------------------------------------------------------
- ANROID_ARCH_VERSION=1.1.0
- ANROID_SUPPORT_VERSION=27.0.2
- ANROID_SUPPORT_CONSTRAINT_LAYOUT_VERSION=1.0.2
- # ---------------------------------------------------------------------------
- # GOOGLE LIBS
- # ---------------------------------------------------------------------------
- DAGGER_VERSION=2.12
- FIREBASE_VERSION=11.8.0
- # ---------------------------------------------------------------------------
- # OTHER LIBS
- ZXING_VERSION=3.5.0
- # ---------------------------------------------------------------------------
- BINDING_COLLECTION_ADAPTER_VERSION=2.2.0
- MATERIAL_VALUES_VERSION=1.1.1
- # --------------------------------- TESTING ---------------------------------
- JUNIT_VERSION=4.12
- MOCKITO_VERSION=2.8.47
- GOOGLE_TRUTH_VERSION=0.36
- # ---------------------------------------------------------------------------
- # GOOGLE SUPPORT LIBS
- # ---------------------------------------------------------------------------
- ESPRESSO_VERSION=3.0.1
- RUNNER_VERSION=1.0.1
Add Comment
Please, Sign In to add comment