Когда я запускаю свой нативный проект React, он дает вышеуказанную ошибку
здесь я поделился подробным описанием ошибки < /p>
Задача: react-inative-handler: compiledebugkotlin Не удалось e: Файл: ///users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngesturebutmanger. «ViewManagerWithGeneratedInterface», который представляет собой супертип
rngesturehandlerbuttonviewmanager '. Проверьте свой модуль ClassPath
для отсутствия или противоречивых зависимостей. e:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/comemansion/gesturehandler/react/rngestureandlerbuttonbrewmang. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngesturehandlerbuttonviewmanager '. Проверьте свой модуль ClassPath
для отсутствия или противоречивых зависимостей. E:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngesturehandlerbuttonw. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngesturehandlerbuttonviewmanager '. Проверьте свой модуль ClassPath
для отсутствия или противоречивых зависимостей. E:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngestureandlerrookmanager. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngestureHandlerRootViewManager '. Проверьте свой модуль ClassPath для
отсутствующих или противоречивых зависимостей. E:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngestureandler. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngestureHandlerRootViewManager '. Проверьте свой модуль ClassPath для
отсутствующих или противоречивых зависимостей. E:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngesturehandlerrookmanager. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngestureHandlerRootViewManager '. Проверьте свой модуль ClassPath для
отсутствующих или противоречивых зависимостей. [Инкубация] Отчет о проблемах
Доступен по адресу:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/android/build/reports/problems/problems-report.htmlbr/>
>
br/>
> "react": "18.3.1",
"react-native": "0.75.4",
"react-native-gesture-handler": "^2.27.1",
< /code>
build.gradle
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 23
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.25"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.4")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}
apply plugin: "com.facebook.react.rootproject"
App/build.gradle
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
react {
autolinkLibrariesWithApp()
}
def enableProguardInReleaseBuilds = false
def jscFlavor = 'org.webkit:android-jsc:+'
android {
ndkVersion rootProject.ext.ndkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdkVersion rootProject.ext.compileSdkVersion
namespace "com.protechdnauser"
defaultConfig {
applicationId "com.protechdnauser"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
}
dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
implementation "androidx.core:core-splashscreen:1.0.0-beta01"
if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
implementation jscFlavor
}
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... n-compilat
Вызвано: org.jetbrains.kotlin.gradle.tasks.compilationErrorexception: ошибка компиляции. Смотрите журнал для более подро ⇐ Android
Форум для тех, кто программирует под Android
1754272742
Anonymous
Когда я запускаю свой нативный проект React, он дает вышеуказанную ошибку
здесь я поделился подробным описанием ошибки < /p>
Задача: react-inative-handler: compiledebugkotlin Не удалось e: Файл: ///users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngesturebutmanger. «ViewManagerWithGeneratedInterface», который представляет собой супертип
rngesturehandlerbuttonviewmanager '. Проверьте свой модуль ClassPath
для отсутствия или противоречивых зависимостей. e:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/comemansion/gesturehandler/react/rngestureandlerbuttonbrewmang. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngesturehandlerbuttonviewmanager '. Проверьте свой модуль ClassPath
для отсутствия или противоречивых зависимостей. E:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngesturehandlerbuttonw. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngesturehandlerbuttonviewmanager '. Проверьте свой модуль ClassPath
для отсутствия или противоречивых зависимостей. E:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngestureandlerrookmanager. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngestureHandlerRootViewManager '. Проверьте свой модуль ClassPath для
отсутствующих или противоречивых зависимостей. E:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngestureandler. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngestureHandlerRootViewManager '. Проверьте свой модуль ClassPath для
отсутствующих или противоречивых зависимостей. E:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/rngesturehandlerrookmanager. /> Не может получить доступ к 'viewManagerWithGeneratedInterface', который представляет собой супертип
rngestureHandlerRootViewManager '. Проверьте свой модуль ClassPath для
отсутствующих или противоречивых зависимостей. [Инкубация] Отчет о проблемах
Доступен по адресу:
file://users/apple/documents/dhvani/reactnative/protech_dna_user_app/android/build/reports/problems/problems-report.htmlbr/>
>
br/>
> "react": "18.3.1",
"react-native": "0.75.4",
"react-native-gesture-handler": "^2.27.1",
< /code>
build.gradle
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 23
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.25"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.4")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}
apply plugin: "com.facebook.react.rootproject"
App/build.gradle
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
react {
autolinkLibrariesWithApp()
}
def enableProguardInReleaseBuilds = false
def jscFlavor = 'org.webkit:android-jsc:+'
android {
ndkVersion rootProject.ext.ndkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdkVersion rootProject.ext.compileSdkVersion
namespace "com.protechdnauser"
defaultConfig {
applicationId "com.protechdnauser"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
}
dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
implementation "androidx.core:core-splashscreen:1.0.0-beta01"
if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
implementation jscFlavor
}
}
Подробнее здесь: [url]https://stackoverflow.com/questions/79697103/caused-by-org-jetbrains-kotlin-gradle-tasks-compilationerrorexception-compilat[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия