juananime / react-native-audiowaveform

Audio waveform renderer for React Native
265 stars 94 forks source link

problem in building android #96

Open mojtabaasadi opened 2 years ago

mojtabaasadi commented 2 years ago

Hi , I was tying to build android debug apk , i face this error


E:\projects\komodaamonorepo\node_modules\react-native-audiowaveform\android\src\main\java\com\otomogroove\OGReactNativeWaveform\OGWaveManager.java:3: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
                                 ^
E:\projects\komodaamonorepo\node_modules\react-native-audiowaveform\android\src\main\java\com\otomogroove\OGReactNativeWaveform\OGWaveManager.java:81: error: cannot find symbol
    public void setSrc(OGWaveView view, @Nullable ReadableMap src) {
                                         ^
  symbol:   class Nullable
  location: class OGWaveManager
E:\projects\komodaamonorepo\node_modules\react-native-audiowaveform\android\src\main\java\com\otomogroove\OGReactNativeWaveform\OGWaveManager.java:102: error: cannot find symbol
    public void setWaveFormStyle(OGWaveView view, @Nullable ReadableMap waveFormStyle) {
                                                   ^
  symbol:   class Nullable
  location: class OGWaveManager
E:\projects\komodaamonorepo\node_modules\react-native-audiowaveform\android\src\main\java\com\otomogroove\OGReactNativeWaveform\OGWaveManager.java:109: error: cannot find symbol
    public void setPlay(OGWaveView view, @Nullable boolean play) {
                                          ^
  symbol:   class Nullable
  location: class OGWaveManager
E:\projects\komodaamonorepo\node_modules\react-native-audiowaveform\android\src\main\java\com\otomogroove\OGReactNativeWaveform\OGWaveManager.java:152: error: cannot find symbol
                           @Nullable WritableMap params) {
                            ^
  symbol:   class Nullable
  location: class OGWaveManager
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors

FAILURE: Build failed with an exception.```

don't know how to resolve it.
thanks for your efforts on this package by the way .