Я столкнулся с проблемой сборки после обновления моего проекта React Native с версии 0.74.3 до 0.75.0. Проблема возникает только на Android; на iOS все работает нормально. Всякий раз, когда я пытаюсь запустить любую команду, связанную с Android (например, ./gradlew clean), я получаю следующую ошибку:
FAILURE: Build failed with an exception.
* Where:
Script '/Users/mehmetsozd/Desktop/almiratur/almira_app/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 418
* What went wrong:
Could not compile script '/Users/mehmetsozd/Desktop/almiratur/almira_app/node_modules/@react-native-community/cli-platform-android/native_modules.gradle'.
> startup failed:
script '/Users/mehmetsozd/Desktop/almiratur/almira_app/node_modules/@react-native-community/cli-platform-android/native_modules.gradle': 418: [Static type checking] - No such property: inputStream for class: java.lang.Process
@ line 418, column 31.
def output = process.inputStream.text.trim()
^
script '/Users/mehmetsozd/Desktop/almiratur/almira_app/node_modules/@react-native-community/cli-platform-android/native_modules.gradle': 418: [Static type checking] - No such property: text for class: java.lang.Object
@ line 418, column 43.
f output = process.inputStream.text.trim
^
script '/Users/mehmetsozd/Desktop/almiratur/almira_app/node_modules/@react-native-community/cli-platform-android/native_modules.gradle': 418: [Static type checking] - Cannot find matching method java.lang.Object#trim(). Please check if the declared type is correct and if the method exists.
@ line 418, column 24.
def output = process.inputStream.text.trim()
^
3 errors
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUİLD FAILED in 332ms
Кто-нибудь сталкивался с подобной проблемой после обновления React Native? Что может быть причиной этого и как это решить?
Будем благодарны за любую помощь. Спасибо!
Я столкнулся с проблемой сборки после обновления моего проекта React Native с версии 0.74.3 до 0.75.0. Проблема возникает только на Android; на iOS все работает нормально. Всякий раз, когда я пытаюсь запустить любую команду, связанную с Android (например, ./gradlew clean), я получаю следующую ошибку: [code]FAILURE: Build failed with an exception.
* What went wrong: Could not compile script '/Users/mehmetsozd/Desktop/almiratur/almira_app/node_modules/@react-native-community/cli-platform-android/native_modules.gradle'. > startup failed: script '/Users/mehmetsozd/Desktop/almiratur/almira_app/node_modules/@react-native-community/cli-platform-android/native_modules.gradle': 418: [Static type checking] - No such property: inputStream for class: java.lang.Process @ line 418, column 31. def output = process.inputStream.text.trim() ^
script '/Users/mehmetsozd/Desktop/almiratur/almira_app/node_modules/@react-native-community/cli-platform-android/native_modules.gradle': 418: [Static type checking] - No such property: text for class: java.lang.Object @ line 418, column 43. f output = process.inputStream.text.trim ^
script '/Users/mehmetsozd/Desktop/almiratur/almira_app/node_modules/@react-native-community/cli-platform-android/native_modules.gradle': 418: [Static type checking] - Cannot find matching method java.lang.Object#trim(). Please check if the declared type is correct and if the method exists. @ line 418, column 24. def output = process.inputStream.text.trim() ^
3 errors
* Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org.
BUİLD FAILED in 332ms
[/code] Кто-нибудь сталкивался с подобной проблемой после обновления React Native? Что может быть причиной этого и как это решить? Будем благодарны за любую помощь. Спасибо!