Android 构建失败,并显示“parser.name 不能为 null”

Nic*_*ico 3 android gradle android-jetpack-navigation

在 Android 项目中,构建失败并出现以下错误:

> 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
Run Code Online (Sandbox Code Playgroud)

Nic*_*ico 11

这可能是由未处理的res/navigation.
例如,macOS 可能会添加.DS_Store可通过以下方式删除的文件:

$ rm app/src/main/res/navigation/.DS_Store
Run Code Online (Sandbox Code Playgroud)