突然之间,我不能再构建react原生应用了。问题标题中提到的任务失败,并显示以下消息:
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.
不久前,我已经开始使用react本地的世博会,所以我有点迷失了。
当尝试使用以下命令构建应用程序时:
eas build --profile development --platform android
当到达安装依赖项部分时,生成失败。
Running "npm install" in the root dir of your repository 2[stderr] npm ERR! code ERESOLVE3[stderr] npm ERR!4[stderr] ERESOLVE could not resolve5[stderr] npm ERR! 6[stderr]
我正在努力建立一个环境,谁能看看这些错误,让我知道它们是什么意思? 谢谢你,我比你想象的更感激。 npm ERR! peer dep missing: react@>=17.0.1, required by react-native-web@0.17.1
npm ERR! peer dep missing: react-dom@>=17.0.1, required by react-native-web@0.17.1
npm ERR! peer dep missing: react-native-gesture-handler@>= 1.5.0, required by r
在我弹出的用于android的React Native应用程序中,我突然得到了这个运行时错误
java.lang.NoClassDefFoundError: android.support.v4.app.FragmentActivity
at com.facebook.react.modules.dialog.DialogModule.getFragmentManagerHelper(DialogModule.java:271)
at com.facebook.react.modules.dialog.DialogModu
我正在尝试为react原生进行设置。但是每当我更新文件时,它都会给出m错误
enoent ENOENT: no such file or directory, open 'React Native/package.json'
npm WARN react-native@0.26.3 requires a peer of react@15.0.2 but none was installed.
npm WARN React Native No description
npm WARN React Native No repository field.
npm WARN R
我目前正在开发一个使用expoSdk的反应型本机应用程序,它应该运行在网络、ios和安卓系统上。到目前为止,最具挑战性的部分是设置导航,我终于做到了。现在,我在我的项目中添加了扩容,但是每当我在任何移动设备上运行它时,这个项目就会停止工作,但是它在网络上工作得很好。我收到的错误是
NetInfo has been removed from React Native
经过大量的尝试和错误之后,我发现这个错误来自aws放大,因为它似乎仍然运行在reac-native-community/netinfo中。只有当我从放大中导入一些东西时,这个错误才会发生。我在里面发现这个
node_modules\