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
[warn] The hideLogs configuration option has been deprecated. Please update to use loggingBehavior instead.
✔ Adding native android project in android in 34.15ms
⠇ add Error running gradle sync
FAILURE: Build failed with an exception.
* What went wrong:
Executing Gradle tasks as part of an undefined build is not supported. Make sure that you are executing Gradle from a folder within your Gradle project. Your project should have a 'settings.gradle(.kts)' file in the root folder.
* 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 534ms
Unable to infer default Android SDK settings. This is fine, just run npx cap open android and import and sync gradle manually
✔ Syncing Gradle in 1.45s
✔ add in 1.48s
✔ Copying web assets from build to android/app/src/main/assets/public in 60.16ms
✔ Creating capacitor.config.json in android/app/src/main/assets in 486.84μp
✔ copy android in 87.74ms
✔ Updating Android plugins in 8.37ms
[info] Found 1 Capacitor plugin for android:
@capacitor/app@1.0.6
✔ update android in 42.26ms
[success] android platform added!
Follow the Developer Workflow guide to get building:
https://capacitorjs.com/docs/basics/workflow
Other Technical Details
npm --version output: 8.1.0
node --version output: 16.13.0
Additional Context
Why does Gradle fail while building for Android? Any help please guys?
The text was updated successfully, but these errors were encountered:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
Platform(s)
Android
Reproduce
Steps to reproduce:
npx create-react-app my-app
npm install @capacitor/core @capacitor/cli
npx cap init
npm install @capacitor/android
npx cap add android
Expected Behavior
Android is added successfully
Actual Behavior
Other Technical Details
npm --version
output: 8.1.0node --version
output: 16.13.0Additional Context
Why does Gradle fail while building for Android? Any help please guys?
The text was updated successfully, but these errors were encountered: