Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app:mergeLibDexDebug #333

Closed
3bdelr7man996 opened this issue Jun 2, 2024 · 1 comment
Closed

app:mergeLibDexDebug #333

3bdelr7man996 opened this issue Jun 2, 2024 · 1 comment

Comments

@3bdelr7man996
Copy link

(record: ^5.1.1)

OS Android

  • What went wrong:
    Execution failed for task ':app:mergeLibDexDebug'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform classes.jar (project :record_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.3.1, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=23, org.gradle.category=library, org.gradle.jvm.environment=android, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=androidJvm}.
> Execution failed for DexingWithClasspathTransform: C:\Users\mohamed\Documents\home_healers\build\record_android\intermediates\runtime_library_classes_jar\debug\classes.jar.
> Error while dexing.

----------------------------------------------------------------------------------------------------------
audio error

flutter doctor -v
[√] Flutter (Channel stable, 3.19.1, on Microsoft Windows [Version 10.0.22631.3593], locale ar-EG)
• Flutter version 3.19.1 on channel stable at D:\ssd data\programs\flutter_3.19.1\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision abb292a07e (3 months ago), 2024-02-20 14:35:05 -0800
• Engine revision 04817c99c9
• Dart version 3.3.0
• DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\mohamed\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.9.5)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
• Visual Studio Build Tools 2022 version 17.9.34723.18
• Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2021.2)
• Android Studio at C:\Program Files\Android\Android Studio2
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] Android Studio (version 2023.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)

[√] VS Code (version 1.89.1)
• VS Code at C:\Users\mohamed\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.90.0

@3bdelr7man996
Copy link
Author

3bdelr7man996 commented Jun 3, 2024

worked after upgrade project gradle to 8.6

in gradle/wrapper/gradle-wrapper.properties change distributionUrl value to
distributionUrl=https://services.gradle.org/distributions/gradle-8.6-all.zip
in android build.gradle update
buildscript {
ext.kotlin_version = '1.9.22'

dependencies {
    classpath 'com.android.tools.build:gradle:8.4.0'
    classpath 'com.google.gms:google-services:4.3.15'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

from the command line: Run the following command in the android directory:
./gradlew clean
./gradlew build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant