Jacoco: IllegalStateException: Can't add different class with same name - android

I am trying to generate Jacoco XML reports for this Android project. I am using the gradle-android-junit-jacoco-plugin version 0.16.0 (latest as of today).
When I run the jacocoTestReportMerged task it fails with the following error:
Caused by: java.io.IOException: Error while analyzing XmlPullParsers.class.
at org.jacoco.core.analysis.Analyzer.analyzerError(Analyzer.java:170)
at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:142)
at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:165)
at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:201)
at org.jacoco.ant.ReportTask.createBundle(ReportTask.java:570)
at org.jacoco.ant.ReportTask.createReport(ReportTask.java:542)
at org.jacoco.ant.ReportTask.execute(ReportTask.java:495)
... 210 more
Caused by: java.lang.IllegalStateException: Can't add different class with same name:
info/metadude/android/eventfahrplan/network/serialization/XmlPullParsers
at org.jacoco.core.analysis.CoverageBuilder.visitCoverage(CoverageBuilder.java:107)
at org.jacoco.core.analysis.Analyzer$1.visitEnd(Analyzer.java:98)
at org.objectweb.asm.ClassVisitor.visitEnd(ClassVisitor.java:338)
at org.jacoco.core.internal.flow.ClassProbesAdapter.visitEnd(ClassProbesAdapter.java:98)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:683)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)
at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:124)
at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:140)
... 215 more
I started configuring exclude rules such as ...
junitJacoco {
excludes = [
"**/XmlPullParsers.*"
]
}
... but then the task fails at the next file - so this does not seem to be the correct way.
I also tried 0.17.0-SNAPSHOT and version prior to 0.16.0, without success though. Gradle 6.3 is used in this project.
How can I configure the Gradle plugin for my project?

Related

Execution failed for task ':app:kaptDebugKotlin'. Null value provided in parameters

I have this error, when I try to compile my project.
Execution failed for task ':app:kaptDebugKotlin'.
> There was a failure while executing work items
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> Could not create an instance of type org.jetbrains.kotlin.gradle.internal.KaptExecution.
> Null value provided in parameters [KaptOptionsForWorker(projectBaseDir=/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app, compileClasspath=[/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/intermediates/compile_and_runtime_not_namespaced_r_class_jar/overdriveDebug/R.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/577f778e878f5eb06c4a655444e9ee5b/jetified-telmate.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/1f4cf1e79d49f7ad90a29a218634ca3a/databinding-adapters-4.2.2-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/0e2376746a3465ea4f3d2c464cc7334c/databinding-runtime-4.2.2-api.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/androidx.databinding/databinding-common/4.2.2/9cc81874c48238769c25dc40d122d4ed37d570e2/databinding-common-4.2.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/99bbb22992116ab4bd41ca4b5a617d5d/jetified-kotlin-android-extensions-runtime-1.3.21.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/a7aecd107a14f481a25de4582d0a602b/jetified-kotlin-stdlib-jdk7-1.3.61.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/901a4d379b16e00c1ed6deb86a546c79/appcompat-1.1.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/f688e20aa1814f4cef0c272681748b26/jetified-core-ktx-1.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/a981ad730e75c1574a57bbe8edda9cb5/constraintlayout-1.1.3-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/062cab76c8ef1f6a33c9b8c006b0595d/jetified-kotlinx-coroutines-android-1.1.1.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/425afa4f4e4c39e19fce874c454a5ef2/jetified-timber-4.7.1-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/540d1e0e6d9fb829fa63ee235dc53527/jetified-converter-moshi-2.7.1.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/72b1fef61f1b98eb78c243ee3c5d1732/jetified-retrofit2-kotlin-coroutines-adapter-0.9.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/fd5edcb07c435227c51a746195f815db/jetified-retrofit-2.7.1.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/0e4b7ce9cdb5093ce17c54e029a84d00/jetified-moshi-kotlin-1.9.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/ce7fce3380e8219a5ab1ddb386adc191/jetified-moshi-1.9.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/ee4bdc77df2ce3fba54c4af800ef1f82/jetified-logging-interceptor-4.4.0.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/759060d1d0980180d304b88a3e3dce19/lifecycle-extensions-2.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/46cf0e80db56bde8bb84c2851f98af99/jetified-viewbinding-4.2.2-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/a93ad07ad33b80364c3e182c4891a2b1/fragment-1.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/5bdab271bddd092451a04bde591935bb/jetified-appcompat-resources-1.1.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/257bec523ecc09965249ecb8549231a0/drawerlayout-1.0.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/508e993e3d50f9c4eb11eeebeb7acdf9/viewpager-1.0.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/2e248f56d47a4cc29b83d1cbc89189fd/loader-1.0.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/c03b5d2c44837b67dc2c4a3e744e7deb/jetified-activity-1.1.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/1ce7269bd7803aef6969c6a80534aa6d/vectordrawable-animated-1.1.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/114e12240e6b06b1d6300ebdccef43a6/vectordrawable-1.1.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/e6300bce99efe5c93e1e123f6300afd1/customview-1.0.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/22385120ecb1b76e23f439609e62958e/core-1.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/4be18dbd8044346daeb5ead3716fd312/jetified-lifecycle-process-2.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/6a47d38aeb627719ecb5fabd70e7c10d/jetified-lifecycle-service-2.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/212a32460182c9bb7fc3e7493d7051ba/lifecycle-runtime-2.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/a261a24cf076c8f9291a830644216933/versionedparcelable-1.1.0-api.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/androidx.collection/collection/1.1.0/1f27220b47669781457de0d600849a5de0e89909/collection-1.1.0.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/a70664eed8d0d904e972bbafaf0480fc/cursoradapter-1.0.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/e0ee4095d7d30a275216a9b0a79aaa4f/lifecycle-livedata-2.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/491844973607369da3371fad21cdea60/jetified-lifecycle-viewmodel-savedstate-1.0.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/65baeab18521e457e6fd3b14fc90aae2/lifecycle-livedata-core-2.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/d1e7754fa009747392683652d01fdbe8/core-runtime-2.1.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/ba5e7e8b69b9631b358da336391749c4/jetified-savedstate-1.0.0-api.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/androidx.arch.core/core-common/2.1.0/b3152fc64428c9354344bd89848ecddc09b6f07e/core-common-2.1.0.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.2.0/4ef09a745007778eef83b92f8f23987a8ea59496/lifecycle-common-2.2.0.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/b4edf0407c4e4e337f9ac18cd2c4bcb9/lifecycle-viewmodel-2.2.0-api.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/60bc8c4e5626ff516a234e9abd162bae/interpolator-1.0.0-api.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation/1.1.0/e3a6fb2f40e3a3842e6b7472628ba4ce416ea4c8/annotation-1.1.0.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/1494ddb749a0613b1cfe5353a9a864e3/jetified-kotlinx-coroutines-core-1.1.1.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/122358145c6c5f5cf29bba71ccdfac5d/jetified-okhttp-4.4.0.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/bf7c7f5feb1bdfa4a51ec600711a02bf/jetified-okio-jvm-2.4.3.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/279fe3b6c28e75fce9792d58a5ceb68d/jetified-kotlin-reflect-1.3.50.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/638b66c05ac67e83743426e606ba7b24/jetified-kotlin-stdlib-1.3.61.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/03e82d6b38351103eca59bf520d51180/jetified-kotlinx-coroutines-core-common-1.1.1.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/72776d5c2d95139d643f2914777662b3/jetified-kotlin-stdlib-common-1.3.61.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/47e8a7b5dd61b2f91fe6c3c05a4d0817/jetified-annotations-16.0.1.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/androidx.constraintlayout/constraintlayout-solver/1.1.3/54abe9ffb22cc9019b0b6fcc10f185cc4e67b34e/constraintlayout-solver-1.1.3.jar, /Users/nicolas.machado/Library/Android/sdk/platforms/android-29/android.jar, /Users/nicolas.machado/Library/Android/sdk/build-tools/30.0.2/core-lambda-stubs.jar], javaSourceRoots=[/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/generated/source/buildConfig/overdrive/debug, /Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/generated/data_binding_trigger/overdriveDebug, /Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/generated/source/kaptKotlin/overdriveDebug, /Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/tmp/kapt3/stubs/overdriveDebug, /Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/generated/data_binding_base_class_source_out/overdriveDebug/out, /Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/src/main/java], sourcesOutputDir=/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/generated/source/kapt/overdriveDebug, classesOutputDir=/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/tmp/kapt3/classes/overdriveDebug, stubsOutputDir=/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/tmp/kapt3/stubs/overdriveDebug, processingClasspath=[/Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/androidx.databinding/databinding-compiler/4.2.2/cec2ea3966520f89e7728bab98430d3097dbc4d6/databinding-compiler-4.2.2.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/androidx.databinding/databinding-compiler-common/4.2.2/eb4a4be28f072f8277181f69756f94433404d386/databinding-compiler-common-4.2.2.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/androidx.databinding/databinding-common/4.2.2/9cc81874c48238769c25dc40d122d4ed37d570e2/databinding-common-4.2.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/49df1ea60e5552841c8f303a38805124/jetified-kotlin-stdlib-jdk8-1.4.31.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/f4967c44cf91a29320dfe08e0a053b6f/jetified-auto-common-0.10.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/5fd8c583e197cfff50948772e5d4a65d/jetified-commons-io-2.4.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/97d5c70db0c919501a7a51c099ad71e2/jetified-commons-codec-1.10.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/07b044e94abb98b233bcf19f023aa18b/jetified-antlr4-4.5.3.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/70652ad621eb3ee00e7814e5e279f847/jetified-juniversalchardet-1.0.3.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/com.android.databinding/baseLibrary/4.2.2/f4b28ef5d283a9288e794829a2a890746cc5a714/baseLibrary-4.2.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/d534cae71506099d05531b01b1bf312a/jetified-guava-28.1-jre.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/cf50cee83ec2c22596b318d519dd4440/jetified-javapoet-1.10.0.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/com.android.tools.build.jetifier/jetifier-core/1.0.0-beta09/c98ee0e5579aed97e17f605a89b101115a2f5a61/jetifier-core-1.0.0-beta09.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/42aff68a3d6cd6bf88ae5975c53f3445/jetified-gson-2.8.6.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/d843b8bd248b2d82db8d09a3434d4d7e/jetified-jaxb-runtime-2.3.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/b6575188e0028687b792b5e85479b957/jetified-annotations-27.2.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/0671277c3fa333ea04c2f757b89577be/jetified-kotlin-stdlib-jdk7-1.4.31.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/eb7ec373ea4877d11c430ab7549b3430/jetified-kotlin-stdlib-1.4.31.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/dd57f5329056c53033bd14130b8cb48c/jetified-failureaccess-1.0.1.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/9fa6b92b6c663d837f7e4bb4aa1abcf8/jetified-listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/dfcef1f0ef848df42892e5d2d9b20551/jetified-jsr305-3.0.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/656e89b4ad018b300fadd303cfe41ed9/jetified-checker-qual-2.8.1.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/86fea5188159bbc8d122b4212652c9a3/jetified-error_prone_annotations-2.3.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/59b5a67c962816ba109c8627bb0c7f6d/jetified-j2objc-annotations-1.3.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/26fdb5eb30c492727a08e18e1a6ad643/jetified-animal-sniffer-annotations-1.18.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/ce77258e5cbfee476423ee9ad70f9394/jetified-stax-ex-1.8.1.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/ab18bd78b7deb6358ae9b54ea8219cae/jetified-jakarta.xml.bind-api-2.3.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/604e978716376b72bdf1d534e5466648/jetified-txw2-2.3.2.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/0605654c358ab6ac3af830562b0750d1/jetified-istack-commons-runtime-3.0.8.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/842fa97326d4307fbdf7e95684db5633/jetified-FastInfoset-1.2.16.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/cad6a9bf2fc98452c9b989b66de58a89/jetified-jakarta.activation-api-1.2.1.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/d495e9feb962cc5182906481f48aa471/jetified-kotlin-stdlib-common-1.4.31.jar, /Users/nicolas.machado/.gradle/caches/transforms-2/files-2.1/8aec37d3d61d7667d72c1f1d48873458/jetified-annotations-13.0.jar], processors=[], processingOptions={kapt.kotlin.generated=/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/generated/source/kaptKotlin/overdriveDebug, android.databinding.minApi=21=, android.databinding.classLogDir=/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/intermediates/data_binding_base_class_log_artifact/overdriveDebug/out=, android.databinding.aarOutDir=/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/intermediates/data_binding_artifact/overdriveDebug/kaptOverdriveDebugKotlin=, android.databinding.enableDebugLogs=0=, android.databinding.dependencyArtifactsDir=/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/intermediates/data_binding_dependency_artifacts/overdriveDebug=, android.databinding.sdkDir=/Users/nicolas.machado/Library/Android/sdk=, android.databinding.enableForTests=0=, android.databinding.enableV2=1=, android.databinding.modulePackage=net.gtl.gtlodrive=, android.databinding.artifactType=APPLICATION=, android.databinding.isTestVariant=0=, android.databinding.incremental=1=, android.databinding.printEncodedErrorLogs=1=, android.databinding.layoutInfoDir=/Users/nicolas.machado/development/gtl/aosp-apps/gtl-overdrive/app/build/intermediates/data_binding_layout_info_type_merge/overdriveDebug/out=}, javacOptions={}, flags=[INCLUDE_COMPILE_CLASSPATH]), null, [/Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-annotation-processing-gradle/1.3.21/225aacd70ddfe71c72796bb317b3f12254c1ff3a/kotlin-annotation-processing-gradle-1.3.21.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.3.21/677cc9553b8964c895abc76da9b6a0faea8f671d/kotlin-compiler-embeddable-1.3.21.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.3.21/d0d5ff2ac2ebd8a42697af41e20fc225a23c5d3b/kotlin-reflect-1.3.21.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.21/4bcc2012b84840e19e1e28074284cac908be0295/kotlin-stdlib-1.3.21.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.21/f30e4a9897913e53d778f564110bafa1fef46643/kotlin-stdlib-common-1.3.21.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-script-runtime/1.3.21/29363d474ee6fda354900636320a177c7286def9/kotlin-script-runtime-1.3.21.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/org.jetbrains.intellij.deps/trove4j/1.0.20181211/216c2e14b070f334479d800987affe4054cd563f/trove4j-1.0.20181211.jar, /Users/nicolas.machado/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.31/a58e0fb9812a6a93ca24b5da75e4b5a0cb89c957/kotlin-stdlib-1.4.31.jar]]
This is the famous error when you have some discrepancies between libraries in gradle , I think.
I think that the key is here:
Null value provided in parameters
This project was written 2 years ago, and I don't know what ide version was used.
But, for example, it uses DataBinding, and this was the original gradle config:
dataBinding {
enabled = true
}
And I changed to:
buildFeatures {
dataBinding true
}
But of course, the problem persists.
I upgraded Gradle Plugin from 4.1.3 -> 4.2.2
and Gradle Version from 6.5 -> 6.7.1
But I'm still getting the error.
How d I know what kapt android plugin is using?
What is the origin of the error ?
Note: I edited some lines here because the project has flavors. And I don't want to confuse you.
Best regards

