gpt4 book ai didi

android - react - 错误 : package expo. modules.updates 不存在

转载 作者:行者123 更新时间:2023-12-04 23:59:42 26 4
gpt4 key购买 nike

我从我的 React 项目中弹出了 expo。但是当我试图在 android 上运行它时,我收到一条错误消息

error: package expo.modules.updates does not exist

它实际上来自于我的 android 文件夹中的 MainApplication.java

import expo.modules.constants.ConstantsPackage;
import expo.modules.permissions.PermissionsPackage;
import expo.modules.filesystem.FileSystemPackage;
import expo.modules.updates.UpdatesController;

我认为世博会并没有完全从我的项目中移除。我该如何解决这个问题?谢谢。

编辑:这是我的 package.json 也许它可以提供帮助。

{
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start --web"
},
"dependencies": {
"@babel/runtime": "^7.10.2",
"@react-native-community/cli-platform-android": "^4.9.0",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/material-top-tabs": "^5.1.10",
"axios": "^0.19.2",
"moment": "^2.26.0",
"native-base": "^2.13.12",
"prop-types": "^15.7.2",
"react": "~16.9.0",
"react-dom": "16.11.0",
"react-native": "~0.61.5",
"react-native-cardview": "^2.0.5",
"react-native-elements": "^2.0.0",
"react-native-floating-labels": "^1.1.9",
"react-native-gesture-handler": "^1.6.1",
"react-native-gifted-chat": "^0.16.1",
"react-native-hide-show-password-input": "^1.1.0",
"react-native-image-header-scroll-view": "^0.10.3",
"react-native-material-menu": "^1.1.3",
"react-native-reanimated": "^1.8.0",
"react-native-safe-area-context": "0.7.3",
"react-native-screens": "^2.7.0",
"react-native-tab-view": "^2.14.0",
"react-native-unimodules": "~0.9.0",
"react-native-vector-icons": "^6.6.0",
"react-native-web": "~0.11.7",
"react-navigation": "^4.3.9",
"react-navigation-stack": "^2.3.13",
"react-navigation-tabs": "^2.8.12",
"realm": "^5.0.4"
},
"private": true,
"devDependencies": {
"@babel/core": "^7.9.6",
"babel-jest": "~25.2.6",
"jest": "~25.2.6",
"react-test-renderer": "~16.9.0"
}
}

最佳答案

尝试在您的 android 项目中搜索 expo.modules.*

我遇到了类似的问题,发现有一个包含这些引用的 BasePackageList.java 文件。删除文件解决了它。

您也可以查看此链接 of a git commit removing expo from a RN project

关于android - react - 错误 : package expo. modules.updates 不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62186092/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com