Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Android and Electron build on version 18.0.1 #907

Closed
1 task
RodriSanchez1 opened this issue Nov 15, 2024 · 3 comments
Closed
1 task

Error on Android and Electron build on version 18.0.1 #907

RodriSanchez1 opened this issue Nov 15, 2024 · 3 comments

Comments

@RodriSanchez1
Copy link

RodriSanchez1 commented Nov 15, 2024

Bug report

CHECKLIST

  • I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • [x ] I have checked that no similar issues (open or closed) already exist.

Current behavior:

With the new version 18.0.1 the android and electron apps are not builded.

I get the following error:

cordova-plugin-androidx-adapter: Processed 58 source files in 1044ms
Executing script found in plugin cordova-plugin-firebasex for hook "after_prepare": plugins\cordova-plugin-firebasex\scripts\after_prepare.js
The provided path "C:\Users\rodri\CBOARD\ccboard\platforms\ios" is not a Cordova iOS project.
CordovaError: The provided path "C:\Users\rodri\CBOARD\ccboard\platforms\ios" is not a Cordova iOS project.
    at new Api (C:\Users\rodri\CBOARD\ccboard\node_modules\cordova-ios\bin\templates\scripts\cordova\Api.js:98:15)
    at Utilities.getAppName (C:\Users\rodri\CBOARD\ccboard\plugins\cordova-plugin-firebasex\scripts\lib\utilities.js:71:24)
    at setupEnv (C:\Users\rodri\CBOARD\ccboard\plugins\cordova-plugin-firebasex\scripts\after_prepare.js:25:25)
    at module.exports (C:\Users\rodri\CBOARD\ccboard\plugins\cordova-plugin-firebasex\scripts\after_prepare.js:67:5)
    at runScriptViaModuleLoader (C:\Users\rodri\AppData\Roaming\nvm\v18.18.1\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:157:32)
    at runScript (C:\Users\rodri\AppData\Roaming\nvm\v18.18.1\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:136:12)
    at C:\Users\rodri\AppData\Roaming\nvm\v18.18.1\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:108:40
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
CordovaError: The provided path "C:\Users\rodri\CBOARD\ccboard\platforms\ios" is not a Cordova iOS project.
    at new Api (C:\Users\rodri\CBOARD\ccboard\node_modules\cordova-ios\bin\templates\scripts\cordova\Api.js:98:15)
    at Utilities.getAppName (C:\Users\rodri\CBOARD\ccboard\plugins\cordova-plugin-firebasex\scripts\lib\utilities.js:71:24)
    at setupEnv (C:\Users\rodri\CBOARD\ccboard\plugins\cordova-plugin-firebasex\scripts\after_prepare.js:25:25)
    at module.exports (C:\Users\rodri\CBOARD\ccboard\plugins\cordova-plugin-firebasex\scripts\after_prepare.js:67:5)
    at runScriptViaModuleLoader (C:\Users\rodri\AppData\Roaming\nvm\v18.18.1\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:157:32)
    at runScript (C:\Users\rodri\AppData\Roaming\nvm\v18.18.1\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:136:12)
    at C:\Users\rodri\AppData\Roaming\nvm\v18.18.1\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:108:40
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Within the 18.0.0 version all is working properly. I was not able to test with the Ios app because I dont have a mac.

Expected behavior:

Get a succesful build of the Android and Electron apps.

Steps to reproduce:

Just use the last 18.0.1 and cordova android build --debug

Screenshots

Environment information

  • Cordova CLI version :

  • Cordova platform version

    • Installed platforms: android 13.0.0 electron
  • Plugins & versions installed in project (including this plugin)

    • com.lampa.startapp 6.1.6 "startApp" cordova-clipboard 1.3.0 "Clipboard" cordova-plugin-android-permissions 1.1.5 "Permissions" cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter" cordova-plugin-cboard-speech-tts 0.0.1 "cboard-speech-tts" cordova-plugin-default-browser 1.0.0 "CordovaPluginDefaultBrowser" cordova-plugin-fbsdk 4.1.1 "Facebook Connect" cordova-plugin-file-opener2 2.2.1 "File Opener2" cordova-plugin-file 8.1.2 "File" cordova-plugin-firebasex 18.0.0 "Google Firebase Plugin" cordova-plugin-fullscreen 1.3.0 "cordova-plugin-fullscreen" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-iosrtc 8.0.4 "iosrtc" cordova-plugin-market 1.2.0 "Market" cordova-plugin-media 7.0.0 "Media" cordova-plugin-network-information 3.0.0 "Network Information" cordova-plugin-purchase 13.11.1 "Purchase" cordova-plugin-saf-mediastore 0.7.0 "cordova-plugin-saf-mediastore" cordova-plugin-sign-in-with-apple 0.1.2 "cordova-plugin-sign-in-with-apple" cordova-plugin-statusbar 2.4.3 "StatusBar" ionic-plugin-deeplinks 1.0.22 "Ionic Deeplink Plugin"
  • Dev machine OS and version, e.g.

    • Windows 10

Android build issue:

  • Node JS version
    • v18.18.1
  • Gradle version
    • 8.7
  • Target Android SDK version
    • 34

Related code:

insert any relevant code here such as plugin API calls / input parameters

Console output

console output

// Paste any relevant JS/native console output here



Other information:

I think its something within the hook after_prepare that runs this plugin. I have the p.list and the google-services.json files on my repo.

@dpa99c
Copy link
Owner

dpa99c commented Nov 15, 2024

ah, looks like PR #896 broke this

@dpa99c dpa99c closed this as completed in 5a3a057 Nov 15, 2024
@dpa99c
Copy link
Owner

dpa99c commented Nov 15, 2024

Fix published in [email protected]

@RodriSanchez1
Copy link
Author

Nice! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants