januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
361 stars 420 forks source link

Repositories (jcenter and spring) do not work over HTTP #89

Closed e1016 closed 4 years ago

e1016 commented 4 years ago

I created this issue so they can find the problem by searching on google while solving the problem, a temporary solution is to go to /node_modules/react-native-bluetooth-escpos-printer/android/build.gradle and edit

buildscript {
    [...]
    repositories {
        jcenter { url "http://jcenter.bintray.com/" } <- HTTPS
        maven {url "http://repo.spring.io/plugins-release/"} <- HTTPS
    [...]
    }
    [...]
}
[...]
repositories {
    [...]
    jcenter { url "http://jcenter.bintray.com/" } <- HTTPS
    maven { url "http://repo.spring.io/plugins-release/" } <- HTTPS
    [...]
}

el problema del que hablo es el siguiente

A problem occurred configuring project ':react-native-bluetooth-escpos-printer'.
> Could not resolve all artifacts for configuration ':react-native-bluetooth-escpos-printer:classpath'.
   > Could not download bundletool.jar (com.android.tools.build:bundletool:0.1.0-alpha01)
      > Could not get resource 'http://repo.spring.io/plugins-release/com/android/tools/build/bundletool/0.1.0-alpha01/bundletool-0.1.0-alpha01.jar'.
         > Could not HEAD 'http://repo.spring.io/plugins-release/com/android/tools/build/bundletool/0.1.0-alpha01/bundletool-0.1.0-alpha01.jar'. Received status code 403 from server: Forbidden
   > Could not download kotlin-stdlib-jre8.jar (org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0)
      > Could not get resource 'http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.jar'.
         > Could not HEAD 'http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.jar'. Received status code 403 from server: Forbidden
   > Could not download aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.1.0)
      > Could not get resource 'http://repo.spring.io/plugins-release/com/android/tools/build/aapt2-proto/0.1.0/aapt2-proto-0.1.0.jar'.
         > Could not HEAD 'http://repo.spring.io/plugins-release/com/android/tools/build/aapt2-proto/0.1.0/aapt2-proto-0.1.0.jar'. Received status code 403 from server: Forbidden
   > Could not download error_prone_annotations.jar (com.google.errorprone:error_prone_annotations:2.1.2)
      > Could not get resource 'http://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.1.2/error_prone_annotations-2.1.2.jar'.
         > Could not HEAD 'http://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.1.2/error_prone_annotations-2.1.2.jar'. Received status code 403 from server: Forbidden
   > Could not download kotlin-stdlib-jre7.jar (org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.0)
      > Could not get resource 'http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre7/1.2.0/kotlin-stdlib-jre7-1.2.0.jar'.
         > Could not HEAD 'http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre7/1.2.0/kotlin-stdlib-jre7-1.2.0.jar'. Received status code 403 from server: Forbidden
   > Could not download kotlin-stdlib.jar (org.jetbrains.kotlin:kotlin-stdlib:1.2.0)
      > Could not get resource 'http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.0/kotlin-stdlib-1.2.0.jar'.
         > Could not HEAD 'http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.0/kotlin-stdlib-1.2.0.jar'. Received status code 403 from server: Forbidden
januslo commented 4 years ago

I found no way to pull this change https://github.com/YaOliveira/react-native-bluetooth-escpos-printer/commit/32535927008cf2b6452d109840fa412b45b483e2