【问题标题】:Execution failed for task ':react-native-reanimated:androidJavadoc' in React NativeReact Native 中的任务 ':react-native-reanimated:androidJavadoc' 执行失败
【发布时间】: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=trueandroid.enableJetifier=true

但是当我运行react-native run-android --deviceId=MY_DEVICE_ID时它仍然给出同样的错误

【问题讨论】:

    标签: android reactjs react-native android-studio


    【解决方案1】:

    尝试将其添加到 build.gradle

    所有项目{ tasks.withType(Javadoc).all { enabled = false } ... }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-08
      • 2021-07-09
      • 2020-08-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多