Nico
Nico

Reputation: 2882

Android build failed with 'parser.name must not be null'

In an Android project, build failed with this error:

> Task :app:generateSafeArgsDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:generateSafeArgsDebug'.
> parser.name must not be null

Upvotes: 4

Views: 1390

Answers (1)

Nico
Nico

Reputation: 2882

It may be caused by unhandled files in res/navigation.
For instance macOS may add .DS_Store files that may be deleted with:

$ rm app/src/main/res/navigation/.DS_Store

Upvotes: 18

Related Questions