react-native-community / react-native-template-typescript

👾 Clean and minimalist React Native template for a quick start with TypeScript.
https://www.npmjs.com/package/react-native-template-typescript
MIT License
1.86k stars 398 forks source link

Android app will not run after default init #318

Closed rplotkin closed 1 year ago

rplotkin commented 1 year ago

Expected results

Android app should run

Observed results

Run npx react-native init AwesomeTSProject --template react-native-template-typescript Run npx react-native run-android

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Multiple build operations failed.
      java.nio.file.NoSuchFileException: .gradle/caches/transforms-3/3302d76293b56b0e47a80628605fe992/results.bin

Logs

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Multiple build operations failed.
      java.nio.file.NoSuchFileException: .gradle/caches/transforms-3/3302d76293b56b0e47a80628605fe992/results.bin

Steps to reproduce

  1. Run npx react-native init AwesomeTSProject --template react-native-template-typescript
  2. Run npx react-native run-android
rplotkin commented 1 year ago

Nope, this was corrrupted .gradle at the root. Not an issue.