首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >react-native-vector-icons:processReleaseResources

react-native-vector-icons:processReleaseResources
EN

Stack Overflow用户
提问于 2016-04-13 07:10:22
回答 2查看 2.2K关注 0票数 2

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

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

代码语言:javascript
复制
: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

如何才能缓解这种情况?

EN

回答 2

Stack Overflow用户

发布于 2016-05-11 05:14:21

参考:https://github.com/oblador/react-native-vector-icons/issues/102

  • 我花了很多时间试图找出这个错误,(至少对我来说)它被证明是非常愚蠢的东西,并且基本上与react-
  • -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'说的,让你的文件路径名尽可能短!

票数 1
EN

Stack Overflow用户

发布于 2017-01-30 03:40:17

在Windows上,用户可以启动regedit,然后搜索

代码语言:javascript
复制
LongPathsEnabled

并将其设置为1。

之后重新启动,如果问题只存在于长路径名中,那么它应该会消失。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36585705

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档