【发布时间】:2021-02-15 18:25:28
【问题描述】:
我正在尝试在物理设备上运行 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=true 和
android.enableJetifier=true
但是当我运行react-native run-android --deviceId=MY_DEVICE_ID时它仍然给出同样的错误
【问题讨论】:
标签: android reactjs react-native android-studio