Skip to content

A problem occurred configuring project ':record_android'. #570

@amirrezamajd

Description

@amirrezamajd
Launching lib\main.dart on SM A520F in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':record_android'.
> Could not resolve all artifacts for configuration 'classpath'.
   > Could not find gradle-8.12.3.jar (com.android.tools.build:gradle:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.12.3/gradle-8.12.3.jar
   > Could not find builder-8.12.3.jar (com.android.tools.build:builder:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/8.12.3/builder-8.12.3.jar
   > Could not find ddmlib-31.12.3.jar (com.android.tools.ddms:ddmlib:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/31.12.3/ddmlib-31.12.3.jar
   > Could not find aaptcompiler-8.12.3.jar (com.android.tools.build:aaptcompiler:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/aaptcompiler/8.12.3/aaptcompiler-8.12.3.jar
   > Could not find aapt2-proto-8.12.3-13700139.jar (com.android.tools.build:aapt2-proto:8.12.3-13700139).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2-proto/8.12.3-13700139/aapt2-proto-8.12.3-13700139.jar
   > Could not find crash-31.12.3.jar (com.android.tools.analytics-library:crash:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/crash/31.12.3/crash-31.12.3.jar
   > Could not find tracker-31.12.3.jar (com.android.tools.analytics-library:tracker:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/31.12.3/tracker-31.12.3.jar
   > Could not find shared-31.12.3.jar (com.android.tools.analytics-library:shared:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/31.12.3/shared-31.12.3.jar
   > Could not find lint-typedef-remover-31.12.3.jar (com.android.tools.lint:lint-typedef-remover:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-typedef-remover/31.12.3/lint-typedef-remover-31.12.3.jar
   > Could not find databinding-compiler-common-8.12.3.jar (androidx.databinding:databinding-compiler-common:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-compiler-common/8.12.3/databinding-compiler-common-8.12.3.jar
   > Could not find databinding-common-8.12.3.jar (androidx.databinding:databinding-common:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-common/8.12.3/databinding-common-8.12.3.jar
   > Could not find baseLibrary-8.12.3.jar (com.android.databinding:baseLibrary:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/databinding/baseLibrary/8.12.3/baseLibrary-8.12.3.jar
   > Could not find layoutlib-api-31.12.3.jar (com.android.tools.layoutlib:layoutlib-api:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/layoutlib/layoutlib-api/31.12.3/layoutlib-api-31.12.3.jar
   > Could not find android-device-provider-ddmlib-proto-31.12.3.jar (com.android.tools.utp:android-device-provider-ddmlib-proto:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/utp/android-device-provider-ddmlib-proto/31.12.3/android-device-provider-ddmlib-proto-31.12.3.jar
   > Could not find android-device-provider-gradle-proto-31.12.3.jar (com.android.tools.utp:android-device-provider-gradle-proto:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/utp/android-device-provider-gradle-proto/31.12.3/android-device-provider-gradle-proto-31.12.3.jar
   > Could not find android-device-provider-profile-proto-31.12.3.jar (com.android.tools.utp:android-device-provider-profile-proto:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/utp/android-device-provider-profile-proto/31.12.3/android-device-provider-profile-proto-31.12.3.jar
   > Could not find android-test-plugin-host-additional-test-output-proto-31.12.3.jar (com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/utp/android-test-plugin-host-additional-test-output-proto/31.12.3/android-test-plugin-host-additional-test-output-proto-31.12.3.jar
   > Could not find android-test-plugin-host-coverage-proto-31.12.3.jar (com.android.tools.utp:android-test-plugin-host-coverage-proto:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/utp/android-test-plugin-host-coverage-proto/31.12.3/android-test-plugin-host-coverage-proto-31.12.3.jar
   > Could not find android-test-plugin-host-emulator-control-proto-31.12.3.jar (com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/utp/android-test-plugin-host-emulator-control-proto/31.12.3/android-test-plugin-host-emulator-control-proto-31.12.3.jar
   > Could not find android-test-plugin-host-logcat-proto-31.12.3.jar (com.android.tools.utp:android-test-plugin-host-logcat-proto:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/utp/android-test-plugin-host-logcat-proto/31.12.3/android-test-plugin-host-logcat-proto-31.12.3.jar
   > Could not find android-test-plugin-host-apk-installer-proto-31.12.3.jar (com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/utp/android-test-plugin-host-apk-installer-proto/31.12.3/android-test-plugin-host-apk-installer-proto-31.12.3.jar
   > Could not find android-test-plugin-result-listener-gradle-proto-31.12.3.jar (com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/utp/android-test-plugin-result-listener-gradle-proto/31.12.3/android-test-plugin-result-listener-gradle-proto-31.12.3.jar
   > Could not find builder-model-8.12.3.jar (com.android.tools.build:builder-model:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-model/8.12.3/builder-model-8.12.3.jar
   > Could not find dvlib-31.12.3.jar (com.android.tools:dvlib:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/dvlib/31.12.3/dvlib-31.12.3.jar
   > Could not find common-31.12.3.jar (com.android.tools:common:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/common/31.12.3/common-31.12.3.jar
   > Could not find apkzlib-8.12.3.jar (com.android.tools.build:apkzlib:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/apkzlib/8.12.3/apkzlib-8.12.3.jar
   > Could not find protos-31.12.3.jar (com.android.tools.analytics-library:protos:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/31.12.3/protos-31.12.3.jar
   > Could not find signflinger-8.12.3.jar (com.android:signflinger:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/signflinger/8.12.3/signflinger-8.12.3.jar
   > Could not find zipflinger-8.12.3.jar (com.android:zipflinger:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/zipflinger/8.12.3/zipflinger-8.12.3.jar
   > Could not find annotations-31.12.3.jar (com.android.tools:annotations:31.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/annotations/31.12.3/annotations-31.12.3.jar
   > Could not find apksig-8.12.3.jar (com.android.tools.build:apksig:8.12.3).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/apksig/8.12.3/apksig-8.12.3.jar
> Failed to notify project evaluation listener.
   > java.lang.NullPointerException (no error message)
   > java.lang.NullPointerException (no error message)

* 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.
> Get more help at https://help.gradle.org.

BUILD FAILED in 46s
Error: Gradle task assembleDebug failed with exit code 1

flutter doctor -v

[√] Flutter (Channel stable, 3.38.5, on Microsoft Windows [Version 10.0.22621.4317], locale en-US) [1,112ms]
    • Flutter version 3.38.5 on channel stable at C:\Tools\flutter_3_29\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f6ff1529fd (7 days ago), 2025-12-11 11:50:07 -0500
    • Engine revision 1527ae0ec5
    • Dart version 3.10.4
    • DevTools version 2.51.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets,
      omit-legacy-version-file, enable-lldb-debugging

[√] Windows Version (11 Pro 64-bit, 22H2, 2009) [4.3s]

[√] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [11.8s]
    • Android SDK at C:\Tools\android_sdk
    • Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
    • Platform android-36, build-tools 36.1.0
    • Java binary at: C:\Program Files\Java\jdk-23\bin\java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version Java(TM) SE Runtime Environment (build 23.0.1+11-39)
    • All Android licenses accepted.

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

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.6) [670ms]
    • Visual Studio at D:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.11.35431.28
    • Windows 10 SDK version 10.0.22621.0

[√] Connected device (4 available) [658ms]
    • SM A520F (mobile) • 5210bb09fc8c442b • android-arm64  • Android 8.0.0 (API 26)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [Version 10.0.22621.4317]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 143.0.7499.109
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 141.0.3537.85

[√] Network resources [1,758ms]
    • All expected network resources are available.

• No issues found!

id("com.android.application") version "8.11.1" apply false

id("org.jetbrains.kotlin.android") version "2.2.20" apply false

distributionUrl=https://services.gradle.org/distributions/gradle-8.14-all.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions