我在改变后有这些问题



错误11:12错误:验证app.json中的字段时出现问题。了解更多信息:https://docs.expo.dev/workflow/configuration/•字段:android.config-不应具有其他属性"permissions"。错误11:12错误:验证app.json中的资产字段时出现问题。了解更多:https://docs.expo.dev/•字段:android.adaptiveIcon.foregroundImage-无法访问位于的文件"/assets/adaptive icon.png'.

错误------->

11:12 Error: Problem validating fields in app.json. 
Learn more: docs.expo.dev/workflow/configuration • Field:   android.config - should NOT 
have additional property 'permissions'. ERROR 11:12 Error: Problems validating asset fields in app.json. Learn more: docs.expo.dev • Field: android.adaptiveIcon.foregroundImage - cannot access file at './assets/adaptive-icon.png'.

这是我的代码:

{
"expo": {
"name": "cracash",
"slug": "cracash",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "com.cracash",
"config": {
"googleMapsApiKey": "hidden"
},
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
},
"package":"com.cracash", 
"config" :{
"googleMaps":{
"apiKey":"hidden"
},
"permissions":["ACCESS_COARSE_LOCATION","ACCESS_FINE_LOCATION","FOREGROUND_SERVICE"]
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}

AdaptiveIcon似乎有问题。Field: android.adaptiveIcon.foregroundImage - cannot access file at './assets/adaptive-icon.png'.Problems validating asset fields in app.json

总之,错误日志试图告诉您adaptive-icon.png有问题。请确保app.json的资产字段中的路径是正确的。日志会告诉你你需要知道的一切。

相关内容

  • 没有找到相关文章

最新更新