React Native expo, apk build error: sdkVersion is missing from app.json
React Native expo, apk build error: sdkVersion is missing from app.json
我收到此错误:"sdkVersion is missing from app.json" 在我的 React Native expo 应用程序中执行 exp build:android 之后。
这是我的 app.json
{
"expo": {
"name": "Parallel Desk",
"slug": "RN-ParallelDesk",
"platforms": ["ios", "android", "web"],
"version": "1.1.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"android": {
"package": "com.paralleldesk.paralleldesk",
"versionCode": 1,
"icon": "./assets/icon.png"
}
}
}
您是否尝试将 "sdkVersion" 添加到您的 app.json
我的 app.json 看起来像这样:
{
"expo": {
"name": "test-app",
"slug": "test-app",
"privacy": "public",
"sdkVersion": "36.0.0",
"platforms": [
"ios",
"android",
"web"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"description": "",
"androidStatusBar": {
"backgroundColor": "#B2D235"
}
}
}
我收到此错误:"sdkVersion is missing from app.json" 在我的 React Native expo 应用程序中执行 exp build:android 之后。 这是我的 app.json
{
"expo": {
"name": "Parallel Desk",
"slug": "RN-ParallelDesk",
"platforms": ["ios", "android", "web"],
"version": "1.1.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"android": {
"package": "com.paralleldesk.paralleldesk",
"versionCode": 1,
"icon": "./assets/icon.png"
}
}
}
您是否尝试将 "sdkVersion" 添加到您的 app.json
我的 app.json 看起来像这样:
{
"expo": {
"name": "test-app",
"slug": "test-app",
"privacy": "public",
"sdkVersion": "36.0.0",
"platforms": [
"ios",
"android",
"web"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"description": "",
"androidStatusBar": {
"backgroundColor": "#B2D235"
}
}
}