Describe
hi i can not run , i get error for run
Issue details
Error Log
Launching lib/main.dart on HUAWEI P7 L10 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':file_picker'.
> Could not resolve all artifacts for configuration ':file_picker:classpath'.
> Could not find gradle.jar (com.android.tools.build:gradle:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.0/gradle-3.3.0.jar
> Could not find builder.jar (com.android.tools.build:builder:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.3.0/builder-3.3.0.jar
> Could not find tracker.jar (com.android.tools.analytics-library:tracker:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/26.3.0/tracker-26.3.0.jar
> Could not find shared.jar (com.android.tools.analytics-library:shared:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/26.3.0/shared-26.3.0.jar
> Could not find crash.jar (com.android.tools.analytics-library:crash:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/crash/26.3.0/crash-26.3.0.jar
> Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle-api/26.3.0/lint-gradle-api-26.3.0.jar
> Could not find gradle-api.jar (com.android.tools.build:gradle-api:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-api/3.3.0/gradle-api-3.3.0.jar
> Could not find databinding-compiler-common.jar (androidx.databinding:databinding-compiler-common:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-compiler-common/3.3.0/databinding-compiler-common-3.3.0.jar
> Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/26.3.0/manifest-merger-26.3.0.jar
> Could not find sdk-common.jar (com.android.tools:sdk-common:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.3.0/sdk-common-26.3.0.jar
> Could not find builder-test-api.jar (com.android.tools.build:builder-test-api:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-test-api/3.3.0/builder-test-api-3.3.0.jar
> Could not find ddmlib.jar (com.android.tools.ddms:ddmlib:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/26.3.0/ddmlib-26.3.0.jar
> Could not find sdklib.jar (com.android.tools:sdklib:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/26.3.0/sdklib-26.3.0.jar
> Could not find layoutlib-api.jar (com.android.tools.layoutlib:layoutlib-api:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/layoutlib/layoutlib-api/26.3.0/layoutlib-api-26.3.0.jar
> Could not find dvlib.jar (com.android.tools:dvlib:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/dvlib/26.3.0/dvlib-26.3.0.jar
> Could not find repository.jar (com.android.tools:repository:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/repository/26.3.0/repository-26.3.0.jar
> Could not find common.jar (com.android.tools:common:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/common/26.3.0/common-26.3.0.jar
> Could not find jetifier-processor.jar (com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-processor/1.0.0-beta02/jetifier-processor-1.0.0-beta02.jar
> Could not find bundletool.jar (com.android.tools.build:bundletool:0.6.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.6.0/bundletool-0.6.0.jar
> Could not find jetifier-core.jar (com.android.tools.build.jetifier:jetifier-core:1.0.0-beta02).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-core/1.0.0-beta02/jetifier-core-1.0.0-beta02.jar
> Could not find builder-model.jar (com.android.tools.build:builder-model:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-model/3.3.0/builder-model-3.3.0.jar
> Could not find protos.jar (com.android.tools.analytics-library:protos:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/26.3.0/protos-26.3.0.jar
> Could not find apkzlib.jar (com.android.tools.build:apkzlib:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/apkzlib/3.3.0/apkzlib-3.3.0.jar
> Could not find apksig.jar (com.android.tools.build:apksig:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/apksig/3.3.0/apksig-3.3.0.jar
> Could not find annotations.jar (com.android.tools:annotations:26.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/annotations/26.3.0/annotations-26.3.0.jar
> Could not find databinding-common.jar (androidx.databinding:databinding-common:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-common/3.3.0/databinding-common-3.3.0.jar
> Could not find baseLibrary.jar (com.android.databinding:baseLibrary:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/databinding/baseLibrary/3.3.0/baseLibrary-3.3.0.jar
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':file_picker' of type org.gradle.api.Project.
> Could not find method implementation() for arguments [project ':flutter_plugin_android_lifecycle'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* 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 38s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Running Gradle task 'assembleAarRelease'...
Building plugin file_picker...
@flashiran1 this is likely an issue with your gradle version or similar.
Could you please post the output of your flutter doctor -v?
@miguelpruivo sorry
[✓] Flutter (Channel stable, 1.20.4, on Linux, locale en_US.UTF-8)
• Flutter version 1.20.4 at /home/mf/snap/flutter/common/flutter
• Framework revision fba99f6cf9 (3 weeks ago), 2020-09-14 15:32:52 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /media/mf/HardDisk/Developer/Android_Studio/SDK_Android
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = /media/mf/HardDisk/Developer/Android_Studio/SDK_Android
• Java binary at: /media/mf/HardDisk/Developer/Android_Studio/Android_Studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Android Studio (version 4.0)
• Android Studio at /media/mf/HardDisk/Developer/Android_Studio/Android_Studio
• Flutter plugin version 50.0.1
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.49.2)
• VS Code at /usr/share/code
• Flutter extension version 3.13.2
[✓] Connected device (1 available)
• HUAWEI P7 L10 (mobile) • 192.168.1.100:5555 • android-arm • Android 5.1.1 (API 22)
• No issues found!
@flashiran1 you'll eventually fix it. This is one of those "non-issues" that happen due to caching or version conflict.
Try cleaning and build again or update your gradle version. It should work as it is. Can't really tell you why is not, sorry. 😞
@miguelpruivo
classpath 'com.android.tools.build:gradle:3.5.0'
Try with: classpath 'com.android.tools.build:gradle:4.0.1'
fixed but get WARNING
WARNING: [Processor] Library '/home/mf/.gradle/caches/modules-2/files-2.1/io.flutter/flutter_embedding_debug/1.0.0-d1bc06f032f9d6c148ea6b96b48261d6f545004f/d413186ad73c0653d1d500fc2b85eac24280a0dd/flutter_embedding_debug-1.0.0-d1bc06f032f9d6c148ea6b96b48261d6f545004f.jar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
Example of androidX reference: 'androidx/annotation/VisibleForTesting'
Example of support library reference: 'android/support/annotation/NonNull'
@flashiran1 good to know! Yes, but that issue is not related with the plugin but with the some Flutter lib part. You shouldn't have to worry with it.
Let me know if you find any more issue related with this.
Closing.
Most helpful comment
@flashiran1 good to know! Yes, but that issue is not related with the plugin but with the some Flutter lib part. You shouldn't have to worry with it.
Let me know if you find any more issue related with this.
Closing.