我正在尝试安装示例应用程序: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如何才能缓解这种情况?
发布于 2016-05-11 05:14:21
参考:https://github.com/oblador/react-native-vector-icons/issues/102
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'说的,让你的文件路径名尽可能短!
发布于 2017-01-30 03:40:17
在Windows上,用户可以启动regedit,然后搜索
LongPathsEnabled并将其设置为1。
之后重新启动,如果问题只存在于长路径名中,那么它应该会消失。
https://stackoverflow.com/questions/36585705
复制相似问题