Error:Execution failed for task ':inferentdemo:processDebugResources'. finished with non-zero exit v
来源:互联网 发布:php 获取远程图片 编辑:程序博客网 时间:2024/05/18 03:31
原文地址:http://blog.csdn.net/zhangxy0605/article/details/73603798
最近遇到这个报错,
Error:Execution failed for task ':inferentdemo:processDebugResources'.com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\AndroidStudio\Android\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1
网上找了好多方法,结合自己的解决方法,做下总结。
解决方法有三种:
1. 修改Gradle中 的buildToolsVersion 与targetSdkVersion 一致
如:
android {compileSdkVersion 21buildToolsVersion "21.0.2"defaultConfig { applicationId "com.sample.inferentdemo" minSdkVersion 14 targetSdkVersion 21 versionCode 1 versionName "1.0"}
- 删除多余的或重复的 jar 文件。
- 检查添加的资源文件的名字是否规范,不能含有特殊字符,如:中文, - 等,最好是以常见的字母加下划线命名。
阅读全文
0 0
- Error:Execution failed for task ':inferentdemo:processDebugResources'. finished with non-zero exit v
- Error:Execution failed for task ':app:processDebugResources'....finished with non-zero exit value 1
- Error:Execution failed for task ':app:transformClassesWithDexForDebug' finished with non-zero exit v
- Error:Execution failed for task ':app:dexDebug'.finished with non-zero exit value 2
- Error:Execution failed for task ‘:Test:dexDebug’.。。。finished with non-zero exit value 1
- Error:Execution failed for task ':***:compileDebugAidl'.finished with non-zero exit value 3
- Error:Execution failed for task...finished with non-zero exit value 2
- Error:Execution failed for task ':app:dexDebug'.finished with non-zero exit value 3解决
- Error:Execution failed for task jdk1.8.0.25 exit with non zero exit value 2
- Error:Execution failed for task ':app:transformClassesWithDexForMfinished with non-zero exit value 2
- Execution failed for task ':myapp:dexDebug'bin/java'' finished with non-zero exit value 2的解决思路
- Error:Execution failed for ..dk\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1错误
- Error:Execution failed for task ':app:processDebugResources'.
- Error:Execution failed for task ':processDebugResources'.
- Error: Execution failed for task ':app:processDebugResources'.
- Error:Execution failed for task ‘:app:processDebugResources’
- Error:Execution failed for task ':app:processDebugResources'
- Error:Execution failed for task ':app:processDebugResources'.
- python 函数编程
- JS 兼容各个浏览器的本地图片上传即时预览效果
- Spring-Spring 开发环境搭建及HelloSpring
- odi-15050:flow control not possible if no key is declared in your target datastore
- Immutable.js 以及在 react+redux 项目中的实践
- Error:Execution failed for task ':inferentdemo:processDebugResources'. finished with non-zero exit v
- M1卡做电子钱包结构
- 二维码扫描的手势调焦
- 类和数据抽象
- React创建table
- 解决Android 5.0以下出现 java.lang.NoClassDefFoundError,找不到类
- sqlite3 表里插入系统时间(时间戳)
- React-native 热更新之pushy!
- 数据库(1NF,2NF,3NF)