How to resolve this error: Caused by: java.lang.IllegalArgumentException: com.example.MyClassName does not represent a declared type?

I am getting this error while building my Kotlin/Android application?
Caused by: java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor812.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:90)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:31)
at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:45)
... 30 more
Caused by: com.sun.tools.javac.processing.AnnotationProcessingError: java.lang.IllegalArgumentException: com.example.MyClassName does not represent a declared type
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:992)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:896)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1222)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1335)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1258)
... 35 more
Caused by: java.lang.IllegalArgumentException: com.example.MyClassName does not represent a declared type
at dagger.shaded.auto.common.MoreTypes$CastingTypeVisitor.defaultAction(MoreTypes.java:948)
at dagger.shaded.auto.common.MoreTypes$CastingTypeVisitor.defaultAction(MoreTypes.java:939)
at jdk.compiler/com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:2394)
at dagger.shaded.auto.common.MoreTypes.asDeclared(MoreTypes.java:579)
at dagger.internal.codegen.base.Keys$1.visitDeclared(Keys.java:89)
at dagger.internal.codegen.base.Keys$1.visitDeclared(Keys.java:66)
at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.accept(Type.java:1151)
at dagger.internal.codegen.base.Keys.isValidImplicitProvisionKey(Keys.java:65)
at dagger.internal.codegen.base.Keys.isValidImplicitProvisionKey(Keys.java:50)
I am using dagger2 for dependency injection, in my application, the application uses a module that has a dependency on another module. What should be the correct way to resolve this dependency?
You'll need an implementation dependency on the module you're consuming, but the recent build flag enableAggregatingTask will do so automatically.
Per google/dagger#2123, bcorso responding to Kshitij09 in November 2020:
You mean I either app should have direct dependency (adding implementation) on :libraryB or :libraryA have api dependency on :libraryB right?
Hi #Kshitij09, yes that's the current solution and we're looking into ways to improve this (see #1991 (comment))
In that same thread, bcorso updates in September 2021:
If you're using Hilt (with Gradle) the solution is to use the Hilt Gradle plugin and then enable the aggregating task in your build.gradle modules:
hilt {
enableAggregatingTask = true
}
The enableAggregatingTask build configuration was introduced in Dagger 2.37 in June 2021 and enabled by default in Dagger 2.40 in October 2021.

Running google cloud speech api on Android 4.2

I have a problem running io.grpc:grpc-okhttp on Android 4.2 devices.
I have implemented SpeechClient with Credentials, for running Google cloud speech to text.
On Android 7.1 device I don't have a problem. The problems happen on Android 4.2
So in my starting gradle I had
implementation 'io.grpc:grpc-okhttp:1.35.0'
implementation 'io.grpc:grpc-android:1.35.0'
implementation 'com.google.cloud:google-cloud-speech:1.24.0'
Problems.
First problem was with TLS security for SSL (which is too old on Android 4.2). For this, I added dependency
implementation 'org.conscrypt:conscrypt-android:2.5.1'
and implemented in my DialogFragment (which is running the code)
Security.insertProviderAt(Conscrypt.newProvider(), 1)
After I implemented this, I am getting
Duplicate class org.conscrypt.AbstractConscryptEngine found in modules jetified-conscrypt-android-2.5.1-runtime (org.conscrypt:conscrypt-android:2.5.1) and jetified-conscrypt-openjdk-uber-2.2.1 (org.conscrypt:conscrypt-openjdk-uber:2.2.1)
issues (alot of duplicated classes)
So for fixing this, I added
configurations {
all {
exclude group: "org.conscrypt", module: "conscrypt-openjdk-uber"
}
}
Now I get this error, because com.google.api.client is using Standard.UTF-8 and my device is on Android 17.
com.google.api.gax.rpc.UnauthenticatedException: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Failed computing credential metadata
at com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:73)
at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72)
at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60)
at com.google.api.gax.grpc.ExceptionResponseObserver.onErrorImpl(ExceptionResponseObserver.java:82)
at com.google.api.gax.rpc.StateCheckingResponseObserver.onError(StateCheckingResponseObserver.java:86)
at com.google.api.gax.grpc.GrpcDirectStreamController$ResponseObserverAdapter.onClose(GrpcDirectStreamController.java:149)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:426)
at io.grpc.internal.ClientCallImpl.access$500(ClientCallImpl.java:66)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:689)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$900(ClientCallImpl.java:577)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:751)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:740)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)
Caused by: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Failed computing credential metadata
at io.grpc.Status.asRuntimeException(Status.java:533)
at com.google.api.gax.grpc.GrpcDirectStreamController$ResponseObserverAdapter.onClose(GrpcDirectStreamController.java:149) 
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:426) 
at io.grpc.internal.ClientCallImpl.access$500(ClientCallImpl.java:66) 
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:689) 
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$900(ClientCallImpl.java:577) 
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:751) 
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:740) 
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) 
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390) 
at java.util.concurrent.FutureTask.run(FutureTask.java:234) 
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153) 
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 
at java.lang.Thread.run(Thread.java:856) 
Caused by: java.lang.NoClassDefFoundError: java.nio.charset.StandardCharsets
at com.google.api.client.util.StringUtils.getBytesUtf8(StringUtils.java:51)
at com.google.api.client.json.webtoken.JsonWebSignature.signUsingRsaSha256(JsonWebSignature.java:571)
at com.google.auth.oauth2.JwtCredentials.refresh(JwtCredentials.java:125)
at com.google.auth.oauth2.JwtCredentials.getRequestMetadata(JwtCredentials.java:163)
at com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.getRequestMetadata(ServiceAccountJwtAccessCredentials.java:365)
at com.google.auth.Credentials.blockingGetToCallback(Credentials.java:112)
at com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.getRequestMetadata(ServiceAccountJwtAccessCredentials.java:341)
at io.grpc.auth.GoogleAuthLibraryCallCredentials.applyRequestMetadata(GoogleAuthLibraryCallCredentials.java:110)
at io.grpc.CallCredentials2.applyRequestMetadata(CallCredentials2.java:58)
at io.grpc.internal.CallCredentialsApplyingTransportFactory$CallCredentialsApplyingTransport.newStream(CallCredentialsApplyingTransportFactory.java:108)
at io.grpc.internal.ForwardingConnectionClientTransport.newStream(ForwardingConnectionClientTransport.java:49)
at io.grpc.internal.InternalSubchannel$CallTracingTransport.newStream(InternalSubchannel.java:671)
at io.grpc.internal.DelayedClientTransport$PendingStream.createRealStream(DelayedClientTransport.java:353)
at io.grpc.internal.DelayedClientTransport$PendingStream.access$300(DelayedClientTransport.java:341)
Question:
How to resolve this issue and run Speech with "ApiStreamObserver?
I tried reverting back "io.grpc:grpc-" libraries to version 1.0 or something, but then I have other problems...
I have resolved this issue and commited example project on Github
https://github.com/DjToMeK27/CloudGoogleSpeechToText/tree/main
What I did in this project
Downloaded https://github.com/GoogleCloudPlatform/android-docs-samples/blob/master/README.md
Changed classes in project SpeechRecognitionClient in android-docs-samples-master\speech
Changed AudioRecord in AudoEmitter.kt to support API 16
Imported org.conscrypt:conscrypt-android:2.5.1 library
Had to exclude group org.conscrypt from google-cloud-speech (in build.gradle)
Added init { Security.insertProviderAt(Conscrypt.newProvider(), 1) } For Android 4.1 to run proper TLS for GRC to work
I downloaded https://github.com/googleapis project
Changed all StandardCharsets found in google-http-client to Charset.forName())
And also changed some tests to work
https://imgur.com/a/iU7yjCZ (files changes)
I have build this project and added .jar files, which I included here
And now it works!

Nosuchmethod:org.jetbrains.kotlin.resolve.diagnostics.DiagnosticSuppressor$Companion.getEP_NAME() from kotlin-compiler-embeddable.jar

I wrote a custom lint plugin,when run the custom lint task,i found class DiagnosticSuppressor$Companion is from kotlin-compiler-embeddable-1.2.60.jar,then it will report NoSuchMethodError,but gradle plugin lint task class DiagnosticSuppressor$Companion is from kotlin-compiler-1.2.60.jar.
Caused by: java.lang.NoSuchMethodError: org.jetbrains.kotlin.resolve.diagnostics.DiagnosticSuppressor$Companion.getEP_NAME()Lcom/intellij/openapi/extensions/ExtensionPointName;
at com.android.tools.lint.LintCoreApplicationEnvironment.registerAppExtensionPoints(LintCoreApplicationEnvironment.java:145)
at com.android.tools.lint.LintCoreApplicationEnvironment.createApplicationEnvironment(LintCoreApplicationEnvironment.java:94)
at com.android.tools.lint.LintCoreApplicationEnvironment.get(LintCoreApplicationEnvironment.java:71)
at com.android.tools.lint.LintCliClient.initializeProjects(LintCliClient.java:971)
at com.android.tools.lint.client.api.LintClient.performInitializeProjects$lint_api(LintClient.kt:774)
at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.kt:306)
at com.android.tools.lint.LintCliClient.run(LintCliClient.java:179)
at com.android.tools.lint.gradle.LintGradleClient.run(LintGradleClient.java:254)
at com.skateboard.hecatoncheires.checktools.IncrementLintGradleExecution.runLint(IncrementLintGradleExecution.java:250)
at com.skateboard.hecatoncheires.checktools.IncrementLintGradleExecution.lintAllVariants(IncrementLintGradleExecution.java:391)
at com.skateboard.hecatoncheires.checktools.IncrementLintGradleExecution.analyze(IncrementLintGradleExecution.java:85)
... 59 more

