Запуск выставки: версию Android NDK нельзя изменитьAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Запуск выставки: версию Android NDK нельзя изменить

Сообщение Anonymous »

У меня возникла проблема с Expo, из-за которой постоянно появляется следующее сообщение об ошибке:

Код: Выделить всё

>  Configure project :expo-modules-core
C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
WARNING:C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
C/C++: Platform version '33' is beyond '31', the maximum API level supported by this NDK.
Я уже загрузил новые версии SDK и NDK, но почему-то в моем проекте Expo возникает точно такая же ошибка.
Сгенерированная папка Android и файл build.gradle содержат NDK

Код: Выделить всё

    // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
Я пробовал то же самое даже в новом проекте, и я получил ту же проблему, если попытался установить целевой уровень API на 33 (который сейчас требуется Google)
Содержимое App.json:

Код: Выделить всё

{
"expo": {
"name": "experiment01",
"slug": "experiment01",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"infoPlist": {
"CFBundleAllowMixedLocalizations": true,
"ExpoLocalization_supportsRTL": true
},
"bundleIdentifier": "com.anonymous.experiment01"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.anonymous.experiment01"
},
"web": {
"favicon": "./assets/en/favicon.png"
},
"plugins": [
[
"expo-build-properties",
{
"android": {
"minSdkVersion": 33,
"compileSdkVersion": 33,
"targetSdkVersion": 33,
"buildToolsVersion": "33"
},
"ios": {
"deploymentTarget": "13.0",
"useFrameworks": "static"
}
}
],
"expo-localization"
],
"extra": {
"supportsRTL": true
},
"locales": {
"ja": "./i18n/ja/ja.json",
"fi": "./i18n/fi/fi.json",
"en": "./i18n/en/en.json",
"hu": "./i18n/hu/hu.json"
}
}
}
И я использую следующие зависимости:

Код: Выделить всё

  "dependencies": {
"@react-navigation/native": "^6.1.6",
"@react-navigation/native-stack": "^6.9.12",
"@react-navigation/stack": "^6.3.16",
"@types/react": "~18.2.14",
"expo": "^49.0.8",
"expo-build-properties": "~0.8.3",
"expo-localization": "~14.3.0",
"expo-status-bar": "~1.6.0",
"i18n-js": "^4.2.3",
"react": "18.2.0",
"react-native": "0.72.4",
"react-native-elements": "^3.4.3",
"react-native-gesture-handler": "~2.12.0",
"react-navigation": "^4.4.4",
"typescript":  "^5.1.3",
"react-native-screens": "~3.22.0",
"react-native-safe-area-context": "4.6.3",
"expo-splash-screen": "~0.20.5"
},
"devDependencies": {
"@babel/core": "^7.20.0"
},
Я использую управляемый рабочий процесс и хотел бы, чтобы он оставался таким. Любая помощь приветствуется.
РЕДАКТИРОВАТЬ*
ЕСЛИ я удалю старую версию NDK из студии Android и оставлю только новые, во время запуска выставки npx: android ndk загружается автоматически....

Подробнее здесь: https://stackoverflow.com/questions/771 ... be-changed
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»