Execution failed for task ':react-native-reanimated:androidJavadoc' in React Native

Viewed 1807

I'm trying to run the React Native Android App on a physical device. I'm giving it the command:

react-native run-android --deviceId=MY_DEVICE_ID

But it gives this error:

* What went wrong:
Execution failed for task ':react-native-reanimated:androidJavadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): 'MyApp/node_modules/react-native-reanimated/android/build/tmp/androidJavadoc/javadoc.options'

I've tried the solution mentioned here: React Native Reanimated error: Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac' I which I did npm install -g jetifier and then npx jetify and then in gradle.propeties I've android.useAndroidX=true and android.enableJetifier=true

But it still gives the same error when I run react-native run-android --deviceId=MY_DEVICE_ID

1 Answers

try adding this to build.gradle

allprojects { tasks.withType(Javadoc).all { enabled = false } ... }

Related