Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with an exception #44356

Closed
Vyacheslav1557 opened this issue May 1, 2024 · 2 comments
Closed

Build failed with an exception #44356

Vyacheslav1557 opened this issue May 1, 2024 · 2 comments
Labels
Needs: Triage 🔍 Resolution: Answered When the issue is resolved with a simple answer

Comments

@Vyacheslav1557
Copy link

Vyacheslav1557 commented May 1, 2024

yarn react-native run-windows
yarn run v1.22.19
warning ..\..\package.json: No license field
$ C:\Users\Roma\WebstormProjects\MyApp2\node_modules\.bin\react-native run-windows
(node:3292) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative inste
ad.
(Use `node --trace-deprecation ...` to show where the warning was created)
 Версия MSBuild 17.9.8+b34f75857 для .NET Framework
Сборка начата 01.05.2024 18:21:50.

Проект "C:\Users\Roma\WebstormProjects\MyApp2\windows\MyApp2.sln" в узле 1 (целевые объекты Restore).
ValidateSolutionConfiguration:
  Создание конфигурации решения "Debug|x64".
_GetAllRestoreProjectPathItems:
  Определение проектов для восстановления...
Restore:
  При проверке цепочки сертификатов X.509 будет использоваться хранилище доверия по умолчанию, выбранное .NET для под
  писывания кода.
  При проверке цепочки сертификатов X.509 будет использоваться хранилище доверия по умолчанию, выбранное .NET для уст 
  ановки метки времени.
Сборка проекта "C:\Users\Roma\WebstormProjects\MyApp2\windows\MyApp2.sln" завершена (целевые объекты Restore).


Сборка успешно завершена.
    Предупреждений: 0
    Ошибок: 0

Прошло времени 00:00:00.89
√ Restoring NuGet packages 
 √ Auto-linking...
Success: No auto-linking changes necessary. (12ms)
 √ Auto-linking...
Success: No auto-linking changes necessary. (12ms)
 √ Found Solution: C:\Users\Roma\WebstormProjects\MyApp2\windows\MyApp2.sln
 i Build configuration: Debug
 i Build platform: x64
 × Building Solution: (компиляция исходного файла "pch.cpp")...
 × Build failed with message C:\Users\Roma\WebstormProjects\MyApp2\windows\MyApp2\pch.h(24,10): error C1083: �� ������� ������� ���� ���������: winrt/Microsoft.ReactNative.Composition.h: No such file or directory, [C:\Users\Roma\WebstormProjects\
MyApp2\windows\MyApp2\MyApp2.vcxproj]. Check your build configuration.
 × It is possible your installation is missing required software dependencies. Dependencies can be automatically installed by running C:\Users\Roma\WebstormProjects\MyApp2\node_modules\react-native-windows\scripts\rnw-dependencies.ps1 from an ele
vated PowerShell prompt.
For more information, go to http://aka.ms/rnw-deps
Command failed. Re-run the command with --logging for more information.
error Command failed with exit code 2302.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Copy link

github-actions bot commented May 1, 2024

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@github-actions github-actions bot added the Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. label May 1, 2024
@cortinico
Copy link
Contributor

This is an issue with Gradle/Android and not with React Native.
Please remove this folder:

C:\Users\Roma\WebstormProjects\myapp\android\.gradle

and try again

@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Resolution: Answered When the issue is resolved with a simple answer
Projects
None yet
Development

No branches or pull requests

2 participants