Closed shen020598 closed 2 months ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
Cannot reproduce your issue:
https://github.com/user-attachments/assets/20a00d0b-d789-49e8-991b-0ac45fe4f320
Issue identified, we should use latest version of android studio when building project. Problem resolve when doing clean install of latest android studio.
Previous Android Studio Version : Jellyfish | 2023.3.1 Working Version (as of 0.75.1) : Koala | 2024.1.1
the reference below shown supported agp version by android studio reference : https://developer.android.com/studio/releases
@cortinico thank you for your kind help ^_^
@cortinico thank you for your kind help ^_^
Happy to support, I'm glad you found the solution 🙏
I get the same issue, I'm running Koala and have only started using React as of three days ago.
Had no issues setting it up and starting my project, was able to build and everything.
Had an issue building today, tried to start a new project and now I'm stuck here, I've cleared the .gradle folder, re-installed npm.
I've even tried a fresh install of Android Studio.. no luck, I'm assuming that it's an environment issue but I can't find what the issue is.
FAILURE: Build failed with an exception.
Where: Settings file 'D:\build\build_MobileApp\android\settings.gradle' line: 2
What went wrong: Error resolving plugin [id: 'com.facebook.react.settings']
java.io.UncheckedIOException: Could not move temporary workspace (D:\build\build_MobileApp\android.gradle\8.8\dependencies-accessors\569c8b261a8a714d7731d5f568e0e5c05babae10-4d31b61b-aad2-47b3-93e6-cd06f46b2e27) to immutable location (D:\build\build_MobileApp\android.gradle\8.8\dependencies-accessors\569c8b261a8a714d7731d5f568e0e5c05babae10)
edit Resolved after:
same issue
same issue. @tommmoe If i manually install nodejs from chocolatey, isn't npm folder automatically created? If you can elaborate how you resolved it? Please, Thank you.
same issue on clean install
edit: issue is fixed after manually deleting the android/build folder
same issue. @tommmoe If i manually install nodejs from chocolatey, isn't npm folder automatically created? If you can elaborate how you resolved it? Please, Thank you.
I didn't use chocolatey, I just used the nodejs installer for Windows, it installed but when I went to run npm commands, it complained about the npm folder not being accessible, once that was created the issue disappeared and everything worked correctly.
Of course I cleared my .gradle folder as well.
Cannot reproduce your issue:
Screen.Recording.2024-08-16.at.11.04.14.mov
Is this on Windows, as per the OP? Im on Windows/Koala and get the same as the OP, when floowing your commands on a clean install
Description
After create a new project
npx @react-native-community/cli@latest init AwesomeProject
as documented inIt appears the following error when trying to run on android : Error resolving plugin [id: 'com.facebook.react.settings']
Steps to reproduce
React Native Version
0.75.1
Affected Platforms
Runtime - Android, Build - Windows
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/react-native-community/reproducer-react-native
Screenshots and Videos
No response