react-native-ble-plx icon indicating copy to clipboard operation
react-native-ble-plx copied to clipboard

Current react native app cannot build due to jcenter connection issue.

Open anunes9 opened this issue 3 years ago • 6 comments

Current Behavior

Current react native app cannot build due to jcenter connection issue.

Context

  • Library version: 2.0.3
  • Platform: Android
  • Platform logs (logcat/XCode):
  • JS logs:
A problem occurred configuring project ':react-native-ble-plx'.
> Could not resolve all artifacts for configuration ':react-native-ble-plx:classpath'.
   > Could not resolve com.android.tools.build:builder:3.1.4.
     Required by:
         project :react-native-ble-plx > com.android.tools.build:gradle:3.1.4 > com.android.tools.build:gradle-core:3.1.4
      > Could not resolve com.android.tools.build:builder:3.1.4.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/builder/3.1.4/builder-3.1.4.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/builder/3.1.4/builder-3.1.4.pom'.
               > Read timed out

On other libraries the solution was to replace jcenter() with mavenCentral() on build.gradle and it worked.

Any idea how to solve it?

Thanks

anunes9 avatar Jan 17 '22 19:01 anunes9

same issue.

voids avatar Jan 19 '22 05:01 voids

Hi.

We've got this already changed here: android updates It should be merged in a few days now.

mciechanowicz avatar Jan 19 '22 13:01 mciechanowicz

@mciechanowicz Thanks, waiting for merge

anunes9 avatar Jan 19 '22 17:01 anunes9

Hey guys, we are getting this error recurrently on our build process and it's related with this issue. Do you have an estimate on when the pull request will be merged?

Could not determine the dependencies of task ':app:mergeReleaseAssets'.
> Could not resolve all dependencies for configuration ':app:releaseRuntimeClasspath'.
   > Could not determine artifacts for com.github.Polidea:MultiPlatformBleAdapter:b0272c0fae040cc90f790481c54e8f2d45304339: Skipped due to earlier error

anunes9 avatar Mar 15 '22 11:03 anunes9

same issue.

Hemingway-ai avatar Jun 07 '22 02:06 Hemingway-ai

same issue.

`// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript { ext { buildToolsVersion = "30.0.2" minSdkVersion = 21 compileSdkVersion = 30 targetSdkVersion = 30 ndkVersion = "21.4.7075529" } repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle:4.2.2") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

allprojects { repositories { mavenCentral() mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") }

    google()
    maven { url 'https://www.jitpack.io' }
}

} `

Hemingway-ai avatar Jun 07 '22 02:06 Hemingway-ai

The new major release updates the core packages that support the latest versions of the operating system and fixes some old bugs. Please confirm if the issue still persists and create a new issue if it still does.