rchovan opened a new issue, #1525:
URL: https://github.com/apache/cordova-android/issues/1525
# Bug Report
## Problem
Android build is forking 1st time after adding android platform, but on
second time it show this error "The "path" argument must be of type string.
Received undefined". I can only remove and again add platform to make it work.
### What is expected to happen?
build application without error
### What does actually happen?
build end with error:
```
...
copy res/screen/hdpi/portrait.png
platforms\android\app\src\main\res\drawable-port-hdpi\screen.png (updated file)
copy res/screen/mdpi/portrait.png
platforms\android\app\src\main\res\drawable-port-mdpi\screen.png (updated file)
copy res/screen/xhdpi/portrait.png
platforms\android\app\src\main\res\drawable-port-xhdpi\screen.png (updated file)
copy res/screen/xxhdpi/portrait.png
platforms\android\app\src\main\res\drawable-port-xxhdpi\screen.png (updated
file)
copy res/screen/xxxhdpi/portrait.png
platforms\android\app\src\main\res\drawable-port-xxxhdpi\screen.png (updated
file)
This app does not have additional resource files defined
Prepared android project successfully
**The "path" argument must be of type string. Received undefined**
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type
string. Received undefined
at new NodeError (internal/errors.js:322:7)
at validateString (internal/validators.js:124:11)
at Object.join (path.js:424:7)
at ConfigKeeper.get
(D:\Projects\orw_fain\master\node_modules\cordova-common\src\ConfigChanges\ConfigKeeper.js:44:32)
at
D:\Projects\orw_fain\master\node_modules\cordova-common\src\ConfigChanges\ConfigChanges.js:264:51
at Array.forEach (<anonymous>)
at PlatformMunger._is_conflicting
(D:\Projects\orw_fain\master\node_modules\cordova-common\src\ConfigChanges\ConfigChanges.js:257:21)
at PlatformMunger.add_config_changes
(D:\Projects\orw_fain\master\node_modules\cordova-common\src\ConfigChanges\ConfigChanges.js:140:59)
at
D:\Projects\orw_fain\master\node_modules\cordova-lib\src\cordova\prepare\platforms.js:66:24
at async Promise.all (index 0)
```
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
System Windows 10 64bit
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
cordova prepare android
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
Windos 10, Android 10.1.2
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins -->
cordova platforms
```
Installed platforms:
android 10.1.2
Available platforms:
browser ^6.0.0
electron ^3.0.0
windows ^7.0.0
```
cordova --version
```
11.0.0
```
cordova plugins
```
com-darryncampbell-cordova-plugin-intent 1.1.7 "Intent Shim"
com-intel-security-cordova-plugin 2.0.3 "APP Security API"
com.loksir.zb 1.0.18 "zb"
cordova-plugin-android-permissions 1.1.3 "Permissions"
cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-bluetooth-serial 0.4.7 "Bluetooth Serial"
cordova-plugin-camera-preview 0.12.1 "cordova-plugin-camera-preview"
cordova-plugin-camera 4.0.4-dev "Camera"
cordova-plugin-cartegraph-cookie-master 1.4.1 "CookieMaster"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-file-transfer 2.0.0-dev "File Transfer"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-media 5.0.4 "Media"
cordova-plugin-mobile-ocr 3.1.2 "Textocr"
cordova-plugin-ondestroy 1.0.2 "Cordova onDestroy Plugin"
cordova-plugin-pm80-scanner 0.0.6 "PM80 Scanner"
cordova-plugin-screen-orientation 3.0.2 "Screen Orientation"
cordova-plugin-splashscreen 6.0.0 "Splashscreen"
cordova-plugin-vibration 3.1.1 "Vibration"
cordova-plugin-x-socialsharing 6.0.3 "SocialSharing"
cordova-sqlite-legacy-build-support 1.3.5 "Cordova sqlite legacy build
support"
cordova.plugins.diagnostic 5.0.0 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
phonegap-plugin-barcodescanner 8.0.0 "BarcodeScanner"
```
Operating System: Windows 10 64bit,
IDE: Vscode / IntelijIDEA
## 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]