Created
March 3, 2018 10:01
-
-
Save tejasna/18a50cc803116adb48300b7a6d6c98b2 to your computer and use it in GitHub Desktop.
Conflicting overloads
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using Kotlin incremental compilation | |
:app:transformDataBindingWithDataBindingMergeArtifactsForDebug UP-TO-DATE | |
:app:kaptDebugKotlin | |
e: /Users/tejasna/AndroidStudioProjects/Ledger/app/build/tmp/kapt3/stubs/debug/xyz/ledger/dagger/AppComponent.java:9: error: retrofit2.Retrofit cannot be provided without an @Inject constructor or from an @Provides-annotated method. | |
e: | |
e: public abstract xyz.ledger.data.Api provideApi(); | |
e: ^ | |
e: retrofit2.Retrofit is injected at | |
e: xyz.ledger.dagger.NetworkModule.api$app_debug(tickerRetrofit) | |
e: xyz.ledger.data.Api is provided at | |
e: xyz.ledger.dagger.AppComponent.provideApi() | |
e: /Users/tejasna/AndroidStudioProjects/Ledger/app/build/tmp/kapt3/stubs/debug/xyz/ledger/dagger/AppComponent.java:14: error: retrofit2.Retrofit cannot be provided without an @Inject constructor or from an @Provides-annotated method. | |
e: | |
e: public abstract void inject(@org.jetbrains.annotations.NotNull() | |
e: ^ | |
e: retrofit2.Retrofit is injected at | |
e: xyz.ledger.dagger.NetworkModule.api$app_debug(tickerRetrofit) | |
e: xyz.ledger.data.Api is injected at | |
e: xyz.ledger.App.api | |
e: xyz.ledger.App is injected at | |
e: xyz.ledger.dagger.AppComponent.inject(app) | |
e: /Users/tejasna/AndroidStudioProjects/Ledger/app/build/tmp/kapt3/stubs/debug/xyz/ledger/dagger/AppComponent.java:17: error: retrofit2.Retrofit cannot be provided without an @Inject constructor or from an @Provides-annotated method. | |
e: | |
e: public abstract void inject(@org.jetbrains.annotations.NotNull() | |
e: ^ | |
e: retrofit2.Retrofit is injected at | |
e: xyz.ledger.dagger.NetworkModule.api$app_debug(tickerRetrofit) | |
e: xyz.ledger.data.Api is injected at | |
e: xyz.ledger.data.TickerService.api | |
e: xyz.ledger.data.TickerService is injected at | |
e: xyz.ledger.dagger.AppComponent.inject(service) | |
e: /Users/tejasna/AndroidStudioProjects/Ledger/app/build/tmp/kapt3/stubs/debug/xyz/ledger/dagger/AppComponent.java:20: error: retrofit2.Retrofit cannot be provided without an @Inject constructor or from an @Provides-annotated method. | |
e: | |
e: public abstract void inject(@org.jetbrains.annotations.NotNull() | |
e: ^ | |
e: retrofit2.Retrofit is injected at | |
e: xyz.ledger.dagger.NetworkModule.api$app_debug(tickerRetrofit) | |
e: xyz.ledger.data.Api is injected at | |
e: xyz.ledger.domain.dashboard.DashboardViewModel.<init>(…, api) | |
e: xyz.ledger.domain.dashboard.DashboardViewModel is injected at | |
e: xyz.ledger.domain.dashboard.DashboardActivity.viewModel | |
e: xyz.ledger.domain.dashboard.DashboardActivity is injected at | |
e: xyz.ledger.dagger.AppComponent.inject(activity) | |
w: warning: Supported source version 'RELEASE_7' from annotation processor 'android.arch.persistence.room.RoomProcessor' less than -source '1.8' | |
w: | |
w: /Users/tejasna/AndroidStudioProjects/Ledger/app/src/main/java/xyz/ledger/data/local/Db.java:10: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument OR set exportSchema to false. | |
w: | |
w: public abstract class Db extends RoomDatabase { | |
w: ^ | |
w: warning: The following options were not recognized by any processor: '[android.databinding.artifactType, android.databinding.printEncodedErrors, android.databinding.minApi, android.databinding.isTestVariant, android.databinding.enableDebugLogs, android.databinding.sdkDir, android.databinding.bindingBuildFolder, android.databinding.enableForTests, android.databinding.modulePackage, kapt.kotlin.generated, android.databinding.generationalFileOutDir, android.databinding.xmlOutDir]' | |
w: | |
e: java.lang.IllegalStateException: failed to analyze: org.jetbrains.kotlin.kapt3.diagnostic.KaptError: Error while annotation processing | |
at org.jetbrains.kotlin.analyzer.AnalysisResult.throwIfError(AnalysisResult.kt:57) | |
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules(KotlinToJVMBytecodeCompiler.kt:138) | |
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:154) | |
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:58) | |
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:103) | |
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:51) | |
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:92) | |
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$1$2.invoke(CompileServiceImpl.kt:386) | |
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$1$2.invoke(CompileServiceImpl.kt:96) | |
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:889) | |
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:96) | |
at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137) | |
at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:916) | |
at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:888) | |
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:385) | |
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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346) | |
at sun.rmi.transport.Transport$1.run(Transport.java:200) | |
at sun.rmi.transport.Transport$1.run(Transport.java:197) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at sun.rmi.transport.Transport.serviceCall(Transport.java:196) | |
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) | |
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) | |
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) | |
at java.lang.Thread.run(Thread.java:745) | |
Caused by: org.jetbrains.kotlin.kapt3.diagnostic.KaptError: Error while annotation processing | |
at org.jetbrains.kotlin.kapt3.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:90) | |
at org.jetbrains.kotlin.kapt3.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:42) | |
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.runAnnotationProcessing(Kapt3Extension.kt:205) | |
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.analysisCompleted(Kapt3Extension.kt:166) | |
at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.analysisCompleted(Kapt3Extension.kt:82) | |
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM$analyzeFilesWithJavaIntegration$2.invoke(TopDownAnalyzerFacadeForJVM.kt:96) | |
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:106) | |
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:83) | |
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:377) | |
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:68) | |
at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:96) | |
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:368) | |
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules(KotlinToJVMBytecodeCompiler.kt:133) | |
... 30 more | |
:app:kaptDebugKotlin FAILED | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Execution failed for task ':app:kaptDebugKotlin'. | |
> Internal compiler error. See log for more details | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. | |
* Get more help at https://help.gradle.org | |
BUILD FAILED in 6s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment