expo-cli версия: 6.3.10
Я поделюсь как мои eas.json и app.json файлы ниже:
preemprong> json. PrettyPrint-Override ">
Код: Выделить всё
{
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
"autoIncrement": true,
"android": {
"buildType": "app-bundle"
}
}
},
"submit": {
"production": {}
},
"cli": {
"appVersionSource": "remote"
}
}
{
"expo": {
"name": "NAME_OF_APP",
"slug": "SLUG",
"version": "1.0.2",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"newArchEnabled": true,
"ios": {
"supportsTablet": true,
"config": {
"usesNonExemptEncryption": false
},
"infoPlist": {
"NSLocationWhenInUseUsageDescription": "...",
"ITSAppUsesNonExemptEncryption": "NO"
},
"bundleIdentifier": "com.geojrk.NAME_OF_PROJ"
},
"android": {
"permissions": [
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION"
],
"adaptiveIcon": {
"foregroundImage": "./assets/images/icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.geojrk.FABFG",
"compileSdkVersion": 35,
"targetSdkVersion": 35
},
"web": {
"bundler": "metro",
"output": "static",
"favicon": "./assets/images/icon.png"
},
"plugins": [
"expo-router",
[
"expo-splash-screen",
{
"image": "./assets/images/splash-icon.png",
"imageWidth": 200,
"resizeMode": "contain",
"backgroundColor": "#ffffff"
}
]
],
"experiments": {
"typedRoutes": true
},
"extra": {
"router": {
"origin": false
},
"eas": {
"projectId": "KEY"
}
},
"runtimeVersion": "1.0.0",
"updates": {
"url": "https://u.expo.dev/KEY"
}
}
}
< /code>
Я попытался запустить приложение по локальной сборке, но оно не будет строить должным образом: < /p>
[RUN_GRADLEW] FAILURE:
[RUN_GRADLEW] Build failed with an exception.
[RUN_GRADLEW] * Where:
[RUN_GRADLEW] Build file '/tmp/harri/eas-build-local-nodejs/72301ad0-ffcc-4470-b60d-ac1297f260a5/build/android/build.gradle' line: 24
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] A problem occurred evaluating root project 'Albany Grave Finder'.
[RUN_GRADLEW] > Failed to apply plugin 'com.facebook.react.rootproject'.
[RUN_GRADLEW] > A problem occurred configuring project ':app'.
01ad0-ffcc-4470-b60d-ac1297f260a5/build/android/local.properties'.ocation with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/tmp/harri/eas-build-local-nodejs/723
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug
[RUN_GRADLEW] option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] BUILD FAILED in 25s
[RUN_GRADLEW] 23 actionable tasks: 23 executed
[RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
Build failed
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
FpdEZsYWciOmZhbHNlLCJydW5Gcm9tQ0kiOmZhbHNlLCJkZXZlbG9wbWVudENsaWVudCI6ZmFsc2UsInJlcXVpcmVkUGFja2FnZU1hbmFnZXIiOiJucG0iLCJzaW11bGF0b3IiOmZhbHNlfX0= exited with non-zero code: 1HkiOnRydWUsInVzZXJuYW1lIjoiZ2VvanJrIiwicnVuV2l0aE5vV2
Error: build command failed.
< /code>
Я также пытался явно указать целевую версию SDK в приложении, но она тоже не сработает. Я даже сделал новый репо и все преобразовал туда, но это тоже не сработало.
Подробнее здесь: https://stackoverflow.com/questions/797 ... on-to-35-i