web-dev-qa-db-ja.com

DexArchiveMergerException:dexをマージできません-Android Studio 3.0 Stable

私が作った:

  • 「設定」->「Android SDK」->「SDKツール」でGoogle Play servicesがチェックされ、インストールされますv.46
  • フォルダー/.gradleを削除しました
  • 「クリーンプロジェクト」
  • 「プロジェクトの再構築」

エラー:

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> Java.lang.RuntimeException: com.Android.builder.dexing.DexArchiveMergerException: Unable to merge dex

以下はコマンドgradlew -q app:dependencies>>app_dependencies.txtの出力です

コマンドgradle :app:assembleDebug --stacktraceを実行すると、次のようになります。

> Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> Java.lang.RuntimeException: com.Android.builder.dexing.DexArchiveMergerException: Unable to merge dex

 After run of the command
`gradle :app:assembleDebug --stacktrace` 
Error is:

:app:javaPreCompileDebug UP-TO-DATE
:app:compileDebugJavaWithJavacAn exception has occurred in the compiler (1.8.0_152-release). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.Java.com) after checking the Bug Database (http://bugs.Java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
Java.lang.IllegalStateException: endPosTable already set
    at com.Sun.tools.javac.util.DiagnosticSource.setEndPosTable(DiagnosticSource.Java:136)
    at com.Sun.tools.javac.util.Log.setEndPosTable(Log.Java:350)
    at com.Sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.Java:667)
    at com.Sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.Java:950)
    at com.Sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.Java:892)
    at com.Sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.Java:921)
    at com.Sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.Java:1187)
    at com.Sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.Java:1170)
    at com.Sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.Java:856)
    at com.Sun.tools.javac.main.Main.compile(Main.Java:523)
    at com.Sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.Java:129)
    at com.Sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.Java:138)
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.Java:49)
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.Java:36)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.Java:99)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.Java:52)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.Java:37)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.Java:35)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.Java:25)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.Java:39)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.Java:24)
    at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.Java:198)
    at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.Java:129)
    at com.Android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.Java:95)
    at Sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at Sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.Java:62)
    at Sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.Java:43)
    at Java.lang.reflect.Method.invoke(Method.Java:498)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.Java:73)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.Java:173)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.Java:134)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.Java:121)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.Java:122)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.Java:197)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.Java:107)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.Java:111)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.Java:92)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.Java:70)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.Java:63)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.Java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.Java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.Java:88)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.Java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.Java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.Java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.Java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.Java:34)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.Java:248)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.Java:197)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.Java:107)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.Java:241)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.Java:230)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.Java:124)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.Java:80)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.Java:105)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.Java:99)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.Java:625)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.Java:580)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.Java:99)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.Java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.Java:46)
    at Java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.Java:1142)
    at Java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.Java:617)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.Java:55)
    at Java.lang.Thread.run(Thread.Java:745)
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.Java:100)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.Java:70)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.Java:63)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.Java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.Java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.Java:88)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.Java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.Java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.Java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.Java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.Java:34)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.Java:248)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.Java:197)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.Java:107)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.Java:241)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.Java:230)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.Java:124)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.Java:80)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.Java:105)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.Java:99)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.Java:625)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.Java:580)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.Java:99)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.Java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.Java:46)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.Java:55)
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.Java:51)
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.Java:36)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.Java:99)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.Java:52)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.Java:37)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.Java:35)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.Java:25)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.Java:39)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.Java:24)
    at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.Java:198)
    at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.Java:129)
    at com.Android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.Java:95)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.Java:73)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.Java:173)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.Java:134)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.Java:121)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.Java:122)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.Java:197)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.Java:107)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.Java:111)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.Java:92)
    ... 27 more


* Get more help at https://help.gradle.org

BUILD FAILED in 19s
259 actionable tasks: 6 executed, 253 up-to-date
10:58:01: External task execution finished 'assembleDebug --stacktrace'.

私のプロジェクトのgradleファイル:

apply from: 'dependencies.gradle'
buildscript {
    repositories {
        jcenter()
        mavenCentral()
        maven { url "https://jitpack.io" }
        maven { url 'https://maven.fabric.io/public' }
        google()
    }
    dependencies {
        classpath 'com.Android.tools.build:gradle:3.0.0'
        classpath 'com.google.gms:google-services:3.1.0'
        classpath 'io.fabric.tools:gradle:1.+'
    }
}

