liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
234 stars 97 forks source link

When downloading a package, it cannot download a file from my ip address #515

Open DiFo89 opened 7 months ago

DiFo89 commented 7 months ago

I live in Russia and have the appropriate IP address. I've been puzzling over the error for a long time during the project build:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.github.MKergall:osmbonuspack:6.9.0.
     Required by:
         project :app > project :flutter_osm_plugin
      > Could not resolve com.github.MKergall:osmbonuspack:6.9.0.
         > Could not get resource 'https://jitpack.io/com/github/MKergall/osmbonuspack/6.9.0/osmbonuspack-6.9.0.pom'.
            > Could not GET 'https://jitpack.io/com/github/MKergall/osmbonuspack/6.9.0/osmbonuspack-6.9.0.pom'.
               > Connect to jitpack.io:443 [jitpack.io/188.114.98.234, jitpack.io/188.114.99.234] failed: Read timed out

* 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 3m 10s

I disabled the Firewall on Windows, but eventually the transition to the Amsterdam IP address helped.

I started testing, and realized that the file is at "https://jitpack.io/com/github/MKergall/osmbonuspack/6.9.0/osmbonuspack-6.9.0.pom " it is not visible from my native IP.

Flutter doctor shows no errors

liodali commented 7 months ago

Hi In general i dont own that part its part of osmbonus package in android and we used for drawing roads but in the near future i will replace it with dart API since we already create package that purpose so we will not need it and thnx for your report

DiFo89 commented 6 months ago

Hi In general i dont own that part its part of osmbonus package in android and we used for drawing roads but in the near future i will replace it with dart API since we already create package that purpose so we will not need it and thnx for your report

Thank you for your reply, I look forward to your improvements.