使用EAS Build构建我的应用程序时,Splash屏幕和图标未更新
我正在尝试使我在eact Antial用EAS-CLI中的应用程序中的.aab和.apk进行,但一切都很好,但是尽管我在app.json中更改版本,并更新图像目录,安装在手机上的应用程序使用Expo默认情况下的图标和飞溅屏幕。我想知道如何使它们更新,我已经证实了我的目录
app.json
{
"expo": {
"name": "xooc-numeros",
"slug": "xooc-numeros",
"version": "2.2.1",
"orientation": "portrait",
"icon": "./assets/imgs/icon1.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/imgs/splash1.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"packagerOpts": {
"sourceExts": [
"cjs"
]
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/imgs/adaptative-icon1.png",
"backgroundColor": "#000000"
},
"versionCode": 3
},
"web": {
"favicon": "./assets/imgs/adaptative-icon1.png"
},
"description": "Contar números en maya"
}
}
eas.json
{
"cli": {
"version": ">= 0.52.0"
},
"build": {
"development": {
"distribution": "internal",
"android": {
"gradleCommand": ":app:assembleDebug"
},
"ios": {
"buildConfiguration": "Debug"
}
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
I'm trying to make the .aab and .apk of my application in react native with eas-cli, everything is achieved very well, but despite the fact that I change versions in my app.json, and update the image directories, having the app installed on my phone uses the icons and splash screen that come by default with expo. I would like to know how to make them update, I already verified that my directories were fine
app.json
{
"expo": {
"name": "xooc-numeros",
"slug": "xooc-numeros",
"version": "2.2.1",
"orientation": "portrait",
"icon": "./assets/imgs/icon1.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/imgs/splash1.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"packagerOpts": {
"sourceExts": [
"cjs"
]
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/imgs/adaptative-icon1.png",
"backgroundColor": "#000000"
},
"versionCode": 3
},
"web": {
"favicon": "./assets/imgs/adaptative-icon1.png"
},
"description": "Contar números en maya"
}
}
eas.json
{
"cli": {
"version": ">= 0.52.0"
},
"build": {
"development": {
"distribution": "internal",
"android": {
"gradleCommand": ":app:assembleDebug"
},
"ios": {
"buildConfiguration": "Debug"
}
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
运行
Expo Prebuild -Clean
。对我来说,它给出了一些安装POD文件的错误。如果是这种情况,那么您需要手动解决此处的问题并在iOS/podfile中运行“ POD安装”。成功安装POD文件后,运行“ Expo Prebuild”。在此之后,通过./ gradlew assemblerelease
或eas build
进行构建,而新构建应具有更新的应用程序图标以及Splash屏幕。Run
expo prebuild --clean
. For me, it gave some errors installing pod files. If that's the case, then you need to manually resolve the issues there and run "pod install" in ios/PodFile. Once the pod files are successfully installed, run “expo prebuild”. After this take a build either through./gradlew assembleRelease
oreas build
and new build should have the updated app icon as well as splash screen.我也有类似的问题;就我而言,命令“ EAS构建”忽略了app.json上的config。它被忽略了,因为我的项目具有“ Android”文件夹,并且构建使用该文件夹中的配置。删除此目录后,解决了问题。
就我而言,目录“ Android”中没有任何自定义配置。在知道您是否在那里使用任何东西之前,请勿删除此文件夹。
I had a similar issue; in my case, the command "eas build" was ignoring the config on app.json. It was ignored because my project had the folder "android" and the build was using the configuration in this folder. After I deleted this directory, solved the problem.
In my case, I don't have any custom configuration in the directory "android". Don't remove this folder before knowing if there is anything that you are using there.