react-native-spinkit icon indicating copy to clipboard operation
react-native-spinkit copied to clipboard

Android React Native 0.82 Support

Open ahc2806 opened this issue 1 month ago • 0 comments

The latest version of this library (1.5.1) gives a compilation problem for android:

FAILURE: Build failed with an exception.
*Where:
Build file '*/node_modules/react-native-spinkit/android/build.gradle' line: 7

* What went wrong:
A problem occurred evaluating project ':react-native-spinkit'.
> Could not find method jcenter() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.]

This is fixed with the following patch:

patches/react-native-spinkit+1.5.1.patch

diff --git a/node_modules/react-native-spinkit/android/build.gradle b/node_modules/react-native-spinkit/android/build.gradle
index 9f02021..4af9f35 100644
--- a/node_modules/react-native-spinkit/android/build.gradle
+++ b/node_modules/react-native-spinkit/android/build.gradle
@@ -4,7 +4,7 @@ buildscript {
     }
     repositories {
         google()
-        jcenter()
+        mavenCentral()
     }
 
     dependencies {
@@ -33,7 +33,7 @@ android {
 repositories {
     mavenLocal()
     google()
-    jcenter()
+    mavenCentral()
     maven {
         // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
         url "$rootDir/../node_modules/react-native/android"

ahc2806 avatar Nov 10 '25 06:11 ahc2806