question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InterpolateColor fails on Android

See original GitHub issue
 const  v = useSharedValue(0);
 const animatedStyle = useAnimatedStyle(() => ({
    backgroundColor: interpolateColor(v.value, [-1, 0, 1], ['red', 'blue', 'green']),
  }));

fails with the following on Android:

Screen Shot 2020-11-26 at 10 07 08

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
myckhelcommented, Nov 27, 2020

wow @wcandillon can you help me out with the reanimated@alpha installation on 64.0-rc i tried and follow the installation steps on https://docs.swmansion.com/react-native-reanimated/docs/installation but android build fails with output:

> Task :app:checkDebugAarMetadata FAILED
13 actionable tasks: 2 executed, 11 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform react-native-reanimated-64.aar (project :react-native-reanimated) to match attributes {artifactType=android-aar-metadata}.
      > Execution failed for JetifyTransform: C:\Users\hp\Desktop\apps\mobile\rnext\node_modules\react-native-reanimated\android\react-native-reanimated-64.aar.
         > Transform's input file does not exist: C:\Users\hp\Desktop\apps\mobile\rnext\node_modules\react-native-reanimated\android\react-native-reanimated-64.aar. (See https://issuetracker.google.com/issues/158753935)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Im wondering if you have followed the exact same steps from the installation page or you did some extra.

Please i will appreciate if you can give me some Abracadabra tips.

0reactions
jakub-gonetcommented, Nov 29, 2020

Closing as duplicate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

interpolateColor on android is not working - Bountysource
Description. I find a case where it seems like interpolateColor is not working on android.
Read more >
3 - Stack Overflow
How to resolve unique error when running React Native app? 1 · I am getting this error while opening my react-native app ....
Read more >
Interpolate Colors like a pro with React Native ... - YouTube
In this tutorial we'll learn the concept behind the interpolateColor function from React Native Reanimated. To improve the learning ...
Read more >
Reanimated 2 - the new approach to creating animations in ...
yarn ios // or yarn android ... our Javascript callback, Reanimated 2 will inform us about that fact by displaying an appropriate error....
Read more >
interpolateColors | React Native Reanimated
interpolateColors (node, { // Input range for the interpolation. Should be monotonically increasing. inputRange: [nodeOrValue, ...],
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found