Giter Site home page Giter Site logo

Comments (12)

ChenZeFengHi avatar ChenZeFengHi commented on June 2, 2024 1

Hi~@huycozy
1.My Internet is working
2.With the use of VPN, access to google, gradle plug-ins are normal.Turning off the VPN also fails to download the plugin properly
3.flutter has set Chinese mirror

image

“dev.flutter.flutter-gradle-plugin” " Where can I find this plugin? This link displays resource 404.
https://plugins.gradle.org/m2/dev/flutter/flutter-gradle-plugin/dev.flutter.flutter-gradle-plugin.gradle.plugin/1.0.0/dev.flutter.flutter-gradle-plugin.gradle.plugin-1.0.0.pom
image

Thank you very much for your reply!

from flutter.

ChenZeFengHi avatar ChenZeFengHi commented on June 2, 2024 1

Other colleagues can also run my projec, Changing phone's hotspot won't work either... ah~

from flutter.

huycozy avatar huycozy commented on June 2, 2024

Hi @ChenZeFengHi
This issue seems related to your network, please ensure you have a working internet connection. There is a checklist you can use for this:

from flutter.

huycozy avatar huycozy commented on June 2, 2024

Could you share the error trace in text file that will help to investigate further? Also, which Flutter version are you using? (please provide the output of flutter doctor -v)

from flutter.

ChenZeFengHi avatar ChenZeFengHi commented on June 2, 2024
image

flutter_android_log.log
@huycozy This is the error log~

from flutter.

huycozy avatar huycozy commented on June 2, 2024

A snippet of logs above:

  • What went wrong:
    Plugin [id: 'dev.flutter.flutter-gradle-plugin', version: '1.0.0', apply: false] was not found in any of the following sources:
  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Plugin Repositories (could not resolve plugin artifact 'dev.flutter.flutter-gradle-plugin:dev.flutter.flutter-gradle-plugin.gradle.plugin:1.0.0')

Could you check if the issue appears on a newly created Flutter project? If it's only on your project, could you share your gradle files below or a minimal sample project so that I can try it on my end?

  • android/settings.gradle
  • /android/build.gradle
  • /android/gradle/wrapper/gradle-wrapper.properties
  • /android/app/build.gradle

2.With the use of VPN, access to google, gradle plug-ins are normal.Turning off the VPN also fails to download the plugin properly

Does that mean the issue will not occur if you enable VPN?

from flutter.

ChenZeFengHi avatar ChenZeFengHi commented on June 2, 2024

The newly created flutter project will also have problems.

new_flutter_project.zip
This is my newly created project.

Start the VPN can visit "https://plugins.gradle.org" ,But cannot download "dev.flutter.flutter-gradle-plugin".
@huycozy

from flutter.

huycozy avatar huycozy commented on June 2, 2024

I can run your project normally. I still doubt this is a network issue. I would recommend you switch to another network and retry.

from flutter.

huycozy avatar huycozy commented on June 2, 2024

Thanks for checking. I will label the issue for other's input.

from flutter.

yaakovschectman avatar yaakovschectman commented on June 2, 2024

From triage: dev.flutter.flutter-gradle-plugin is not part of plugins.gradle.org; it is hosted as part of Flutter. Please try updating your Flutter version.

from flutter.

ChenZeFengHi avatar ChenZeFengHi commented on June 2, 2024

@yaakovschectman The Flutter version is already up to date
image

from flutter.

kerneltea avatar kerneltea commented on June 2, 2024

I encountered a similar issue. Later, I found that the corresponding operations in the flutter directory had been updated. It seems like some IDE suggestions automatically modified them. You should navigate to the flutter directory,
run
git reset --hard HEAD,
and then try compiling again. It should work.

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.