Guest User

Untitled

a guest
Mar 19th, 2018
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.51 KB | None | 0 0
  1. Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDevDebugAndroidTest'.
  2.  
  3. apply plugin: 'com.android.application'
  4. apply plugin: 'kotlin-android'
  5. apply plugin: 'kotlin-kapt'
  6.  
  7. android {
  8. compileSdkVersion COMPILE_SDK_VERSION.toInteger()
  9. defaultConfig {
  10. applicationId "ch.ti8m.package"
  11. minSdkVersion MIN_SDK_VERSION.toInteger()
  12. targetSdkVersion TARGET_SDK_VERSION.toInteger()
  13. versionCode 1
  14. versionName "1.0"
  15. multiDexEnabled true
  16. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  17. }
  18.  
  19. buildToolsVersion BUILD_TOOLS_VERSION.toString()
  20.  
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27.  
  28. dataBinding {
  29. enabled = true
  30. }
  31.  
  32. lintOptions {
  33. abortOnError false
  34. }
  35.  
  36. kapt {
  37. generateStubs = true
  38. }
  39.  
  40. flavorDimensions "app"
  41. productFlavors {
  42. dev {
  43. // dev utilizes minSDKVersion = 21 to allow the Android gradle plugin
  44. // to pre-dex each module and produce an APK that can be tested on
  45. // Android Lollipop without time consuming dex merging processes.
  46. minSdkVersion MIN_SDK_VERSION_DEV.toInteger()
  47. applicationIdSuffix ".dev"
  48. versionNameSuffix "-dev"
  49. }
  50.  
  51. prod {
  52. // The actual minSdkVersion for the application.
  53. minSdkVersion MIN_SDK_VERSION.toInteger()
  54. }
  55. }
  56.  
  57.  
  58. dexOptions {
  59. preDexLibraries true
  60. maxProcessCount 8
  61. jumboMode true
  62. javaMaxHeapSize "4g"
  63. incremental true
  64. // Instead of setting the heap size for the DEX process, increase Gradle's
  65. // heap size to enable dex-in-process.
  66. }
  67.  
  68.  
  69. aaptOptions {
  70. // You should anyway use WebP format or SVG. To Convert your PNG to WebP checkout this
  71. // link https://developer.android.com/studio/write/convert-webp.html#convert_images_to_webp.
  72.  
  73. //Because build types or product flavors don't define this property, you need to manually
  74. // set this property to true when building the release version of your app.
  75. cruncherEnabled false
  76. }
  77.  
  78. }
  79.  
  80. dependencies {
  81. implementation fileTree(dir: 'libs', include: ['*.jar'])
  82. implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$KOTLIN_VERSION"
  83.  
  84. // ---------------------------------------------------------------------------
  85. // GOOGLE SUPPORT LIBS
  86. // ---------------------------------------------------------------------------
  87. // support libs
  88. implementation "com.android.support:appcompat-v7:$ANROID_SUPPORT_VERSION"
  89. implementation "com.android.support:design:$ANROID_SUPPORT_VERSION"
  90. implementation "com.android.support:support-dynamic-animation:$ANROID_SUPPORT_VERSION"
  91. implementation "com.android.support.constraint:constraint-layout:$ANROID_SUPPORT_CONSTRAINT_LAYOUT_VERSION"
  92.  
  93. // multidex
  94. implementation 'com.android.support:multidex:1.0.3' // TODO export it to proprperties
  95.  
  96. // android arch
  97. implementation "android.arch.lifecycle:runtime:$ANROID_ARCH_VERSION"
  98. implementation "android.arch.lifecycle:extensions:$ANROID_ARCH_VERSION"
  99. implementation "com.android.support:design:$ANROID_SUPPORT_VERSION"
  100. implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  101. kapt 'com.android.databinding:compiler:3.0.1'
  102. kapt "android.arch.lifecycle:compiler:$ANROID_ARCH_VERSION"
  103.  
  104. //data binding
  105. kapt "com.android.databinding:compiler:$ANDROID_GRADLE_TOOLS_VERSION"
  106.  
  107. // ---------------------------------------------------------------------------
  108. // GOOGLE LIBS
  109. implementation "com.google.firebase:firebase-auth:$FIREBASE_VERSION"
  110. implementation "com.google.firebase:firebase-database:$FIREBASE_VERSION"
  111. implementation "com.google.firebase:firebase-core:$FIREBASE_VERSION"
  112. implementation "com.google.firebase:firebase-messaging:$FIREBASE_VERSION"
  113.  
  114. // ---------------------------------------------------------------------------
  115. // di
  116. implementation "com.google.dagger:dagger:$DAGGER_VERSION"
  117. implementation "com.google.dagger:dagger-android-support:$DAGGER_VERSION"
  118. kapt "com.google.dagger:dagger-android-processor:$DAGGER_VERSION"
  119. kapt "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
  120.  
  121. // ---------------------------------------------------------------------------
  122. // OTHER LIBS
  123. implementation "com.journeyapps:zxing-android-embedded:$ZXING_VERSION"
  124. implementation "com.android.support.test.espresso:espresso-idling-resource:$ESPRESSO_VERSION"
  125.  
  126. // ---------------------------------------------------------------------------
  127. //material utils
  128. implementation "blue.aodev:material-values:$MATERIAL_VALUES_VERSION"
  129.  
  130. //data binding utils
  131. implementation "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter:$BINDING_COLLECTION_ADAPTER_VERSION"
  132. implementation "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter-recyclerview:$BINDING_COLLECTION_ADAPTER_VERSION"
  133.  
  134. // --------------------------------- TESTING ---------------------------------
  135.  
  136. testImplementation "junit:junit:$JUNIT_VERSION"
  137. testImplementation "com.google.truth:truth:$GOOGLE_TRUTH_VERSION"
  138. testImplementation "org.mockito:mockito-core:$MOCKITO_VERSION"
  139. androidTestImplementation "com.android.support.test:runner:$RUNNER_VERSION"
  140. androidTestImplementation "com.android.support.test:rules:$RUNNER_VERSION"
  141. androidTestImplementation "com.android.support.test.uiautomator:uiautomator-v18:2.1.3"
  142. androidTestImplementation "com.android.support.test.espresso:espresso-core:$ESPRESSO_VERSION"
  143. androidTestImplementation "com.android.support.test.espresso:espresso-intents:$ESPRESSO_VERSION"
  144. androidTestImplementation "com.android.support.test.espresso:espresso-web:$ESPRESSO_VERSION"
  145. androidTestImplementation "com.android.support.test:testing-support-lib:0.1"
  146.  
  147. }
  148.  
  149. apply plugin: 'kotlin-android-extensions'
  150. apply plugin: 'com.google.gms.google-services'
  151.  
  152. # Project-wide Gradle settings.
  153.  
  154. # IDE (e.g. Android Studio) users:
  155. # Gradle settings configured through the IDE *will override*
  156. # any settings specified in this file.
  157.  
  158. # For more details on how to configure your build environment visit
  159. # http://www.gradle.org/docs/current/userguide/build_environment.html
  160.  
  161. # Specifies the JVM arguments used for the daemon process.
  162. # The setting is particularly useful for tweaking memory settings.
  163. org.gradle.jvmargs=-Xmx2048m
  164.  
  165. # When configured, Gradle will run in incubating parallel mode.
  166. # This option should only be used with decoupled projects. More details, visit
  167. # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
  168.  
  169. org.gradle.parallel=true
  170. org.gradle.configureondemand=true
  171. org.gradle.daemon=true
  172.  
  173.  
  174. # ===========================================================================
  175. # VERSIONS
  176. # ===========================================================================
  177.  
  178. # ---------------------------------------------------------------------------
  179. # BUILD TOOLS & BUILD PLUGINS
  180. # ---------------------------------------------------------------------------
  181. COMPILE_SDK_VERSION=27
  182. BUILD_TOOLS_VERSION=27.0.3
  183. MIN_SDK_VERSION=19
  184. MIN_SDK_VERSION_DEV=21
  185. TARGET_SDK_VERSION=27
  186. KOTLIN_VERSION=1.2.10
  187. ANDROID_GRADLE_TOOLS_VERSION=3.0.0
  188. GOOGLE_SERVICES_PLUGIN_VERSION=3.1.0
  189.  
  190. # ----------------------------------- APP -----------------------------------
  191.  
  192. # ---------------------------------------------------------------------------
  193. # GOOGLE SUPPORT LIBS
  194. # ---------------------------------------------------------------------------
  195. ANROID_ARCH_VERSION=1.1.0
  196. ANROID_SUPPORT_VERSION=27.0.2
  197. ANROID_SUPPORT_CONSTRAINT_LAYOUT_VERSION=1.0.2
  198.  
  199. # ---------------------------------------------------------------------------
  200. # GOOGLE LIBS
  201. # ---------------------------------------------------------------------------
  202. DAGGER_VERSION=2.12
  203. FIREBASE_VERSION=11.8.0
  204.  
  205. # ---------------------------------------------------------------------------
  206. # OTHER LIBS
  207. ZXING_VERSION=3.5.0
  208. # ---------------------------------------------------------------------------
  209. BINDING_COLLECTION_ADAPTER_VERSION=2.2.0
  210. MATERIAL_VALUES_VERSION=1.1.1
  211.  
  212. # --------------------------------- TESTING ---------------------------------
  213. JUNIT_VERSION=4.12
  214. MOCKITO_VERSION=2.8.47
  215. GOOGLE_TRUTH_VERSION=0.36
  216.  
  217. # ---------------------------------------------------------------------------
  218. # GOOGLE SUPPORT LIBS
  219. # ---------------------------------------------------------------------------
  220. ESPRESSO_VERSION=3.0.1
  221. RUNNER_VERSION=1.0.1
Add Comment
Please, Sign In to add comment