facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.19k stars 24.22k forks source link

* Where: Settings file 'C:\Users\Debasis\Desktop\vipani-app\android\settings.gradle' line: 13 * What went wrong: Error resolving plugin [id: 'com.facebook.react.settings'] #46244

Closed Debasis08 closed 3 days ago

Debasis08 commented 2 weeks ago

Description

When I run the command in the android folder root ./gradlew assembleRelease for the process to generate the apk file from the react native app where I used expo, this error is coming.

First time, I developed a react-native project using Expo and other libraries and I'm facing to generate the apk file out of it.

Any suggestions for generating apk file out of my expo react native project would also be very helpful

Steps to reproduce

  1. Initiated the app using: expo init .
  2. Then after a while, used expo eject, for bringing android folder cause it was unavailable at first cause of using expo.
  3. Used this command to initiate exporting apk: keytool -genkey -v -keystore C:\Users\Debasis\my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
  4. Then used ./gradlew assembleRelease.

React Native Version

0.74.5

Affected Platforms

Not linked to any particular as it is about getting APK file.

Output of npx react-native info

info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.22631
  CPU: (8) x64 Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz
  Memory: 598.68 MB / 7.84 GB
Binaries:
  Node:
    version: 18.20.4
    path: C:\Program Files\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.7.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-241.18034.62.2411.12169540
  Visual Studio: Not Found
Languages:
  Java: 22.0.2
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.75.2 is now available (your project is running on v0.74.5).

Stacktrace or Logs

FAILURE: Build failed with an exception.

* Where:
Settings file 'C:\Users\Debasis\Desktop\vipani-app\android\settings.gradle' line: 13

* What went wrong:
Error resolving plugin [id: 'com.facebook.react.settings']
> java.io.UncheckedIOException: Could not move temporary workspace (C:\Users\Debasis\Desktop\vipani-app\android\.gradle\8.8\dependencies-accessors\423f0288fa7dffe069445ffa4b72952b4629a15a-6251eb4e-fb26-4499-826a-4864ad535012) to immutable location (C:\Users\Debasis\Desktop\vipani-app\android\.gradle\8.8\dependencies-accessors\423f0288fa7dffe069445ffa4b72952b4629a15a)

* 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 2s

Reproducer

https://github.com/Debasis08/Chat-system-vipani

Screenshots and Videos

No response

harshmdr-devslane commented 1 week ago

same issue.

react-native-bot commented 3 days ago
:warning: Issue is Related to Expo
:information_source: It looks like your issue is related to Expo and not React Native core. Please open your issue in Expo's repository. If you are able to create a repro that showcases that this issue is also happening in React Native vanilla, we will be happy to re-open.