maxs15 / react-native-spinkit

A collection of animated loading indicators for React Native
MIT License
2.36k stars 300 forks source link

Problem building project #50

Open daniel00k opened 7 years ago

daniel00k commented 7 years ago

Could not find com.github.ybq:Android-SpinKit:1.1.0. Searched in the following locations: https://jcenter.bintray.com/com/github/ybq/Android-SpinKit/1.1.0/Android-SpinKit-1.1.0.pom https://jcenter.bintray.com/com/github/ybq/Android-SpinKit/1.1.0/Android-SpinKit-1.1.0.jar file:/Users/....../pagalo_asi/node_modules/react-native/android/com/github/ybq/Android-SpinKit/1.1.0/Android-SpinKit-1.1.0.pom file:/Users/......./pagalo_asi/node_modules/react-native/android/com/github/ybq/Android-SpinKit/1.1.0/Android-SpinKit-1.1.0.jar file:/Users/.../Library/Android/sdk/extras/android/m2repository/com/github/ybq/Android-SpinKit/1.1.0/Android-SpinKit-1.1.0.pom file:/Users/.../Library/Android/sdk/extras/android/m2repository/com/github/ybq/Android-SpinKit/1.1.0/Android-SpinKit-1.1.0.jar file:/Users/.../Library/Android/sdk/extras/google/m2repository/com/github/ybq/Android-SpinKit/1.1.0/Android-SpinKit-1.1.0.pom file:/Users/.../Library/Android/sdk/extras/google/m2repository/com/github/ybq/Android-SpinKit/1.1.0/Android-SpinKit-1.1.0.jar Required by: Project:app:unspecified > Project:react-native-spinkit:unspecified

7laria commented 7 years ago

same issue

ylac commented 7 years ago

In android/build.gradle, adding an extra maven url like so fixed it for me:

allprojects { repositories { mavenLocal() jcenter() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } maven { url "https://jitpack.io" } } }

alimek commented 5 years ago

it started happening for me today again ?


Could not resolve all files for configuration ':react-native-spinkit:releaseCompileClasspath'.
> Could not find Android-SpinKit.jar (com.github.ybq:Android-SpinKit:1.1.0).
  Searched in the following locations:
      https://jitpack.io/com/github/ybq/Android-SpinKit/1.1.0/Android-SpinKit-1.1.0.jar```
socceroos commented 5 years ago

@alimek According to the 1.1.0 build log the last build failed.

To solve the compile issue, I changed react-native-spinkit's build.gradle so that the Android-Spinkit dependency was 1.2.0 like this: compile 'com.github.ybq:Android-SpinKit:1.2.0@aar'

ikhattab commented 5 years ago

I updated react-native-spinkit to the latest one as in the README https://github.com/maxs15/react-native-spinkit#getting-started and it successfully downloaded Android-SpinKit-1.2.0.aar

gtaylor44 commented 5 years ago

Updating react-native-spinkit to 1.2.0 (from 1.1.0) worked for me.

ldco2016 commented 5 years ago

Upgrading to the latest react-native-spinkit has not solved this for me. I am working with React Native 0.53.3 and React 16.2