Building native android app

Hi, where can I find a description on how to build a native android app? This doesn’t work → Tried it with Mendix 8.18.5 and 9.2.0 and Template  – release/6.1.0    
1 answers

My problem is – trying to do this

git clone --single-branch --branch release/6.1.0
cd native-template
call npm i
call npm run configure

only results in an error:


C:\Daten\Mendix\Android>git clone --single-branch --branch release/6.1.0
Cloning into 'native-template'...
remote: Enumerating objects: 2865, done.
remote: Counting objects: 100% (282/282), done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 2865 (delta 199), reused 216 (delta 164), pack-reused 2583
Receiving objects: 100% (2865/2865), 36.19 MiB | 5.06 MiB/s, done.
Resolving deltas: 100% (1675/1675), done.

C:\Daten\Mendix\Android>cd native-template

C:\Daten\Mendix\Android\native-template>call npm i

> dtrace-provider@0.8.8 install C:\Daten\Mendix\Android\native-template\node_modules\dtrace-provider
> node-gyp rebuild || node suppress-error.js

C:\Daten\Mendix\Android\native-template\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack     at findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16)
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack     at findVisualStudio2015 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14)
gyp ERR! stack     at regSearchKeys (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16)
gyp ERR! stack     at regGetValue (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:301:5)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Daten\Mendix\Android\native-template\node_modules\dtrace-provider
gyp ERR! node -v v10.18.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok

> core-js@2.6.11 postinstall C:\Daten\Mendix\Android\native-template\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

Also, the author of core-js ( ) is looking for a good job -)

> detox@17.14.5 postinstall C:\Daten\Mendix\Android\native-template\node_modules\detox
> node scripts/postinstall.js

> native-template@6.1.6 postinstall C:\Daten\Mendix\Android\native-template
> patch-package && jetify

patch-package 6.2.2
Applying patches...
@react-native-firebase/messaging@10.1.0 ✔
react-native@0.63.3 ✔
react-native-image-picker@2.3.4 ✔
Jetifier found 1489 file(s) to forward-jetify. Using 8 workers...
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 1216 packages from 600 contributors and audited 1221 packages in 59.16s

32 packages are looking for funding
  run `npm fund` for details

found 4262 vulnerabilities (2382 low, 1 moderate, 1879 high)
  run `npm audit fix` to fix them, or `npm audit` for details

> native-template@6.1.6 configure C:\Daten\Mendix\Android\native-template
> native-mobile-toolkit configure --config-path='./config.json' --verbose

[configure] begin...
[configure] Native Template version: 6.1.6
[configure] Failed trying to retrieve configuration from ./config.json