我正在尝试在物理设备上运行 React Native Android 应用程序。我给它命令:
react-native run-android --deviceId=MY_DEVICE_ID
但它给出了这个错误:
* 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'
我试过这里提到的解决方案:React Native Reanimated error: Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'我做了 npm install -g jetifier
然后 npx jetify
然后在 gradle.propeties
我有 android.useAndroidX=真
和
android.enableJetifier=true
但是当我运行 react-native run-android --deviceId=MY_DEVICE_ID
最佳答案
尝试将其添加到 build.gradle
所有项目{ tasks.withType(Javadoc).all { enabled = false } ...
关于android - React Native 任务 ':react-native-reanimated:androidJavadoc' 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66213401/