我正在尝试在我的应用程序上使用启动画面。我正在使用 react-native 0.64 但是当我运行应用程序时出现此错误
- 出了什么问题:任务“:app:processDebugResources”执行失败。
- 执行 com.android.build.gradle.internal.tasks.Workers$ActionFacade 时发生故障
- Android 资源链接失败 /home/greenithe/codes/Scripture/android/app/src/main/res/layout/launch_screen.xml:5: AAPT: error: resource drawable/scripture (aka com.scripture:drawable/scripture) not成立。
- 尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
- 在https://help.gradle.org获得更多帮助
11 秒内构建失败
在 makeError (/home/greenithe/codes/Scripture/node_modules/execa/index.js:174:9) 在 /home/greenithe/codes/Scripture/node_modules/execa/index.js:278:16 在 processTicksAndRejections (节点: internal/process/task_queues:96:5) 在异步 runOnAllDevices (/home/greenithe/codes/Scripture/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94: 5) 在 async Command.handleAction (/home/greenithe/codes/Scripture/node_modules/@react-native-community/cli/build/index.js:186:9) info 使用 --verbose 标志运行 CLI 以获取更多详细信息。[警告] - (starship::utils):执行命令“git”超时。[警告] - (starship::utils):您可以在配置中将 command_timeout 设置为更高的值,以允许更长时间运行的命令继续执行。
我尝试使启动器屏幕的文件在布局文件夹中可用,但我仍然收到错误。我需要及时调试这个错误,请及时帮助。