Error:Execution failed for task: Unable to merge dex - android

I got this error out of nowhere
Error:Execution failed for task
':app:transformDexArchiveWithExternalLibsDexMergerForDev'.
com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
I already tried adding
multiDexEnabled: true
to my default Config, and other combinations of suggested changes related to this problem
like implementing
implementation 'com.android.support:multidex:1.0.3'
implementation 'android.arch.lifecycle:extensions:1.1.0'
also I've cleaned and built a lot
I am also getting this on my logcat:
03-12 10:30:06.685 2425-4917/? E/LocSvc_libulp: E/int
ulp_brain_transition_all_providers(), no QUIPC/GNSS transition logic
run due to both engines are OFF 03-12 10:30:06.687 2425-4047/?
E/QMI_FW: QCCI qmi_cci_xport_recv: txn not found. svc_id: 16 03-12
10:30:06.687 2425-3969/? E/LocSvc_LBSApiV02: E/virtual int
lbs_core::LBSApiV02::injectCoarsePosition(const CoarsePositionInfo
&):353]: Error : st = 3, ind.status = 0 03-12 10:30:09.281 808-808/?
E/cnss-daemon: Stale or unreachable neighbors, ndm state: 32
Let me know how I can improve this question, Thanks

Basically I had a duplicade Implementation on my gradle file, so removing one of those solved the issue.

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

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

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?

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

App crashes when trying to connect to Neura service [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I use Neura services for my app. After installing the service,
the app crashed when I got to the screen of the authentication.Sometimes those crashes happened when I was just opening the application.
Here is the exception message:
java.lang.UnsatisfiedLinkError: No implementation found for boolean com.intel.aware.csp.jni.AwareNative.isAvailable(int) (tried Java_com_intel_aware_csp_jni_AwareNative_isAvailable and Java_com_intel_aware_csp_jni_AwareNative_isAvailable__I)
at com.intel.aware.csp.jni.AwareNative.isAvailable(Native Method)
at com.intel.aware.csp.datalooper.DataNodeAwareNative.available(SourceFile:70)
at com.intel.aware.csp.datalooper.DataLooper.a(SourceFile:89)
at com.intel.aware.csp.datalooper.StepCounterDataLooper.a(SourceFile:57)
at com.intel.aware.csp.datalooper.DataLooper.start(SourceFile:335)
at com.intel.context.provider.c.o.a.start(SourceFile:61)
at com.intel.context.provider.c.a(SourceFile:48)
at com.intel.context.provider.d.a(SourceFile:303)
at com.intel.context.core.LocalService.enableProvider(SourceFile:92)
at com.intel.context.Sensing.enableSensing(SourceFile:206)
at com.neura.android.service.IntelSensingService.startSensingContextType(IntelSensingService.java:350)
at com.neura.android.service.IntelSensingService.startSensingPedometer(IntelSensingService.java:331)
at com.neura.android.service.IntelSensingService.handleStartCommandWithSensingServiceReady(IntelSensingService.java:515)
at com.neura.android.service.IntelSensingService.access$300(IntelSensingService.java:52)
at com.neura.android.service.IntelSensingService$5.run(IntelSensingService.java:478)
at java.lang.Thread.run(Thread.java:818)
And the error from logcat:
06-01 14:16:52.605 25852-25958/com.bitbite E/art: No implementation found for int[] com.intel.aware.csp.jni.AwareNativeHelper.poll(int[]) (tried Java_com_intel_aware_csp_jni_AwareNativeHelper_poll and Java_com_intel_aware_csp_jni_AwareNativeHelper_poll___3I)
06-01 14:16:52.605 25852-25958/com.bitbite E/AndroidRuntime: FATAL EXCEPTION: poller
Process: com.bitbite, PID: 25852
java.lang.UnsatisfiedLinkError: No implementation found for int[] com.intel.aware.csp.jni.AwareNativeHelper.poll(int[]) (tried Java_com_intel_aware_csp_jni_AwareNativeHelper_poll and Java_com_intel_aware_csp_jni_AwareNativeHelper_poll___3I)
at com.intel.aware.csp.jni.AwareNativeHelper.poll(Native Method)
at com.intel.aware.csp.datalooper.DataPoller$1.run(SourceFile:84)
06-01 14:16:52.606 25852-25956/com.bitbite E/art: No implementation found for boolean com.intel.aware.csp.jni.AwareNative.isAvailable(int) (tried Java_com_intel_aware_csp_jni_AwareNative_isAvailable and Java_com_intel_aware_csp_jni_AwareNative_isAvailable__I)
06-01 14:16:52.607 25852-25956/com.bitbite I/Process: Sending signal. PID: 25852 SIG: 9
There are few things you can do :
Clean and rebuild your project
Contact intel support for this issue (even though you're using library that uses intel sdk and it's not actual your issue.
intel idk forum
Check your main gradle definitions - intel sdk can only work with gradle 1.3.1 and below, known error.
your classpath should be :
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
}

Error Building Android App

I am getting a weird error when I am trying to build a app. I don't think it's related to my code and need some help in resolving it. When I press run, the logcat giving me this error:
Could not upload stats checkin to cyanogen server
javax.net.ssl.SSLHandshakeException: Connection closed by peer
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:318)
at com.android.okhttp.Connection.upgradeToTls(Connection.java:201)
at com.android.okhttp.Connection.connect(Connection.java:155)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:217)
at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
at com.android.settings.cmstats.StatsUploadJobService.uploadToCyanogen(StatsUploadJobService.java:223)
at com.android.settings.cmstats.StatsUploadJobService.access$000(StatsUploadJobService.java:43)
at com.android.settings.cmstats.StatsUploadJobService$StatsUploadTask.doInBackground(StatsUploadJobService.java:121)
at com.android.settings.cmstats.StatsUploadJobService$StatsUploadTask.doInBackground(StatsUploadJobService.java:93)
at android.os.AsyncTask$2.call(AsyncTask.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
The gradle console then says:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:484)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:261)
at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:473)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:161)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
I am wondering if it to do with my phone's hardware or the cyanogenmod software running on it which causes the error.
Thank you for the help.
You hit the DEX 64k method limit.
There are few solutions which will help you to resolve this problem:
remove unused gradle dependencies
replace libaries with huge amount of methods with smaller ones, e.g.:
compile 'com.google.android.gms:play-services-analytics:8.4.0'
->
compile 'com.google.android.gms:play-services-base:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'com.google.android.gms:play-services-maps:8.4.0'
...
remove unused code by configuring the ProGuard
enable Multidex:
build.gradle
android {
...
defaultConfig {
...
// Enabling multidex support.
multiDexEnabled true
}
...
}
dependencies {
compile 'com.android.support:multidex:1.0.0'
}
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.multidex.myapplication">
<application
...
android:name="android.support.multidex.MultiDexApplication">
...
</application>
</manifest>
Reference:
Building Apps with Over 65K Methods.
This line com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 states that you are over the 64k method limit the Compiler has for every .dex file. Read up on it. Solutions include using Multidex or more solutions here https://www.contentful.com/blog/2014/10/30/android-and-the-dex-64k-methods-limit/. This maybe a duplicate of other issues. Look at
How to solve the issue with Dalvik compiler limitation on 64K methods?

Categories

Resources