You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set up my first Capacitor project, but I'm facing an unusual issue. After running npx cap add android and npx cap sync, the top-level build.gradle and settings.gradle files are not being created in my project root. The android folder itself is created successfully.
My Operating System is: Windows 11
My Node version is: v22.18.0
My npm version is: 10.9.3
I have already tried the following troubleshooting steps without success:
Creating a brand new, clean project from scratch.
Running npx cap sync multiple times.
Completely uninstalling Node.js (including deleting npm cache folders), restarting my machine, and reinstalling the latest LTS version.
Running the commands from an administrator terminal.
The commands complete without showing any errors, but the root Gradle files are never created. I can't proceed with opening the project in Android Studio because of this.
Any ideas what could be causing this environmental issue? Thank you!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to set up my first Capacitor project, but I'm facing an unusual issue. After running
npx cap add android
andnpx cap sync
, the top-levelbuild.gradle
andsettings.gradle
files are not being created in my project root. Theandroid
folder itself is created successfully.I have already tried the following troubleshooting steps without success:
npx cap sync
multiple times.The commands complete without showing any errors, but the root Gradle files are never created. I can't proceed with opening the project in Android Studio because of this.
Any ideas what could be causing this environmental issue? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions