我正在尝试在物理设备上运行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' I,我做了npm install -g jetifier,然后是npx jetify,然后在gradle.propeties中我使用了android.useAndroidX=true和android.enableJetifier=true
但是当我运行react-native run-android --deviceId=MY_DEVICE_ID时,它仍然给出相同的错误
发布于 2021-03-17 06:21:54
尝试将此内容添加到build.gradle
所有项目{ tasks.withType(Javadoc).all { enabled = false } ... }
https://stackoverflow.com/questions/66213401
复制相似问题