【问题标题】:Execution Failed for task :app:compileDebugJavaWithJavac in React NativeReact Native 中的任务:app:compileDebugJavaWithJavac 执行失败
【发布时间】:2022-11-08 16:31:55
【问题描述】:
i install react navigation version 6 and i want to use drawer navigation in project 
for that install all packages of drawer navigation and make changes  in
babel.congile file  =  plugins: ["react-native-reanimated/plugin"],


Second change in MainActivity.java file 
 

“导入android.os.Bundle;”

“导入 com.facebook.react.bridge.JSIModulePackage” “导入 com.swmansion.reanimated.ReanimatedJSIModulePackage”

  @Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(null);
}
@Override
protected JSIModulePackage getJSIModulePackage() { 
      return new ReanimatedJSIModulePackage(); 
    }
}
also i changes the andrion app  buid.gradlew 

project.ext.react = [
    enableHermes: true,  // clean and rebuild if changing
]

当删除所有这些更改时,Project buid 成功并运行

when i use the JS Module Packages then i face the above error
so My React native version 0.67
so any body can helper 

【问题讨论】:

    标签: react-native


    【解决方案1】:

    嗨@waqas,我认为您正在使用最新版本的 react native reanimated。

    请尝试将反应本机复活版本降级为 "react-native-reanimated": "^1.13.2",

    可能对此有所帮助;

    【讨论】:

      【解决方案2】:

      请参考这个 GitHub 线程 https://github.com/facebook/react-native/issues/35210。它对我有用!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-02-27
        • 2019-02-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-12-06
        相关资源
        最近更新 更多