treecaptcha opened a new issue, #391: URL: https://github.com/apache/cordova/issues/391
# Bug Report ## Problem `--gradleArg=--stacktrace` does not appear to work ### What is expected to happen? Gradle prints stacktrace when encountering error when `--gradleArg=--stacktrace` is passed ### What does actually happen? Gradle does not print a stack trace and it recommends the `--stacktrace` argument ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#configuring-gradle ### Command or Code <!-- What command or code is needed to reproduce the problem? --> `cordova build android --gradleArg=--stacktrace` ``` treecaptcha@TreeCaptcha:~/gitstuff/MyApp$ cordova build android --gradleArg=--stacktrace Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=undefined (DEPRECATED) Using Android SDK: /usr/lib/android-sdk FAILURE: Build failed with an exception. * What went wrong: Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory(). > Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy(). * 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 0s Command failed with exit code 1: /usr/share/gradle/bin/gradle -p /home/treecaptcha/gitstuff/MyApp/platforms/android wrapper -b /home/treecaptcha/gitstuff/MyApp/platforms/android/wrapper.gradle ``` ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> OS: Ubuntu 20.04.5 LTS x86_64 Host: XPS 8930 1.1.19 Kernel: 5.15.0-67-generic Uptime: 25 days, 47 mins Packages: 3823 (dpkg), 14 (snap) Shell: bash 5.0.17 Resolution: 3440x1440 DE: Plasma WM: KWin WM Theme: Breeze Theme: Breeze [Plasma], Breeze [GTK2/3] Icons: breeze [Plasma], breeze [GTK2/3] Terminal: gnome-terminal CPU: Intel i5-9400 (6) @ 4.100GHz GPU: NVIDIA GeForce RTX 2070 GPU: Intel UHD Graphics 630 Memory: 8898MiB / 15712MiB ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> Cordova was installed with NPM (v11.1.0) Default JVM is openjdk version "17.0.6" 2023-01-17 Android-sdk was installed using APT ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
