axelra-ag / react-native-animateable-text

🆎 A fork of React Native's <Text/> component that supports Animated Values!
https://www.npmjs.com/package/react-native-animateable-text
MIT License
360 stars 27 forks source link

Error when compiling for Android (compileDebugJavaWithJavac) #43

Closed lewisd1996 closed 1 year ago

lewisd1996 commented 1 year ago

Here is more detail:

.../reactnativereanimatedtext/JBTextViewManager.java:114: error: method getJustificationMode in class TextAttributeProps cannot be applied to given types;
      TextAttributeProps.getJustificationMode(props));
                        ^
  required: ReactStylesDiffMap,int
  found: ReactStylesDiffMap
  reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build completed with 2 failures.

My dependencies are:

"react-native": "0.70.10",
"react-native-animateable-text": "0.10.1",
"react-native-reanimated": "2.12.0",
"react-native-redash": "18.1.0",
lewisd1996 commented 1 year ago

Upgrading react-native-animateable-text to the latest version seems to have fixed this for me