I catch this error when I install the Android Platform:
TypeError: Cannot read property ‘unshift’ of undefined at _execCommand () at at at at at ChildProcess. (C:\Users\user\AppData\Local\Wappler\package.nw\node_modules\winreg\lib\registry.js:664:7) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1047:16) at Socket. (internal/child_process.js:438:11) at Socket.emit (events.js:314:20) at Pipe. (net.js:672:12)
TypeError: Cannot read property ‘unshift’ of undefined at _execCommand () at at at at at ChildProcess. (C:\Users\user\AppData\Local\Wappler\package.nw\node_modules\winreg\lib\registry.js:664:7) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1047:16) at Socket. (internal/child_process.js:438:11) at Socket.emit (events.js:314:20) at Pipe. (net.js:672:12)
Also, it predominantly posts this message:
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant™ version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_281 (Oracle Corporation 25.281-b09)
OS: Windows 10 10.0 amd64 Gradle could not detect version!
I’ve followed Dave’s steps to install Gradle and successfully did (thanks @Dave) . However, this error still shows:
TypeError: Cannot read property ‘unshift’ of undefined at _execCommand () at at at at at ChildProcess. (C:\Users\user\AppData\Local\Wappler\package.nw\node_modules\winreg\lib\registry.js:664:7) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1047:16) at Socket. (internal/child_process.js:438:11) at Socket.emit (events.js:314:20) at Pipe. (net.js:672:12)
In the list of devices, the installed simulation device on Android does not show either.
Please help. Thanks.
Try removing Android from the Project (back it up first though). Save and exit. Reboot your machine. Open Wappler run the System Check, and add the Android Platform again. Pain in the arse but may help rectify it… Can all be a little bit hectic getting it up and running but once done it gets a lot simpler I promise.
Hi @Dave I just tried the entire process again and this still shows:
I uninstalled and reinstalled Android SDK, Remove and reinstalled Android Platform
FOllowed the Cordova guide, step by step and still this:
TypeError: Cannot read property ‘unshift’ of undefined at _execCommand () at at at at at ChildProcess. (C:\Users\user\AppData\Local\Wappler\package.nw\node_modules\winreg\lib\registry.js:664:7) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1047:16) at Socket. (internal/child_process.js:438:11) at Socket.emit (events.js:314:20) at Pipe. (net.js:672:12)
What went wrong:
A problem was found with the configuration of task ':CordovaLib:generateDebugRFile' (type 'GenerateLibraryRFileTask').
File 'D:\xampp\htdocs\visamour\platforms\android\CordovaLib\build\intermediates\local_only_symbol_list\debug\R-def.txt' specified for property 'loca
lResourcesFile' does not exist.
What went wrong:
A problem was found with the configuration of task ':CordovaLib:generateDebugRFile' (type 'GenerateLibraryRFileTask').
File 'D:\xampp\htdocs\visamour\platforms\android\CordovaLib\build\intermediates\local_only_symbol_list\debug\R-def.txt' specified for property 'loca
lResourcesFile' does not exist.
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.