allprojects {
    repositories {
        jcenter()
        mavenCentral()
        maven { url "https://jitpack.io" }
        maven { url 'https://maven.fabric.io/public' }
        google()
    }

    ext {
        androidApplicationId = 'com.example'
        androidVersionCode = 1
        androidVersionName = "1.1.0"
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

ファイル:app/ build.gradle

    apply plugin: 'com.Android.application'
    apply plugin: 'io.fabric'


    Android {
        compileSdkVersion 25
        buildToolsVersion "26.0.2"

        defaultConfig {
            multiDexEnabled true
            applicationId "com.example"
            minSdkVersion 21
            targetSdkVersion 23
            versionCode 1
            versionName "1.0"

            renderscriptTargetApi 23
            renderscriptSupportModeEnabled true

        }
        compileOptions {
            targetCompatibility 1.8
            sourceCompatibility 1.8
        }
        lintOptions {
            quiet true
            abortOnError false
            ignoreWarnings true
            disable 'InvalidPackage'           //Some libraries have issues with this.
            disable 'OldTargetApi'
            //Lint gives this warning but SDK 20 would be Android L Beta.
            disable 'IconDensities'            //For testing purpose. This is safe to remove.
            disable 'IconMissingDensityFolder' //For testing purpose. This is safe to remove.
        }


        dexOptions {
            javaMaxHeapSize "8G"
        }

        packagingOptions {
            exclude 'LICENSE.txt'
            exclude 'META-INF/DEPENDENCIES.txt'
            exclude 'META-INF/LICENSE.txt'
            exclude 'META-INF/NOTICE.txt'
            exclude 'META-INF/NOTICE'
            exclude 'META-INF/LICENSE'
            exclude 'META-INF/DEPENDENCIES'
            exclude 'META-INF/notice.txt'
            exclude 'META-INF/license.txt'
            exclude 'META-INF/dependencies.txt'
            exclude 'META-INF/rxjava.properties'
        }

        sourceSets {
            main.Java.srcDirs += 'build/generated/source/apt'
        }
    }

    repositories {
        flatDir {
            dirs 'libs'
        }
    }



    dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation project(':library_api')
    implementation project(':library_base')
    implementation project(':library_blur_dialog')
    implementation project(':library_countrycodepicker_dialog')
    implementation project(':library_glow_decorator')
    implementation project(':library_icons')
    implementation project(':library_loopvideo')
    implementation project(':library_section_adaper')
    implementation project(':library_taptargetview')
    implementation project(':library_ucrop')
    implementation project(':library_utils')
    implementation project(':library_utils_picasso')
    implementation project(':library_vector_compat')
    implementation project(':library_view_clock')
    implementation project(':library_view_shimmer_recycler')

    implementation "com.google.Android.gms:play-services-cast-framework:11.4.2"
    compileOnly 'com.google.Android.wearable:wearable:2.0.3'
    implementation 'com.google.Android.support:wearable:2.0.3'
    implementation 'com.google.Android.exoplayer:exoplayer:r2.4.1'

    implementation "com.Android.support:mediarouter-v7:25.4.0"
    implementation "com.Android.support:leanback-v17:25.4.0"
    implementation "com.Android.support:design:25.4.0"

    implementation "com.Android.support:appcompat-v7:25.4.0"
    implementation "com.Android.support:support-v4:25.4.0"
    implementation "com.Android.support:gridlayout-v7:25.4.0"
    implementation "com.Android.support:cardview-v7:25.4.0"
    implementation "com.Android.support:recyclerview-v7:25.4.0"
    implementation "com.Android.support:preference-v14:25.4.0"

    // rxjava
    implementation  'io.reactivex:rxjava:1.2.9'
    implementation 'io.reactivex:rxandroid:1.2.1'
    implementation 'com.github.davidmoten:rxjava-extras:0.8.0.6'

    // square
     "com.squareup.retrofit2:retrofit:2.1.0",
    implementation  "com.squareup.retrofit2:converter-gson:2.1.0"
    implementation "com.squareup.retrofit2:adapter-rxjava:2.1.0"
    implementation "com.squareup.phrase:phrase:1.1.0"

    implementation "com.squareup.okhttp3:okhttp:3.6.0"
    implementation "com.squareup.okhttp3:logging-interceptor:3.6.0"
    implementation "com.squareup.okhttp3:okhttp-urlconnection:3.6.0"

    // picasso
    implementation  "com.squareup.picasso:picasso:2.5.2"
    implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'

    // dagger
    implementation "com.google.dagger:dagger:2.10"
    annotationProcessor  "com.google.dagger:dagger-compiler:2.10"
    implementation "javax.annotation:jsr250-api:1.0"
    implementation  "javax.inject:javax.inject:1"


    // jake ftw
    implementation 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

    compileOnly 'org.projectlombok:lombok:1.16.16'
    annotationProcessor 'org.projectlombok:lombok:1.16.16'

    // FragmentWithArgs
    implementation   "com.hannesdorfmann.fragmentargs:annotation:3.0.2",
    annotationProcessor "com.hannesdorfmann.fragmentargs:processor:3.0.2",

    implementation "org.parceler:parceler-api:1.1.9",
    annotationProcessor "org.parceler:parceler:1.1.9",
    implementation 'com.hannesdorfmann.fragmentargs:bundler-parceler:3.0.2'

    implementation "com.github.codekidX:storage-chooser:1.0.34"

    implementation 'io.github.yavski:fab-speed-dial:1.0.6'

    implementation('com.crashlytics.sdk.Android:crashlytics:2.6.7@aar') {
        transitive = true;
    }

    // intent builder
    implementation         "com.github.marcinmoskala.activitystarter:activitystarter:1.00"
annotationProcessor  "com.github.marcinmoskala.activitystarter:activitystarter-compiler:1.00"

    implementation 'com.Android.support.constraint:constraint-layout:1.0.2'//constraint-layout
    implementation 'org.greenrobot:eventbus:3.0.0'
    //font
    implementation 'uk.co.chrisjenx:calligraphy:2.2.0'
    implementation 'com.github.florent37:expectanim:1.0.6'
    implementation 'com.romandanylyk:pageindicatorview:0.2.0@aar'
    implementation 'com.github.rubensousa:gravitysnaphelper:1.2'
    implementation 'com.flaviofaria:kenburnsview:1.0.7'
    implementation 'com.github.florent37:arclayout:1.0.2'

    implementation 'com.jakewharton.rxbinding:rxbinding:1.0.1'
    implementation 'com.wang.avi:library:2.1.3'
    implementation 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'
    implementation 'com.borax12.materialdaterangepicker:library:1.9'
    implementation 'com.github.scottyab:showhidepasswordedittext:0.8'
    //Location
    implementation "com.google.Android.gms:play-services-maps:11.4.2"
    implementation 'pl.charmas.Android:android-reactive-location:0.10@aar'
    implementation "com.google.Android.gms:play-services-location:11.4.2"
    //you can use newer GMS version if you need
    implementation "com.google.Android.gms:play-services-places:11.4.2"
    implementation 'com.tbruyelle.rxpermissions:rxpermissions:0.9.4@aar'
    implementation 'commons-validator:commons-validator:1.4.1'
    implementation 'com.balysv:material-ripple:1.0.2'
    implementation 'com.googlecode.libphonenumber:libphonenumber:8.5.2'
    implementation 'ru.egslava:MaskedEditText:1.0.5'
    implementation 'com.futuremind.recyclerfastscroll:fastscroll:0.2.5'

    implementation "com.google.firebase:firebase-core:11.4.2"


    implementation 'com.labo.kaji:swipeawaydialog:0.1.1'
    implementation 'io.supercharge:shimmerlayout:1.0.1'
    implementation 'hanks.xyz:htextview-library:0.1.5'
    implementation 'com.github.castorflex.smoothprogressbar:library:1.1.0'//progressbar for action bar
    implementation 'io.reactivex:rxjava-math:1.0.0'
    implementation 'jp.wasabeef:picasso-transformations:2.1.2'
    implementation 'com.afollestad.material-dialogs:core:0.9.1.0'
    implementation('com.github.ihsanbal:LoggingInterceptor:2.0.2') {
        exclude group: 'org.json', module: 'json'
    }

}
apply plugin: 'com.google.gms.google-services'

アプリケーションクラス:

public class TheApplication  extends Application {
...
}
7
NickUnuchek

追加する

implementation('commons-validator:commons-validator:1.4.1') {
        exclude group: 'commons-collections', module: 'commons-collections'
    }

の代わりに

implementation'commons-validator:commons-validator:1.4.1'

問題と解決策を理解したい場合、私が here を説明しようとした理由。

それがあなたの問題を解決することを願っています。

5

基本的に、ここでMultiDexの内容を理解する必要があります> https://developer.Android.com/studio/build/multidex

上記の手順を使用して、アプリを再び動作させました:)

0
PARVEEN

Android.support.designの依存関係を追加する

0
Augustin A

私のプロジェクトのlibモジュールにgsonのローカルjarがあったのとまったく同じ問題を抱えていました。この link により、ライブラリモジュールはローカルJARを処理しなくなりました。

この問題を解決するために、gson-*。jarを削除し、代わりにcompile 'com.google.code.gson:gson:2.8.2'をbuild.gradleに追加しました。

0
Amit