Anonymous
Ошибка компиляции скрипта: строка 18:?
Сообщение
Anonymous » 11 сен 2025, 11:18
Я новичок в разработке Android, и я хочу обновить API приложения Android с 33 до 35. Но когда я пытаюсь, есть некоторые проблемы, с которыми я столкнулся. Обновление версии Kotlin до 2.0.0. < /p>
Я пытался обновить все другие пакет, но результат остается таким же. < /p>
my build.gradle: < /p>
Код: Выделить всё
buildscript {
ext {
buildToolsVersion = "35"
minSdkVersion = 21
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "27.1.12297006"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
allprojects {
repositories {
// * Your other repositories here *
// * Add a new maven block after other repositories / blocks *
maven {
// expo-camera bundles a custom com.google.android:cameraview
url "$rootDir/../node_modules/expo-camera/android/maven"
}
}
}
< /code>
Тогда My Package.json < /p>
{
"name": "Running_Clock",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.19.4",
"@react-native-community/datetimepicker": "^7.6.1",
"@react-native-community/push-notification-ios": "^1.11.0",
"@react-navigation/bottom-tabs": "^6.5.11",
"@react-navigation/native": "^6.1.9",
"@react-navigation/stack": "^6.3.20",
"@reduxjs/toolkit": "^1.9.7",
"expo": "^51.0.0",
"expo-barcode-scanner": "^12.7.0",
"expo-camera": "^14.1.0",
"expo-crypto": "^12.6.0",
"expo-device": "^5.6.0",
"expo-modules-core": "^2.5.0",
"expo-secure-store": "^12.6.0",
"react": "^18.2.0",
"react-dom": "^19.1.0",
"react-native": "0.72.6",
"react-native-camera": "^4.2.1",
"react-native-circular-progress": "^1.3.9",
"react-native-config": "^1.5.7",
"react-native-device-info": "^14.0.4",
"react-native-geolocation-service": "^5.3.1",
"react-native-gesture-handler": "^2.13.4",
"react-native-get-random-values": "^1.9.0",
"react-native-maps": "^1.8.0",
"react-native-permissions": "^5.4.2",
"react-native-push-notification": "^8.1.1",
"react-native-qrcode-svg": "^6.2.0",
"react-native-safe-area-context": "^4.7.4",
"react-native-screens": "^3.27.0",
"react-native-svg": "^13.14.0",
"react-native-svg-transformer": "^1.5.1",
"react-native-vector-icons": "^10.3.0",
"react-native-version-check": "^3.4.7",
"react-redux": "^8.1.3",
"uuid": "^9.0.1"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/cli": "^20.0.1",
"@react-native-community/cli-platform-android": "^9.3.4",
"@react-native/eslint-config": "^0.72.2",
"@react-native/metro-config": "^0.72.11",
"@tsconfig/react-native": "^3.0.0",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.76.8",
"patch-package": "^8.0.0",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
},
"engines": {
"node": ">=16"
}
}
и моя версия Gradle:
distributionurl=
https://services.gradle.org/distribitio ... .1-all.zip
Ошибка, которую Im получает
* где: 'C: \ users \ desktop \ project \ rong_clock \ node_modules \ expo-modules-core \ expo-module-gradle-plugin \ build.gradle.kts' Line: 18 < /p>
Что пошло не так:
ошибка компиляции скрипта. Неразрешенная ссылка: расширения
Я также пытался редактировать build.gradle.kts, но это никуда не приносит меня.
Подробнее здесь:
https://stackoverflow.com/questions/797 ... extensions
1757578693
Anonymous
Я новичок в разработке Android, и я хочу обновить API приложения Android с 33 до 35. Но когда я пытаюсь, есть некоторые проблемы, с которыми я столкнулся. Обновление версии Kotlin до 2.0.0. < /p> Я пытался обновить все другие пакет, но результат остается таким же. < /p> my build.gradle: < /p> [code]buildscript { ext { buildToolsVersion = "35" minSdkVersion = 21 compileSdkVersion = 35 targetSdkVersion = 35 ndkVersion = "27.1.12297006" } repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") } } allprojects { repositories { // * Your other repositories here * // * Add a new maven block after other repositories / blocks * maven { // expo-camera bundles a custom com.google.android:cameraview url "$rootDir/../node_modules/expo-camera/android/maven" } } } < /code> Тогда My Package.json < /p> { "name": "Running_Clock", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "@react-native-async-storage/async-storage": "^1.19.4", "@react-native-community/datetimepicker": "^7.6.1", "@react-native-community/push-notification-ios": "^1.11.0", "@react-navigation/bottom-tabs": "^6.5.11", "@react-navigation/native": "^6.1.9", "@react-navigation/stack": "^6.3.20", "@reduxjs/toolkit": "^1.9.7", "expo": "^51.0.0", "expo-barcode-scanner": "^12.7.0", "expo-camera": "^14.1.0", "expo-crypto": "^12.6.0", "expo-device": "^5.6.0", "expo-modules-core": "^2.5.0", "expo-secure-store": "^12.6.0", "react": "^18.2.0", "react-dom": "^19.1.0", "react-native": "0.72.6", "react-native-camera": "^4.2.1", "react-native-circular-progress": "^1.3.9", "react-native-config": "^1.5.7", "react-native-device-info": "^14.0.4", "react-native-geolocation-service": "^5.3.1", "react-native-gesture-handler": "^2.13.4", "react-native-get-random-values": "^1.9.0", "react-native-maps": "^1.8.0", "react-native-permissions": "^5.4.2", "react-native-push-notification": "^8.1.1", "react-native-qrcode-svg": "^6.2.0", "react-native-safe-area-context": "^4.7.4", "react-native-screens": "^3.27.0", "react-native-svg": "^13.14.0", "react-native-svg-transformer": "^1.5.1", "react-native-vector-icons": "^10.3.0", "react-native-version-check": "^3.4.7", "react-redux": "^8.1.3", "uuid": "^9.0.1" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native-community/cli": "^20.0.1", "@react-native-community/cli-platform-android": "^9.3.4", "@react-native/eslint-config": "^0.72.2", "@react-native/metro-config": "^0.72.11", "@tsconfig/react-native": "^3.0.0", "@types/react": "^18.0.24", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.2.1", "eslint": "^8.19.0", "jest": "^29.2.1", "metro-react-native-babel-preset": "0.76.8", "patch-package": "^8.0.0", "prettier": "^2.4.1", "react-test-renderer": "18.2.0", "typescript": "4.8.4" }, "engines": { "node": ">=16" } } [/code] и моя версия Gradle: distributionurl=https://services.gradle.org/distribitions/gradle-8.0.1-all.zip Ошибка, которую Im получает * где: 'C: \ users \ desktop \ project \ rong_clock \ node_modules \ expo-modules-core \ expo-module-gradle-plugin \ build.gradle.kts' Line: 18 < /p> [list] [*] Что пошло не так: ошибка компиляции скрипта. Неразрешенная ссылка: расширения [/list] Я также пытался редактировать build.gradle.kts, но это никуда не приносит меня. Подробнее здесь: [url]https://stackoverflow.com/questions/79750953/script-compilation-error-line-18-extensions-unresolved-reference-extensions[/url]