maxs15 / react-native-spinkit

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

Deprecated library issue (The SDK Build Tools revision (23.0.1) is too low for project ':react-native-spinkit'. Minimum required is 25.0.0) #96

Closed Nitingadhiya closed 4 years ago

Nitingadhiya commented 6 years ago

We have create project with latest react-native version. then installed spin-kit library after I will run "react-native run-android" . but we have facing below error :

FAILURE: Build failed with an exception.

Project react-native version: "react": "16.4.1", "react-native": "0.56.0", "react-native-spinkit": "^1.1.1",

JakeRawr commented 5 years ago

+1

happyEgg commented 5 years ago

+1

happyEgg commented 5 years ago

@maxs15

vinayan3 commented 5 years ago

As a workaround till this is merged you can add a postinstall step to your package.json file which will apply PR #103.which is currently awaiting merging.

{
  "name": "TestApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "postinstall": "./scripts/react-native-spinkit-android-build-patch.sh",
  }
}

The file react-native-spinkit-android-build-patch.sh is below:

#!/usr/bin/env bash

set -e

pushd node_modules/react-native-spinkit

SEMAPHORE=android_build_patched
if test ! -f ${SEMAPHORE}; then
  touch ${SEMAPHORE}
  PATCH_FILE=android_build.patch
  curl https://patch-diff.githubusercontent.com/raw/maxs15/react-native-spinkit/pull/103.patch > ${PATCH_FILE}
  patch -p1 <${PATCH_FILE}
  rm ${PATCH_FILE}
fi

popd
maxs15 commented 4 years ago

Fixed in 1.5.0 :)