react-native-reanimated: Failed to transform react-native-reanimated-63.aar (project :react-native-reanimated) to match attributes {artifactType=android-assets}

Description

What went wrong:
Execution failed for task ':app:mergeDevDebugAssets'.
> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
  > Failed to transform react-native-reanimated-63.aar (project :react-native-reanimated) to match attributes {artifactType=android-assets}.
   > Execution failed for JetifyTransform: /Users/nataliarapesta/Documents/App4/mobile-app-react-native/node_modules/react-native-reanimated/android/react-native-reanimated-63.aar.
     > Check failed

I have tested a lot of ways to resolve it. For example,I installed the library manually, I cleaned cache a lot of times, I changed to a new version of react-native-reanimated 2.0.1 or 2.1.0 , unistalled and installed Java, Android Studio and SDKs but it is always the same error . It only happens with Android, iOS is ok and I see the library into node-modules.

It was installed with react-navigation, but in the project, it is not uses directly.

Expected behavior

Apps build and run successfully.

Actual behavior & steps to reproduce

App build failed.

npm run android:dev

Package versions

  • React: 16.13.1
  • React Native: 0.63.4
  • React Native Reanimated: ^2.0.0
  • NodeJS: v14.16.1
  • Java & Gradle: Java 1.8.0.282, Gradle 6.2.

Affected platforms

  • Android version 4.1.3 installed.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 28 (4 by maintainers)

Most upvoted comments

Unfortunately, Reanimated currently doesn’t support react-native 0.65.*. I’m working on this now. It should be available soon.

For those who are looking for a temporary fix just install this version npm i react-native-reanimated@2.3.0-alpha.2 --save --force

Not working as well in RN 0.65.0-rc.4. I need to target API level 30 (Android 11) for my apps.

also v0.65.1 latest release is now available just incase you’re still using a release candidate

try this:

npm i react-native-reanimated@^1.13.2

Unfortunately, Reanimated currently doesn’t support react-native 0.65.*. I’m working on this now. It should be available soon.

Hey! Any update on this, @piaskowyk?

RN 0.65 stable got released the other day and my organisation is looking into upgrading our apps to this newer version. After some trial/error I got the apps to build and run on iOS, however, @RichardLindhout’s solution only gets me to where the Android app is building and uploading to the sim but then quietly stops with Logcat spewing out A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 25423 (create_react_co).

I’m assuming this is still the cause of the problem, so it would be great to know if we should expect 0.65 support from RN Reanimated in the coming days/weeks or just shelve the upgrade for the time being. Any news would be appreciated!

What I did for now was going the node_modules/react-native-reanimated/android directory and run the following

cp react-native-reanimated-64-hermes.aar react-native-reanimated-65-hermes.aar

Not working as well in RN 0.65.0-rc.4. I need to target API level 30 (Android 11) for my apps.

Screen Shot 2021-08-17 at 9 09 37 PM
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform react-native-reanimated-65-jsc.aar 
(project :react-native-reanimated) to match attributes {artifactType=android-aar-metadata}.

I have the same problem as @alz10

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform react-native-reanimated-65-hermes.aar (project :react-native-reanimated) to match attributes {artifactType=android-aar-metadata}.
      > Execution failed for JetifyTransform: /...____.../node_modules/react-native-reanimated/android/react-native-reanimated-65-hermes.aar.
         > Transform's input file does not exist: /...____.../node_modules/react-native-reanimated/android/react-native-reanimated-65-hermes.aar. (See https://issuetracker.google.com/issues/158753935)

I am having the same issue after upgrade react-native to ^0.65.0-rc.2