Issue
When an application has a Maps module, the local build using the Mendix Native Mobile Builder will fail with the following error message at the end of the Using Mendix Native Mobile Builder to Set Up Your Local App section if the app capability is not enabled.
If the API key value is empty, the task will fail as seen in the generated logs.
2024-12-31T09:09:03.821Z: (info) [github] 'Retrieving raw contents of file capabilities.android.json from ref tags/v7.0.19...'
2024-12-31T09:09:03.821Z: (info) [github] 'Retrieving raw contents of file capabilities.ios.json from ref tags/v7.0.19...'
2024-12-31T09:09:03.861Z: (info) [BackwardsCompatibilityStore] 'Capabilities support: true'
2024-12-31T09:09:03.862Z: (info) [github] 'Retrieving raw contents of file package.json from ref tags/v7.0.19...'
2024-12-31T09:09:03.915Z: (info) [BackwardsCompatibilityStore] 'Toolkit support: true'
2024-12-31T09:13:43.891Z: (info) [Analytics] '/advanced/buildlocal: project_release_build_initiated'
2024-12-31T09:13:43.892Z: (info) [Analytics] '/advanced/buildlocal: project_release_build_initiated'
2024-12-31T09:13:43.893Z: (info) [Analytics] '/advanced/buildlocal: native_dependencies_collection_started'
2024-12-31T09:13:43.893Z: (info) [Analytics] '/advanced/buildlocal: native_dependencies_collection_started'
2024-12-31T09:13:43.893Z: (info) [mx] 'Stopping orphaned mx.exe'
2024-12-31T09:13:44.191Z: (warn) [mx] 'Command failed: taskkill /pid XXX /T /F\n' +
'ERROR: The process "XXX" not found.\r\n'Environment
Native Mobile
Cause
The API key gives the maps widgets access to Google Cloud services, thus it cannot be left empty.
Solution/Workaround
Please follow the step-by-step instructions for generating the API key for the process.
- Navigate to Google Cloud Platform.
- Click on APIs & Services (under Quick access).
- Open Credentials from the navigation bar on the left of the page.
- Click on +CREATE CREDENTIALS and select API key.
- Copy the generated API key and paste it to API key field under the App capabilities in the Mendix Native Mobile Builder.
- After the icon next to App capabilities in the navigation bar turns green, go to Configure app locally page to restart the build.
Internal information related
Not Applicable
Additional information
- Mendix documentation:
0 Comments