添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
帅气的钥匙扣  ·  Python on Azure | ...·  3 周前    · 
发呆的煎鸡蛋  ·  Making a Progressive ...·  3 周前    · 
正直的洋葱  ·  node-gyp fails build ...·  3 周前    · 
胡子拉碴的小刀  ·  maven ...·  3 周前    · 
谦逊的书包  ·  Using external ...·  2 周前    · 
慈祥的消炎药  ·  gnuplot ...·  8 月前    · 
失落的企鹅  ·  守素求索 ...·  10 月前    · 

Build failed when updating to latest version #729

@mhd-ghaith-abtah

Description

when I updated to latest version "mobile_scanner 3.4.1" I got this error when trying to run my project:
ERROR:D8: com.android.tools.r8.kotlin.H

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeExtDexDebug'.
  • Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
    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/ghaithabtah/.gradle/caches/transforms-3/a0583c7606e960d1c6435c51b205f3f3/transformed/jetified-kotlin-stdlib-1.9.0.jar.
    > Error while dexing.

    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.

  • Get more help at https://help.gradle.org
  • BUILD FAILED in 27s

    ┌─ Flutter Fix ──────────────────────────────────────────────────────────────┐
    │ [!] The shrinker may have failed to optimize the Java bytecode. │
    │ To disable the shrinker, pass the --no-shrink flag to this command. │
    │ To learn more, see: https://developer.android.com/studio/build/shrink-code
    └────────────────────────────────────────────────────────────────────────────┘
    Exception: Gradle task assembleDebug failed with exit code 1

    I have seen your build.gradle file and you are using ext.kotlin_version = '1.9.0' which is not widely supported yet.
    could please downgrade to 1.8.0 at least

    this is my build.gradle file:
    buildscript {
    ext.kotlin_version = '1.8.0'
    repositories {
    google()
    mavenCentral()

    dependencies {
        classpath 'com.android.tools.build:gradle:7.4.2'
        // START: FlutterFire Configuration
        classpath 'com.google.gms:google-services:4.3.15'
        // END: FlutterFire Configuration
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    

    }