iyegoroff / react-native-text-gradient

Text gradient for React-Native (ON HIATUS)
MIT License
97 stars 32 forks source link

Latest version is not compatible with Android X #32

Closed ofiron01 closed 5 years ago

ofiron01 commented 5 years ago

System: OS: macOS 10.14.4 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Memory: 16.86 MB / 16.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 10.15.3 - /usr/local/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/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: 23, 26, 28 Build Tools: 23.0.1, 26.0.2, 28.0.3 System Images: android-26 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom IDEs: Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react-native: 0.60.4 => 0.60.4 npmGlobalPackages: react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7

react-native-text-gradient: 0.1.6

When running react-native run-android gradlew shows this error: `Error: Command failed: ./gradlew app:installTolunaDevDebug -PreactNativeDevServerPort=8081 /Users/ofir.oron/dev/new_toluna-mobile-app/toluna-mobile-app/mobile-apps/node_modules/react-native-text-gradient/android/src/main/java/iyegoroff/RNTextGradient/RNShadowTextGradient.java:19: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ /Users/ofir.oron/dev/new_toluna-mobile-app/toluna-mobile-app/mobile-apps/node_modules/react-native-text-gradient/android/src/main/java/iyegoroff/RNTextGradient/ReflectUtils.java:3: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ /Users/ofir.oron/dev/new_toluna-mobile-app/toluna-mobile-app/mobile-apps/node_modules/react-native-text-gradient/android/src/main/java/iyegoroff/RNTextGradient/RNShadowTextGradient.java:80: error: cannot find symbol private @Nullable View resolveView(int tag) { ^ symbol: class Nullable location: class RNShadowTextGradient /Users/ofir.oron/dev/new_toluna-mobile-app/toluna-mobile-app/mobile-apps/node_modules/react-native-text-gradient/android/src/main/java/iyegoroff/RNTextGradient/ReflectUtils.java:14: error: cannot find symbol static T getFieldValue(Object target, String name, @Nullable Class type) { ^ symbol: class Nullable location: class ReflectUtils /Users/ofir.oron/dev/new_toluna-mobile-app/toluna-mobile-app/mobile-apps/node_modules/react-native-text-gradient/android/src/main/java/iyegoroff/RNTextGradient/ReflectUtils.java:32: error: cannot find symbol static T invokeMethod(Object target, String name, @Nullable Class type) { ^ symbol: class Nullable location: class ReflectUtils 5 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 5s`

ofiron01 commented 5 years ago

@iyegoroff FYI I have created a new PR #33 to fix this issue.