Android studio Kotlin plugin crashes constantly

I constantly get exceptions while opening and editing files in my Android Studio project from the Kotlin plugin. There is a notification saying
IDE Error Occured
and when I click on it it takes me to the "IDE fatal errors" reporting tool where it says:
Exception in Studio core
The error message is the following:
Kotlin resolution encountered a problem while analyzing KtCallExpression
org.jetbrains.kotlin.idea.caches.resolve.KotlinIdeaResolutionException: Kotlin resolution encountered a problem while analyzing KtCallExpression
at org.jetbrains.kotlin.idea.caches.resolve.ResolutionFacadeWithDebugInfo.analyze(ResolutionFacadeWithDebugInfo.kt:37)
at org.jetbrains.kotlin.idea.caches.resolve.ResolutionUtils.analyze(resolutionApi.kt:112)
at org.jetbrains.kotlin.idea.parameterInfo.ArgumentNameHintsKt.provideArgumentNameHints(ArgumentNameHints.kt:26)
at org.jetbrains.kotlin.idea.parameterInfo.HintType$PARAMETER_HINT.provideHints(KotlinInlayParameterHintsProvider.kt:78)
at org.jetbrains.kotlin.idea.parameterInfo.KotlinInlayParameterHintsProvider.getParameterHints(KotlinInlayParameterHintsProvider.kt:161)
at com.intellij.codeInsight.hints.ParameterHintsPass.process(ParameterHintsPass.java:84)
at com.intellij.codeInsight.hints.ParameterHintsPass.lambda$doCollectInformation$0(ParameterHintsPass.java:76)
at java.lang.Iterable.forEach(Iterable.java:75)
at com.intellij.codeInsight.hints.ParameterHintsPass.doCollectInformation(ParameterHintsPass.java:76)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:437)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1137)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:430)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:429)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:405)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:143)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:218)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:403)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:170)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.AssertionError: Recursion detected on input: onCreate under LockBasedStorageManager#42a2e9fb (<unknown creating class>)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.getContributedFunctions(AbstractLazyMemberScope.kt:90)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.getContributedFunctions(LazyClassMemberScope.kt:188)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.computeDescriptorsFromDeclaredElements(AbstractLazyMemberScope.kt:195)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope$descriptorsFromDeclaredElements$1.invoke(LazyClassMemberScope.kt:54)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope$descriptorsFromDeclaredElements$1.invoke(LazyClassMemberScope.kt:46)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedLazyValue.invoke(LockBasedStorageManager.java:354)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedNotNullLazyValue.invoke(LockBasedStorageManager.java:410)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.getContributedDescriptors(LazyClassMemberScope.kt:68)
at org.jetbrains.kotlin.resolve.DescriptorUtils.getAllDescriptors(DescriptorUtils.java:593)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.resolveMemberHeaders(LazyClassDescriptor.java:573)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.doForceResolveAllContents(LazyClassDescriptor.java:543)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.lambda$new$4(LazyClassDescriptor.java:221)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedLazyValue.invoke(LockBasedStorageManager.java:354)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.forceResolveAllContents(LazyClassDescriptor.java:539)
at org.jetbrains.kotlin.resolve.lazy.ForceResolveUtil.doForceResolveAllContents(ForceResolveUtil.java:75)
at org.jetbrains.kotlin.resolve.lazy.ForceResolveUtil.forceResolveAllContents(ForceResolveUtil.java:41)
at org.jetbrains.kotlin.idea.caches.lightClasses.IDELightClassContexts.contextForNonLocalClassOrObject(IDELightClassContexts.kt:105)
at org.jetbrains.kotlin.idea.caches.resolve.IDELightClassGenerationSupport$createDataHolderForClass$3.invoke(IDELightClassGenerationSupport.kt:49)
at org.jetbrains.kotlin.idea.caches.resolve.IDELightClassGenerationSupport$createDataHolderForClass$3.invoke(IDELightClassGenerationSupport.kt:35)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder$exactResultLazyValue$1.invoke(LazyLightClassDataHolder.kt:46)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder$exactResultLazyValue$1.invoke(LazyLightClassDataHolder.kt:32)
at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:107)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder.getJavaFileStub(LazyLightClassDataHolder.kt)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder$LazyLightClassData$clsDelegate$2.invoke(LazyLightClassDataHolder.kt:103)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder$LazyLightClassData$clsDelegate$2.invoke(LazyLightClassDataHolder.kt:100)
at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:107)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder$LazyLightClassData.getClsDelegate(LazyLightClassDataHolder.kt)
at org.jetbrains.kotlin.asJava.classes.KtLazyLightClass$clsDelegate$2.invoke(KtLazyLightClass.kt:26)
at org.jetbrains.kotlin.asJava.classes.KtLazyLightClass$clsDelegate$2.invoke(KtLazyLightClass.kt:23)
at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:107)
at org.jetbrains.kotlin.asJava.classes.KtLazyLightClass.getClsDelegate(KtLazyLightClass.kt)
at org.jetbrains.kotlin.asJava.classes.KtLightClassForSourceDeclaration.getSuperTypes(KtLightClassForSourceDeclaration.kt:427)
at com.intellij.psi.impl.ScopedClassHierarchy.calcImmediateSupersWithCapturing(ScopedClassHierarchy.java:163)
at com.intellij.psi.impl.ScopedClassHierarchy.lambda$getImmediateSupersWithCapturing$2(ScopedClassHierarchy.java:148)
at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.psi.impl.ScopedClassHierarchy.getImmediateSupersWithCapturing(ScopedClassHierarchy.java:148)
at com.intellij.psi.impl.PsiClassImplUtil.getScopeCorrectedSuperTypes(PsiClassImplUtil.java:740)
at com.intellij.psi.impl.PsiClassImplUtil.processSuperTypes(PsiClassImplUtil.java:750)
at com.intellij.psi.impl.PsiClassImplUtil.processDeclarationsInClassNotCached(PsiClassImplUtil.java:724)
at com.intellij.psi.impl.PsiClassImplUtil.processDeclarationsInClass(PsiClassImplUtil.java:479)
at com.intellij.psi.impl.PsiClassImplUtil.lambda$processDeclarationsInClassNotCached$2(PsiClassImplUtil.java:725)
at com.intellij.psi.impl.PsiClassImplUtil.processSuperTypes(PsiClassImplUtil.java:755)
at com.intellij.psi.impl.PsiClassImplUtil.processDeclarationsInClassNotCached(PsiClassImplUtil.java:724)
at com.intellij.psi.impl.PsiClassImplUtil.lambda$createMembersMap$1(PsiClassImplUtil.java:406)
at com.intellij.util.containers.ConcurrentFactoryMap$4.create(ConcurrentFactoryMap.java:224)
at com.intellij.util.containers.ConcurrentFactoryMap.get(ConcurrentFactoryMap.java:63)
at com.intellij.psi.impl.PsiClassImplUtil$MembersMap.get(PsiClassImplUtil.java:359)
at com.intellij.psi.impl.PsiClassImplUtil$MembersMap.access$000(PsiClassImplUtil.java:351)
at com.intellij.psi.impl.PsiClassImplUtil.processCachedMembersByName(PsiClassImplUtil.java:558)
at com.intellij.psi.impl.PsiClassImplUtil.processDeclarationsInClass(PsiClassImplUtil.java:476)
at com.intellij.psi.impl.PsiClassImplUtil.processDeclarationsInClass(PsiClassImplUtil.java:453)
at com.intellij.psi.impl.source.PsiClassImpl.processDeclarations(PsiClassImpl.java:488)
at com.intellij.psi.impl.source.PsiImportStaticReferenceElementImpl$OurGenericsResolver.resolve(PsiImportStaticReferenceElementImpl.java:238)
at com.intellij.psi.impl.source.PsiImportStaticReferenceElementImpl$OurGenericsResolver.resolve(PsiImportStaticReferenceElementImpl.java:227)
at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$resolve$0(ResolveCache.java:152)
at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:151)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:182)
at com.intellij.psi.impl.source.PsiImportStaticReferenceElementImpl.multiResolve(PsiImportStaticReferenceElementImpl.java:223)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.processDeclarationsNoGuess(PsiJavaFileBaseImpl.java:377)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.processDeclarations(PsiJavaFileBaseImpl.java:312)
at com.intellij.psi.scope.util.PsiScopesUtil.treeWalkUp(PsiScopesUtil.java:69)
at com.intellij.psi.scope.util.PsiScopesUtil.treeWalkUp(PsiScopesUtil.java:51)
at com.intellij.psi.scope.util.PsiScopesUtil.resolveAndWalk(PsiScopesUtil.java:218)
at com.intellij.psi.scope.util.PsiScopesUtil.resolveAndWalk(PsiScopesUtil.java:149)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.resolve(PsiJavaCodeReferenceElementImpl.java:492)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.access$100(PsiJavaCodeReferenceElementImpl.java:47)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:373)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:365)
at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$resolveWithCaching$1(ResolveCache.java:205)
at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:204)
at com.intellij.psi.impl.PsiImplUtil.multiResolveImpl(PsiImplUtil.java:724)
at com.intellij.psi.impl.PsiImplUtil.multiResolveImpl(PsiImplUtil.java:715)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.multiResolve(PsiJavaCodeReferenceElementImpl.java:424)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.advancedResolve(PsiJavaCodeReferenceElementImpl.java:417)
at com.intellij.psi.impl.source.PsiClassReferenceType.resolveGenerics(PsiClassReferenceType.java:191)
at org.jetbrains.kotlin.load.java.structure.impl.JavaClassifierTypeImpl.resolve(JavaClassifierTypeImpl.java:63)
at org.jetbrains.kotlin.load.java.structure.impl.JavaClassifierTypeImpl.isRaw(JavaClassifierTypeImpl.java:86)
at org.jetbrains.kotlin.load.java.lazy.types.JavaTypeResolver.transformJavaClassifierType(JavaTypeResolver.kt:88)
at org.jetbrains.kotlin.load.java.lazy.types.JavaTypeResolver.transformJavaType(JavaTypeResolver.kt:52)
at org.jetbrains.kotlin.load.java.lazy.descriptors.LazyJavaScope.resolveValueParameters(LazyJavaScope.kt:189)
at org.jetbrains.kotlin.load.java.lazy.descriptors.LazyJavaScope.resolveMethodToFunctionDescriptor(LazyJavaScope.kt:126)
at org.jetbrains.kotlin.load.java.lazy.descriptors.LazyJavaScope$functions$1.invoke(LazyJavaScope.kt:85)
at org.jetbrains.kotlin.load.java.lazy.descriptors.LazyJavaScope$functions$1.invoke(LazyJavaScope.kt:55)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunction.invoke(LockBasedStorageManager.java:448)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunctionToNotNull.invoke(LockBasedStorageManager.java:523)
at org.jetbrains.kotlin.load.java.lazy.descriptors.LazyJavaScope.getContributedFunctions(LazyJavaScope.kt:242)
at org.jetbrains.kotlin.load.java.lazy.descriptors.LazyJavaClassMemberScope.getContributedFunctions(LazyJavaClassMemberScope.kt:725)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.getNonDeclaredFunctions(LazyClassMemberScope.kt:203)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.doGetFunctions(AbstractLazyMemberScope.kt:109)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.access$doGetFunctions(AbstractLazyMemberScope.kt:38)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope$functionDescriptors$1.invoke(AbstractLazyMemberScope.kt:50)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope$functionDescriptors$1.invoke(AbstractLazyMemberScope.kt:38)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunction.invoke(LockBasedStorageManager.java:448)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunctionToNotNull.invoke(LockBasedStorageManager.java:523)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.getContributedFunctions(AbstractLazyMemberScope.kt:90)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.getContributedFunctions(LazyClassMemberScope.kt:188)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.getNonDeclaredFunctions(LazyClassMemberScope.kt:203)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.doGetFunctions(AbstractLazyMemberScope.kt:109)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.access$doGetFunctions(AbstractLazyMemberScope.kt:38)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope$functionDescriptors$1.invoke(AbstractLazyMemberScope.kt:50)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope$functionDescriptors$1.invoke(AbstractLazyMemberScope.kt:38)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunction.invoke(LockBasedStorageManager.java:448)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunctionToNotNull.invoke(LockBasedStorageManager.java:523)
at org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.getContributedFunctions(AbstractLazyMemberScope.kt:90)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.getContributedFunctions(LazyClassMemberScope.kt:188)
at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver$resolveToDescriptor$1.visitNamedFunction(LazyDeclarationResolver.kt:125)
at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver$resolveToDescriptor$1.visitNamedFunction(LazyDeclarationResolver.kt:94)
at org.jetbrains.kotlin.psi.KtNamedFunction.accept(KtNamedFunction.java:49)
at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver.resolveToDescriptor(LazyDeclarationResolver.kt:94)
at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver.resolveToDescriptor(LazyDeclarationResolver.kt:91)
at org.jetbrains.kotlin.resolve.lazy.ResolveSession.resolveToDescriptor(ResolveSession.java:330)
at org.jetbrains.kotlin.idea.project.ResolveElementCache.functionAdditionalResolve(ResolveElementCache.kt:589)
at org.jetbrains.kotlin.idea.project.ResolveElementCache.performElementAdditionalResolve(ResolveElementCache.kt:317)
at org.jetbrains.kotlin.idea.project.ResolveElementCache.getElementsAdditionalResolve(ResolveElementCache.kt:178)
at org.jetbrains.kotlin.idea.project.ResolveElementCache.resolveToElements(ResolveElementCache.kt:222)
at org.jetbrains.kotlin.idea.caches.resolve.ModuleResolutionFacadeImpl.analyze(ModuleResolutionFacadeImpl.kt:59)
at org.jetbrains.kotlin.idea.caches.resolve.ModuleResolutionFacadeImpl.analyze(ModuleResolutionFacadeImpl.kt:53)
at org.jetbrains.kotlin.idea.caches.resolve.ResolutionFacadeWithDebugInfo.analyze(ResolutionFacadeWithDebugInfo.kt:38)
... 25 more
What could be the reason for this?
File -> Invalidate Caches did the trick for me

Categories

Resources