Sat, 31 Jul 2021 08:20:48 GMT
Join the conversation at slack.cordova.io
Fri, 30 Jul 2021 10:11:09 GMT
@naga says
Hi Everyone
Can someone help me to solve this issue
(node:3223) UnhandledPromiseRejectionWarning: Error: /Users/vagrant/git/corber/cordova/platforms/android/gradlew: Command failed with exit code 1 Error output: Note: /Users/vagrant/git/corber/cordova/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processReleaseResources'. > Android resource linking failed /Users/vagrant/git/corber/cordova/platforms/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:55: AAPT: error: unexpected element <queries> found in <manifest>. * 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 1m 32s at ChildProcess.whenDone (/Users/vagrant/git/node_modules/cordova-common/src/superspawn.js:169:23) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1022:16) at Socket.<anonymous> (internal/child_process.js:444:11) at Socket.emit (events.js:314:20) at Pipe.<anonymous> (net.js:675:12) (node:3223) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see <https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode>). (rejection id: 1) (node:3223) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Linting corber/cordova/www/index.html..```
Fri, 30 Jul 2021 12:00:45 GMT
@norman137 says
a plugin is adding
queries
tag in themanifest
which is not a valid tag according to your version of AAPT. Looking at https://developer.android.com/guide/topics/manifest/queries-element,queries
was added in version 30, which means you should be using cordova-android@10 (which has API 30 support) with build-tools 30.0.3 or later (but not version 31.x)
Fri, 30 Jul 2021 12:17:28 GMT
@naga says
Thanks @norman137 Solved the issue 👏
Sat, 31 Jul 2021 06:38:19 GMT
@mohanraj.l says
Hi Team, I try to use cordova-android@10.0.0. I have noticed that VERSION file missing in node_modules unlike previous versions. Is this expected? I wanted to figure out the version of cordova-android from pre install hook. Is there any other ways of detecting the cordova-android version?