flutter build won't find a dependecy but when i copy the link to my browser it's at the same location

OverLoadedBurden

So I've just started flutter with zero experience in mobile development . and i just created a new project and when i try build it with flutter build apk it give's me this

Initializing gradle...                                              1.2s
Resolving dependencies...                                               
* Error running Gradle:
ProcessException: Process "/media/OLB/Shared Media/Code Work Space/Visual Studio
Code/flutter_test1/android/gradlew" exited abnormally:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find builder.jar (com.android.tools.build:builder:3.2.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.2.1/builder-3.2.1.jar

* 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 1s
  Command: /media/OLB/Shared Media/Code Work Space/Visual Studio Code/flutter_test1/android/gradlew
  app:properties


Please review your Gradle project setup in the android/ folder.

but when i copy the provided link

https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.2.1/builder-3.2.1.jar

the file is their !


flutter doctor -v

[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Linux, locale en_US.UTF-8)
    • Flutter version 1.5.4-hotfix.2 at /media/OBL/Shared Media/Code Work Space/Android/flutter
    • Framework revision 7a4c33425d (4 weeks ago), 2019-04-29 11:05:24 -0700
    • Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)


[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /media/OBL/Shared Media/Code Work Space/Android/
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /media/OBL/Shared Media/Code Work Space/Android/
    • ANDROID_SDK_ROOT = /media/OBL/Shared Media/Code Work Space/Android/sdk/
    • Java binary at: /usr/lib/jvm/java-8-openjdk-amd64/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[✓] VS Code (version 1.34.0)
    • VS Code at /usr/share/code
    • Flutter extension version 3.0.2

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

I know their is no AS but i'v download all required stuff through the Android sdk directly , please help and thanx in advance .

OverLoadedBurden

I don't know much about it but a friend advised me to refresh the dependencies manually from /project/android/gradlew and it worked !! like this

gradlew --refresh-dependencies

and it worked like a charm .

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

I want to use NavigationView inside my App but I can't find the right dependecy to implement for androidX

Why won't curl download this link when a browser will?

Why won't my div resize when the browser resizes?

Canvas- house. Why isn`t the code working, when I copy it to an editor and run it in my browser?

My Link in react won't work when clicked on

My System.CommandLine app won't build! It can't find a CommandHandler. Do I need to write it?

What's happening when I make changes in project that is a dependecy of a jar?

When I run my Spring Boot Project with Thymeleaf, the browser won't load the css files but path for href and th:href is correct

I'm trying to fix a reference error when using Gulp 4, It won't watch my sass nor show the changes in the browser

The linker can't find a library even when i have specified it's location with -L

Why won't my buttons appear when I run this JFrame?

Why won't my function activate when I call it?

Why won't my rectangle move when I press the key?

Why won't my sub menu show when I click on it

Why can't I link my CSS when it's outside the root directory?

Why don't I get the same result as with tensorflow's method when I write my own expression?

flutter why can't I print device's location on screen

When signing my flutter app i cannot build the app *edited*

Build failed when I try to run my flutter app

Why is my button not changing the location of my browser when it's inside a form?

Why won't my stylesheet link to the index?

When i use firebase dynamic link in my flutter it opne app but not get link when app was kill

I'm using javafx-gradle-plugin and my build fails with with "Couldn't find Ant-JavaFX-library". How do I specify the JavaFX location?

Why won't my IDEA projects build?

I can't find the build folder of my project in Android studio

Why won't my GLSL program link when one shader is optimized and the other is not?

Cannot get my DataProcessor file to find the file that is literally in the same folder as input.txt, which it's supposed to take. Won't compile either

My database won't insert my record when i submit my form

Why won't my link navigate to the page that I want upon clicking it?

TOP Ranking

HotTag

Archive