简体   繁体   English

react-native-vector-icons:processReleaseResources失败-Ubuntu

[英]react-native-vector-icons:processReleaseResources FAILED - Ubuntu

FAILURE: Build failed with an exception. 失败:构建失败,发生异常。

  • What went wrong: Execution failed for task ':react-native-vector-icons:processReleaseResources'. 出了什么问题:任务':react-native-vector-icons:processReleaseResources'的执行失败。

    com.android.ide.common.process.ProcessException: Failed to execute aapt com.android.ide.common.process.ProcessException:无法执行aapt

I am using Ubuntu 14.04 32 bit . 我正在使用Ubuntu 14.04 32位 After installing react-native-elements and react-native-vector-icons the project build was getting failed with above message. 安装react-native-elements和react-native-vector-icons之后,项目构建因上述消息而失败。 I also noticed that earlier i was using android version 23 and after installing the above 2 react packages, my android version was also updated to 26. 我还注意到,之前我使用的是android 23版本,并且安装了上述2个React软件包后,我的android版本也更新为26版本。

Other questions on same topic did not solve my problem. 关于同一主题的其他问题未能解决我的问题。

Temporary Solution 临时解决方案

Go inside your installed project folder. 进入已安装的项目文件夹。 Then inside that go to node_modules/react-native-vector-icons/android. 然后在里面进入node_modules / react-native-vector-icons / android。

Find file build.gradle 查找文件build.gradle

There these 2 properties would be set to 26. Update that to 23 as below: 这两个属性将设置为26。将其更新为23,如下所示:

compileSdkVersion 23 编译版本23

buildToolsVersion "23.0.1" buildToolsVersion“ 23.0.1”

Note: This is a temporary solution cause it's not advised to change the library file. 注意:这是一个临时解决方案,因为不建议更改库文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM