Cordova Slack Digest

Mon, 25 Jul 2022 08:22:14 GMT

User count: 4695

Join the conversation at slack.cordova.io

Channel #general (16 messages)


Sun, 24 Jul 2022 22:45:57 GMT

@sea-97 says

I folks,I have question about audio's.I try to built alarm system ,how to make system audio full ? .When user use my app,it always be ringing full audio

Mon, 25 Jul 2022 05:54:34 GMT

@s.papageorgiou says

hello

Mon, 25 Jul 2022 05:54:48 GMT

@s.papageorgiou says

I ran cordova run android and I get this error: ‘sh’ is not recognized as an internal or external command, operable program or batch file.

Mon, 25 Jul 2022 05:54:51 GMT

@s.papageorgiou says

any ideas?

Mon, 25 Jul 2022 06:08:48 GMT

@s.papageorgiou says

here is what I get with cordova run android --verbose:

Mon, 25 Jul 2022 06:08:49 GMT

@s.papageorgiou says

BUILD SUCCESSFUL in 1s 48 actionable tasks: 48 up-to-date Built the following apk(s): F:\2021-fd-local-server\fd-fairy-tales-amazon\platforms\android\app\build\outputs\apk\debug\app-debug.apk No scripts found for hook “before_deploy”. Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=C:\Users\conqu\AppData\Local\Android\sdk (recommended setting) ANDROID_HOME=undefined (DEPRECATED) Using Android SDK: C:\Users\conqu\AppData\Local\Android\sdk Trying to find target matching {} Looking for emulator image that best matches the target API Command failed with exit code 1: apkanalyzer manifest target-sdk F:\2021-fd-local-server\fd-fairy-tales-amazon\platforms\android\app\build\outputs\apk\debug\app-debug.apk ‘sh’ is not recognized as an internal or external command, operable program or batch file. Error: Command failed with exit code 1: apkanalyzer manifest target-sdk F:\2021-fd-local-server\fd-fairy-tales-amazon\platforms\android\app\build\outputs\apk\debug\app-debug.apk ‘sh’ is not recognized as an internal or external command, operable program or batch file. at makeError (F:\2021-fd-local-server\fd-fairy-tales-amazon\node_modules\execa\lib\error.js:60:11) at handlePromise (F:\2021-fd-local-server\fd-fairy-tales-amazon\node_modules\execa\index.js:118:26) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async getTargetSdkFromApk (F:\2021-fd-local-server\fd-fairy-tales-amazon\node_modules\cordova-android\lib\target.js:102:38) at async resolveToOfflineEmulator (F:\2021-fd-local-server\fd-fairy-tales-amazon\node_modules\cordova-android\lib\target.js:88:27) at async Object.exports.resolve (F:\2021-fd-local-server\fd-fairy-tales-amazon\node_modules\cordova-android\lib\target.js:118:10) at async Api.module.exports.run (F:\2021-fd-local-server\fd-fairy-tales-amazon\node_modules\cordova-android\lib\run.js:73:28) at async Promise.all (index 0)

Mon, 25 Jul 2022 06:36:36 GMT

@s.papageorgiou says

if I run an emulator and then cordova emulate android I get error: Command failed with exit code 1: adb -s emulator-5554 install -r F:\2021-fd-local-server\fd-fairy-tales-amazon\platforms\android\app\build\outputs\apk\debug\app-debug.apk adb: failed to install F:\2021-fd-local-server\fd-fairy-tales-amazon\platforms\android\app\build\outputs\apk\debug\app-debug.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE: Package Verification Result] Performing Streamed Install

Mon, 25 Jul 2022 06:47:18 GMT

@s.papageorgiou says

with adb install -d -r app-debug.apk I managed to install the apk on an emulator

Mon, 25 Jul 2022 06:49:57 GMT

@s.papageorgiou says

but if I run cordova run android, it still doesn

Mon, 25 Jul 2022 06:50:01 GMT

@s.papageorgiou says

't install

Mon, 25 Jul 2022 06:59:06 GMT

@jcesarmobile says

Version downgrade error means you are installing an older version than the installed one, change your app version in config.xml to be greater than the installed one, or uninstall the existing one from the device/simulator

Mon, 25 Jul 2022 07:00:46 GMT

@s.papageorgiou says

@jcesarmobile thank you, but it wasn't installed on the emulator

Mon, 25 Jul 2022 07:01:09 GMT

@s.papageorgiou says

I managed to install the app on the emulator

Mon, 25 Jul 2022 07:01:36 GMT

@s.papageorgiou says

but now I try to install the app on the device with cordova run android and it doesn't install]

Mon, 25 Jul 2022 07:13:38 GMT

@s.papageorgiou says

the error I get is: Command failed with exit code 1: apkanalyzer manifest target-sdk F:\2021-fd-local-server\fd-fairy-tales-amazon\platforms\android\app\build\outputs\apk\debug\app-debug.apk ‘sh’ is not recognized as an internal or external command, operable program or batch file.

Mon, 25 Jul 2022 07:15:33 GMT

@s.papageorgiou says

OK, I solved it. I connected my mobile phone via wi-fi and it I couldn't install the app. Connected with USB cable, the app installs.