gpt4 book ai didi

android - react native 矢量图标 :processReleaseResources

转载 作者:行者123 更新时间:2023-11-29 01:21:28 29 4
gpt4 key购买 nike

我正在尝试在此处安装示例应用程序:https://github.com/brentvatne/react-native-scrollable-tab-view

安装后,我尝试运行,但出现错误:

:react-native-vector-icons:processReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-vector-icons:processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
xecException: Process 'command 'C:\Users\KJA\AppData\Local\Android\sdk\build-too
ls\23.0.1\aapt.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED

Total time: 23.638 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

如何缓解这种情况?

最佳答案

引用:https://github.com/oblador/react-native-vector-icons/issues/102

  • 我花了很多时间试图找出这个错误,并且(至少对我而言)结果证明这是一个非常愚蠢的事情,并且在很大程度上与 react-native-vector-icon 库无关。
  • 经过几个小时的 A-B-A 测试,我得出的结论是这个库中有一些很长的路径名。
  • 这确实对 Windows 用户产生了不利影响。
  • 如果我的项目位于:C:\Users\MyName789\Dropbox\123 Software Development -- React Native\IconExplorer我们完全失败了。
  • 如果我将项目移动到:C:\IconExplorer一切正常。

对 Windows 用户的建议:运行 react-native run-android 时有许多文件受到影响。长文件名地址会导致许多错误,包括 Execution failed for task ':react-native-vector-icons:processReleaseResources'话虽如此,请让您的文件路径名尽可能短!

关于android - react native 矢量图标 :processReleaseResources,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36585705/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com