I already upgraded react-native from version 0.64.1
to 0.65.0-rc.3
because targetSdk=30
is required to publish a bundle to Google Play from 1st august 21. I was upgrading letter to letter using upgrade helper Now I am getting ./gradlew bundleRelease
error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseAssets'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
> Failed to transform react-native-reanimated-65-jsc.aar (project :react-native-reanimated) to match attributes {artifactType=android-assets}.
> Execution failed for JetifyTransform: MyApp/node_modules/react-native-reanimated/android/react-native-reanimated-65-jsc.aar.
> Transform's input file does not exist: MyApp/node_modules/react-native-reanimated/android/react-native-reanimated-65-jsc.aar. (See https://issuetracker.google.com/issues/158753935)
Already tried:
- removing node_modules, reinstalling again
- cleaning gradle, project, yarn cache, etc...
- tried to jetify explicitly
- upgrade android studio
- upgrade react-native-reanimated to the newest version
Spent hours in frustration that there is no stable release of react-native to proceed through Google requirements. Any ideas to make it work?
----- EDIT ----
As a temporary workaround it's enough to change just versions in the project level gradle file:
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
ndkVersion = "20.1.5948944"
}