<-- Back

Error: Please configure the enabled capabilities before re-building. The API Key cannot be left empty in Native Mobile Builder.

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.

  1. Navigate to Google Cloud Platform.
  2. Click on APIs & Services (under Quick access).
  3. Open Credentials from the navigation bar on the left of the page.
  4. Click on +CREATE CREDENTIALS and select API key.
  5. Copy the generated API key and paste it to API key field under the App capabilities in the Mendix Native Mobile Builder.
  6. 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

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.