maxs15 / react-native-spinkit

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

package android.support.annotation does not exist #126

Closed ChauVV closed 4 years ago

ChauVV commented 5 years ago

My current React-Native:

"react": "16.8.6", "react-native": "0.60.3", "react-native-spinkit": "^1.4.1",

but on Android i hit an essue:

error: package android.support.annotation does not exist

augus-zz commented 5 years ago

+1

app/node_modules/react-native-spinkit/android/src/main/java/com/react/rnspinkit/RNSpinkit.java:5: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
                                 ^
app/node_modules/react-native-spinkit/android/src/main/java/com/react/rnspinkit/RNSpinkit.java:57: error: cannot find symbol
    public void setIsVisible(RNSpinkitView view, @Nullable Boolean visible) {
                                                  ^
  symbol:   class Nullable
  location: class RNSpinkit

react-native info

System:
    OS: macOS High Sierra 10.13.6
    Memory: 133.11 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node
    Yarn: 1.15.2 - ~/.nvm/versions/node/v8.12.0/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    Android SDK:
      API Levels: 26, 27, 28
      Build Tools: 26.0.3, 27.0.3, 28.0.3
      System Images: android-28 | Google Play Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5791312
    Xcode: 10.1/10B61 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6
    react-native: 0.60.5 => 0.60.5
  npmGlobalPackages:
    react-native-cli: 2.0.1

'react-native-spinkit': 1.4.1

Stormsher commented 5 years ago

@ChauVV Hi, I made fix for it in my PR: https://github.com/maxs15/react-native-spinkit/pull/127

also you can just use my fork: https://github.com/Stormsher/react-native-spinkit