Проблема со сборкой React Native AndroidAndroid

Форум для тех, кто программирует под Android
Ответить
Гость
 Проблема со сборкой React Native Android

Сообщение Гость »

Я столкнулся с проблемой сборки при запуске «npx response-native run-android» в своих Windows.
Я застрял в этом. Пожалуйста, подскажите мне, что мне нужно сделать.
Я попробовал следующие варианты
  • удаление .gradle и пересоздание
    удаление узловых модулей и выполнение npm i
  • удаление androidResources
w: Detected multiple Kotlin daemon sessions at build\kotlin\sessions

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide ... e_warnings
74 actionable tasks: 45 executed, 29 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> java.io.FileNotFoundException: C:\Users\HP\Desktop\projects\MyEventors\android\app\build\intermediates\incremental\packageDebug\tmp\debug\zip-cache\androidResources (Access is denied)

* 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

BUILD FAILED in 55s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> java.io.FileNotFoundException: C:\Users\HP\Desktop\projects\MyEventors\android\app\build\intermediates\incremental\packageDebug\tmp\debug\zip-cache\androidResources (Access is denied)

* 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

BUILD FAILED in 55s

at makeError (C:\Users\HP\Desktop\projects\MyEventors\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at C:\Users\HP\Desktop\projects\MyEventors\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\Users\HP\Desktop\projects\MyEventors\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (C:\Users\HP\Desktop\projects\MyEventors\node_modules\@react-native-community\cli\build\index.js:142:9)
info Run CLI with --verbose flag for more details.```



Подробнее здесь: https://stackoverflow.com/questions/750 ... uild-issue
Ответить

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

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

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

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

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