With version 6.0.1, my app works perfectly fine, but after upgrading to version 6.1.0, I'm not able to launch the app and I'm seeing the following error(s) in my logs:
e: file:///Users/shubhamsingh/.pub-cache/hosted/pub.dev/nordic_dfu-6.1.0/android/src/main/kotlin/dev/steenbakker/nordicdfu/NordicDfuPlugin.kt:102:18 Unresolved reference: ResourceUtils
e: file:///Users/shubhamsingh/.pub-cache/hosted/pub.dev/nordic_dfu-6.1.0/android/src/main/kotlin/dev/steenbakker/nordicdfu/NordicDfuPlugin.kt:192:48 Unresolved reference: DfuService
ERROR:D8: com.android.tools.r8.kotlin.H
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':nordic_dfu:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeExtDexStagingDebug'.
> Could not resolve all files for configuration ':app:stagingDebugRuntimeClasspath'.
> Failed to transform kotlin-stdlib-1.9.0.jar (org.jetbrains.kotlin:kotlin-stdlib:1.9.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingWithClasspathTransform: /Users/shubhamsingh/.gradle/caches/transforms-3/b6d42f18effa0ab4939cd991444ac54f/transformed/jetified-kotlin-stdlib-1.9.0.jar.
> Error while dexing.
With version
6.0.1
, my app works perfectly fine, but after upgrading to version6.1.0
, I'm not able to launch the app and I'm seeing the following error(s) in my logs:I believe specifically these lines are the cause:
Could you please help with this @juliansteenbakker?