I am trying to help someone who is trying to build a React Native application on Azure DevOps that continues to give them this error:

FAILURE: Build failed with an exception.

* Where:
Script 'D:\a\1\s\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line: 191

* What went wrong:
A problem occurred evaluating settings 'NFIBEngage'.
> Text must not be null or empty

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 42s
Error: The process 'D:\a\1\s\android\gradlew.bat' failed with exit code 1
 at ExecState._setResult (D:\a\_tasks\Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4\2.155.0\node_modules\azure-pipelines-task-lib\toolrunner.js:816:25)
 at ExecState.CheckComplete (D:\a\_tasks\Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4\2.155.0\node_modules\azure-pipelines-task-lib\toolrunner.js:799:18)
 at ChildProcess.<anonymous> (D:\a\_tasks\Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4\2.155.0\node_modules\azure-pipelines-task-lib\toolrunner.js:721:19)
 at emitTwo (events.js:106:13)
 at ChildProcess.emit (events.js:191:7)
 at maybeClose (internal/child_process.js:886:16)
 at Socket.<anonymous> (internal/child_process.js:342:11)
 at emitOne (events.js:96:13)
 at Socket.emit (events.js:188:7)
 at Pipe._handle.close [as _onclose] (net.js:497:12)
No test result files matching D:\a\1\s\**\TEST-*.xml were found, so publishing JUnit test results is being skipped.
##[error]Error: The process 'D:\a\1\s\android\gradlew.bat' failed with exit code 1
##[section]Finishing: gradlew build

I thought perhaps it was an issue that Azure is looking in the wrong directory, but I am not sure. Any help would be appreciated.

  • Can you elaborate on how the build is continuing? I don't see much beyond the error mentioned and the final build failure of the batch file that (presumably) called the React build. – Peter Jun 20 at 14:02
  • @Peter, thank you for reaching out to me. The project was completed and I do not recall what was done to resolve the above. – Daniel Jun 20 at 23:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.