Closed Dante-dan closed 5 years ago
The same
I resolve it, I set the com.github.ybq:Android-SpinKit : 1.2.0
/node_modules/react-native-spinkit/android/build.gradle
dependencies {
compile 'com.facebook.react:react-native: +'
compile 'com.github.ybq:Android-SpinKit:1.2.0'
}
Fix merged in 1.2.0
I'm curious as to why the error is happening in the first place. Just bumping to a newer version doensn't sit well with me.
https://mvnrepository.com/artifact/com.github.ybq/Android-SpinKit shows that Android-SpinKit 1.1.0 exists, just not on the jcenter repo. It only shows up on the mulesoft repo.
I resolve it, I set the
com.github.ybq:Android-SpinKit : 1.2.0
/node_modules/react-native-spinkit/android/build.gradle dependencies { compile 'com.facebook.react:react-native: +' compile 'com.github.ybq:Android-SpinKit:1.2.0' }
That's the thing but you should not overwrite node_modules files! You should set the react-native-spinkit version to "^1.3.0" in the package.json file. Then remove node_mosules and run npm i. This will set the Android-SpinKit 1.2.0, and solve the problem
When I run
react-native run-android
, it's failed.maybe it change url , we can change it's url to 1.2