Я сталкиваюсь с этой проблемой уже два дня и не могу найти решения. Я использую модель MVVM с Dagger2, используя kotlin для разработки приложения Android. Если потребуется дополнительная информация, пожалуйста, прокомментируйте ниже, я опубликую их. Я начал работать над kotlin совсем недавно, поэтому любая подсказка / предложение / решение будет принята с благодарностью.
org.gradle.execution.MultipleBuildFailures: Сборка завершена с 1 ошибкой. в org.gradle.initialization.DefaultGradleLauncher $ ExecuteTasks.run (DefaultGradleLauncher. java: 386) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute * 101.grain. .operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 293) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.ecutor.gradu.o. (DefaultBuildOperationExecutor. java: 91) по адресу org.gradle.internal.operations.DelegatingBuildOperationExecutor.run (DelegatingBuildOperationExecutor. java: 31) по адресу org.gradle.initialization.DefaultGradleLauncher.runTasks * 24; org.gradle.initialization.DefaultGradleLauncher.doBuildStages (DefaultGradleLauncher. java: 159) в org.gradle.initialization.DefaultGradleLauncher.executeTasks (DefaultGradleLaun cher. java: 134) в org.gradle.internal.invocation.GradleBuildController $ 1.execute (GradleBuildController. java: 58) в org.gradle.internal.invocation.GradleBuildController $ 1.execute (GradleBuildControl: GradleBuildControl: 55) в org.gradle.internal.invocation.GradleBuildController $ 3.create (GradleBuildController. java: 82) в org.gradle.internal.invocation.GradleBuildController $ 3.create (GradleBuildController. java): .internal.work. (GradleBuildController. java: 75) в org.gradle.internal.invocation.GradleBuildController.run (GradleBuildController. java: 55) в org.gradle.tooling.internal.provider.runner * BuildModelAunRunner (BuildModelAunRunner). 1027 *: 54) в org.gradle.launcher.exe c .ChainingBuildActionRunner.run (ChainingBuild ActionRunner. java: 35) в org.gradle.launcher.exe c .ChainingBuildActionRunner.run (ChainingBuildActionRunner. java: 35) в org.gradle.launcher.exe c. java: 58) в org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run (ValidatingBuildActionRunner. java: 32) в org.gradle.launcher.exe c. : 39) в org.gradle.launcher.exe c .RunAsBuildOperationBuildActionRunner $ 3.call (RunAsBuildOperationBuildActionRunner. java: 49) в org.gradle.launcher.exe c .RunAsBuildOperationBuildActionallUctionRunction 3.unUctionRunner $. : 44) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 315) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuilduperationorork ( perationExecutor. java: 305) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor. java: 175) в org.gradle.internal.operations.DefaultBuildOperationExecutor.call (101BuildOperationExecutor: DefaultBuildOperationExecutor. в org.gradle.internal.operations.DelegatingBuildOperationExecutor.call (DelegatingBuildOperationExecutor. java: 36) в org.gradle.launcher.exe c. RunAsBuildOperationBuildActionRunner.run (RunAsBuildOperationBuildActionRunner. java: 44) в org.gradle.launcher.exe c .InProcessBuildActionExecuter $ 1.transform (InProcessBuildActionExecuter. java: Execution * .50. $ 1.transform (InProcessBuildActionExecuter. java: 46) по адресу org.gradle.composite.internal.DefaultRootBuildState.run (DefaultRootBuildState. java: 78) по адресу org.gradle.launcher.exe c .InProcessBuildAecuExuction.ecuExuctionExecuter . java: 46. 1058 *: 42) в org.gradle.launcher.exe c .BuildTreeScopeBuildActionExecuter.execute (BuildTreeScopeBuildActionExecuter. java: 28) в org.gradle.tooling.internal.provider.Continuous *uildActionExecuter. 78) в орг.градле e.tooling.internal.provider.ContinuousBuildActionExecuter.execute (ContinuousBuildActionExecuter. java: 52) в org.gradle.tooling.internal.provider.SubscribeableBuildActionExecuter.execute (SubscribeableBuildActionExgord 59). internal.provider.SubscribeableBuildActionExecuter.execute (SubscribeableBuildActionExecuter. java: 36) в org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute (SessionScopeBuildActionExecuter. * 1065) .grag. SessionScopeBuildActionExecuter.execute (SessionScopeBuildActionExecuter. java: 38) в org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute (GradleThreadBuildActionExecuter. javareadle GradleThreadBuildActionExecuter. java: 26) в org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute (ParallelismConfigurationBuildActionExecuter. java: 43) в org.g radle. internal.provider.StartParamsValidatingActionExecuter.execute (StartParamsValidatingActionExecuter. java: 32) в org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute (SessionFailureReportingAction73.ol. SessionFailureReportingActionExecuter.execute (SessionFailureReportingActionExecuter. java: 41) в org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute (SetupLoggingActionExecuter. javaexexet.Autter.gration.gration.grain. SetupLoggingActionExecuter. java: 32) в org.gradle.launcher.daemon.server.exe c .ExecuteBuild.doBuild (ExecuteBuild. java: 67) в org.grad le.launcher.daemon.server.exe c .BuildCommandOnly.execute (BuildCommandOnly. java: 36) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution. java): в org.gradle.launcher.daemon.server.exe c .WatchForDisconnection.execute (WatchForDisconnection. java: 37) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (*emonCommandExecution. * : 104) в org.gradle.launcher.daemon.server.exe c .ResetDeprecationLogger.execute (ResetDeprecationLogger. java: 26) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCom. java: 104) в org.gradle.launcher.daemon.server.exe c .RequestStopIfSingleUsedDaemon.execute (RequestStopIfSingleUsedDaemon. java: 34) в org.gradle.launcher.daemon.server.api.DaemonCommandEx (DaemonCommandExecution java:. 104) в org.gradle.launcher.daemon.server.exe c .ForwardClientInput $ 2.call (ForwardClientInput. java: 74) в org.gradle.launcher.daemon.server.exe c .ForwardClientInput $ 2.call ( ForwardClientInput. java: 72) в org.gradle.util.Swapper.swap (Swapper. java: 38) в org.gradle.launcher.daemon.server.exe c .ForwardClientInput.execute (ForwardClientInput. java: 72) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.daemon.server.exe c .LogAndCheckHealth.execute ( LogAndCheckHealth. java: 55) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.daemon.server.exe c .LogToC .doBuild (LogToClient. java: 62) в org.gradle.launcher.daemon.server.exe c .BuildCommandOnly.execute (BuildCommandOnly. java: 36) в org.gradle.launcher.daemon.server. api.DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.dae mon.server.exe c .EstablishBuildEnvironment.doBuild (EstablishBuildEnvironment. java: 81) в org.gradle.launcher.daemon.server.exe c .BuildCommandOnly.execute (BuildCommandOnly. java: 36 at) org.gradle.launcher.daemon. : 50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator $ 1.run (DaemonStateCoordinator. java: 295) по адресу org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute (ExecutorPolicy): 63: 63. в org.gradle.internal.concurrent.ManagedExecutorImpl $ 1.run (ManagedExecutorImpl. java: 46) в java .util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor. java: 1142) в java. concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor. java: 617) в org.gradle.internal.concurrent.ThreadFactoryImpl $ ManagedThreadRunnable.run (ThreadFactoryImpl. java: 55) at java .lang.Thread.run (Thread. java: 745). Вызывается: org.gradle.api.tasks.TaskExecutionException: сбой при выполнении задачи ': app: kaptDebug Kotlin'. в org.gradle.api. в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute (ValidatingTaskExecuter. java: 57) в org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execukExecuter.execukExecuter. в org.gradle.api. в org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute (FinalizePropertiesTaskExecuter. java: 45) в org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskAractStateTexTactStateThereTexTetateTexTectTexTecTexTateTexTecT.TexTextExtate.Exte. в орг.град le.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute (SkipTaskWithNoActionsExecuter. java: 56) в org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuT. gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute (CatchExceptionTaskExecuter. java: 36) в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.executeTask (EventFiringTask): 11 или 67: atSg: 11 или at. .gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.call (EventFiringTaskExecuter. java: 52) в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.call (EventFiringTaskExecuter. в org.gradle.internal.operations. DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 315) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExternal.Ogn.Operation. DefaultBuildOperationExecutor. java: 175) в org.gradle.internal.operations.DefaultBuildOperationExecutor.call (DefaultBuildOperationExecutor. java: 101) в org.gradle.internal.operations.DelegatingBuildOperationExperationExecutor.call (DelegatingBuild 11): 36). в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute (EventFiringTaskExecuter. java: 49) в org.gradle.execution.plan.LocalTaskNodeExecutor.execute (LocalTaskNodeExecutor. * 1145g): .execution.taskgraph.DefaultTaskExecutionGraph $ InvokeNodeExecutorsAction.execute (DefaultTaskExecutionGraph. java: 355) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ InvokeNodeExe (. DefaultTaskExecutionGraph java: 343) cutorsAction.execute в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOperationAwareExecutionAction.execute (DefaultTaskExecutionGraph java:. 336) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOperationAwareExecutionAction.execute ( DefaultTaskExecutionGraph. java: 322) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker $ 1.execute (DefaultPlanExecutor. java: 134) в org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker $ 1.Execute ($ 1.execute java: 129) по адресу org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.execute (DefaultPlanExecutor. java: 202) по адресу org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.executeNextNode (DefaultPlanExec: DefaultPlanExec:. 193) at org.gradle.execution.plan.DefaultPlanExecutor $ ExecutorWorker.run (DefaultPlanExecutor. java: 129) ... еще 6 причин: org.gradle.api.GradleException: ошибка компиляции. Подробности смотрите в журнале org.jetbrains. kotlin .gradle.tasks.TasksUtilsKt.throwGradleExceptionIfIrError (tasksUtils.kt: 14) в org.jetbrains. org.jetbrains. kotlin .compilerRunner.GradleCompilerRunner.runCompilerAsyn c (GradleKotlinCompilerRunner.kt: 158) в org.jetbrains. kotlin .compilerRunner.GradleCompilerRunner.runot. jetbrains. kotlin .compilerRunner.GradleCompilerRunner.runJvmCompilerAsyn c (GradleKotlinCompilerRunner.kt: 92) в org. .invoke0 (собственный метод) в sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 62) в sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl. * 11.gref. .invoke (Метод. java: 498) в org.gradle.internal.reflect.JavaMe thod.invoke (JavaMethod. java: 73) в org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute (IncrementalTaskAction. java: 47) в org.gradle.api.internal.project.taskfactory. StandardTaskAction.execute (StandardTaskAction. java: 41) в org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute (StandardTaskAction. java: 28) в org.gradle.api.internal.tasks.execution. ExecuteActionsTaskExecuter $ 2.run (ExecuteActionsTaskExecuter. java: 284) по адресу org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 301perationBeoOgn.Ouист (DefaultBuildOperationExecutor. java: 293) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor. java: 175) в org.gradle.internal.operations. DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor. java: 91) в org.gradle.internal.operations.DelegatingBuildOperationExecutor.run (DelegatingBuildOperationExecutor. java: 31) в org.gradle.api.internal.taskExecution ExecuteActionsTaskExecuter. java: 273) по адресу org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions (ExecuteActionsTaskExecuter. java: 258) по адресу org.gradle.api.internal.tasksExAtern.tc. (ExecuteActionsTaskExecuter. java: 67) в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter $ TaskExecution.execute (ExecuteActionsTaskExecuter. java: 145) в org.gradle.internal.execution.ecutetetetetetete. .execute (ExecuteStep. java: 49) в org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute (CancelExecutionStep. java: 34) в org.gradle.internal.execution.impl.steps.TimeoutStep .executeWithoutTimeout (TimeoutStep. java: 69) в org.gradle.internal .execution.impl.steps.TimeoutStep.execute (TimeoutStep. java: 49) в org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute (CatchExceptionStep. java: 33) в org.gradle.internal .execution.impl.steps.CreateOutputsStep.execute (CreateOutputsStep. java: 50) в org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute (SnapshotOutputStep. java: 43) в org.gra .execution.impl.steps.SnapshotOutputStep.execute (SnapshotOutputStep. java: 29) в org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache (CacheStep. java: 134) в org.gradle. .execution.impl.steps.CacheStep.lambda $ execute $ 3 (CacheStep. java: 83) в java .util.Optional.orElseGet (Необязательно. java: 267) в org.gradle.internal.execution. impl.steps.CacheStep.execute (CacheStep. java: 82) в org.gradle.internal.execution.impl.steps.CacheStep.execute (CacheStep. java: 36) в org.gradle.internal.execution. impl.steps.PrepareCachingStep.execute (PrepareCachingStep. java: 33) в org.gradle.internal. execute.impl.steps.StoreSnapshotsStep.execute (StoreSnapshotsStep. java: 38) в org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute (StoreSnapshotsStep. java: 23) в org. исполнительный процесс .util.Optional.map (Необязательно. java: 215) в org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute (SkipUpToDateStep. java: 52) в org.gradle.internal.execution.impl .steps.SkipUpToDateStep.execute (SkipUpToDateStep. java: 36) в org.gradle.internal.execution.impl.DefaultWorkExecutor.execute (DefaultWorkExecutor. java: 34) в org.gradle.api.ext. .ExecuteActionsTaskExecuter.execute (ExecuteActionsTaskExecuter. java: 91) ... еще 35
**The gradle looks like below**
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
//Dagger Injection
def DAGGER_VERSION = "2.25"
implementation "com.google.dagger:dagger-android:${DAGGER_VERSION}"
kapt "com.google.dagger:dagger-compiler:${DAGGER_VERSION}"
compileOnly "javax.annotation:jsr250-api:1.0"
implementation "com.google.dagger:dagger-android-support:${DAGGER_VERSION}" // if you use the support libraries
kapt "com.google.dagger:dagger-android-processor:${DAGGER_VERSION}"
// Butterknife - Binding Android views and callbacks to fields and methods
def BUTTERKNIFE_VERSION = "9.0.0"
implementation "com.jakewharton:butterknife:${BUTTERKNIFE_VERSION}"
kapt "com.jakewharton:butterknife-compiler:${BUTTERKNIFE_VERSION}"
// Retrofit
def RETROFIT_VERSION = "2.3.0"
implementation "com.squareup.retrofit2:retrofit:${RETROFIT_VERSION}"
implementation "com.squareup.retrofit2:converter-gson:${RETROFIT_VERSION}"
implementation "com.squareup.retrofit2:adapter-rxjava:${RETROFIT_VERSION}"
implementation("com.squareup.retrofit2:converter-simplexml:${RETROFIT_VERSION}") {
exclude group: 'xpp3', module: 'xpp3'
exclude group: 'stax', module: 'stax-api'
exclude group: 'stax', module: 'stax'
}
// OkHttp
def OKHTTP_VERSION = "3.3.0"
implementation "com.squareup.okhttp3:okhttp:${OKHTTP_VERSION}"
implementation "com.squareup.okhttp3:logging-interceptor:${OKHTTP_VERSION}"
// RxJava
def rxJava = '2.1.4'
def rxJavaExtensions = '0.17.7'
def rxAndroid = '2.0.1'
api "io.reactivex.rxjava2:rxjava:${rxJava}"
implementation "com.github.akarnokd:rxjava2-extensions:${rxJavaExtensions}"
implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
implementation 'com.jakewharton.rxrelay2:rxrelay:2.0.0'
// RxAndroid
implementation "io.reactivex.rxjava2:rxandroid:${rxAndroid}@aar"
//ViewModel
implementation 'android.arch.lifecycle:extensions:1.1.1'
// Multidex
implementation 'com.android.support:multidex:1.0.3'
//Mobile Vision - Barcode Scanner
implementation 'com.google.android.gms:play-services-vision:17.0.2'
//Crashlytics
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.6'
}