:app:transformResourcesWithMergeJavaResForDebug FAILED
2016-05-30 12:08
441 查看
资源xml有错误,应该排查每一处xml。
如果提示gradle相关错误,需要修改系统级的build.gradle和程序级的build.gradle,比如后者不能缺少:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:21.0.3'
}
项目配置入口:File->Project Structure--Moules--
修改它就相当于修改程序级的build.gradle
gradle提示中文乱码,比如中文注释。
在项目下的build.gradle下添加以下代码即可解决
tasks.withType(Compile) {
options.encoding = "UTF-8"
}
Gradle2.0+环境下需将Compile改为JavaCompile
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
Duplicate files copied in APK META-INF/NOTICE.txt
android {
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}
}
如果提示gradle相关错误,需要修改系统级的build.gradle和程序级的build.gradle,比如后者不能缺少:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:21.0.3'
}
项目配置入口:File->Project Structure--Moules--
修改它就相当于修改程序级的build.gradle
gradle提示中文乱码,比如中文注释。
在项目下的build.gradle下添加以下代码即可解决
tasks.withType(Compile) {
options.encoding = "UTF-8"
}
Gradle2.0+环境下需将Compile改为JavaCompile
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
Duplicate files copied in APK META-INF/NOTICE.txt
android {
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}
}
相关文章推荐
- 【iOS开发】常用宏
- Android开发之Service服务
- Android小知识——Vibrator使用示例
- Android小知识——ADB配置的使用方式
- Android Studio 错误 Duplicate files copied in APK META-INF/LICENSE.txt
- 【转】Android学习系列(1)--为App签名(为apk签名)
- 【转】can't find referenced method 'android.app.RemoteInput[] getRemoteInputs()' in class android.app.Notification$Action
- 深入理解Android 自定义attr Style styleable以及其应用
- Android小知识——将Log文件放入到SD中去
- Android小知识——从SD卡中向APP中读取txt文件的时候出现乱码的问题
- android 查看本地数据库
- Android小知识——adb出现ADB server didn't ACK的解决方法
- Android小知识——Adapter的使用
- Android小知识——listView的分割线高度和颜色
- Android小知识——添加多个View
- Android的Scroller介绍
- Android小知识——横向scrollView是否滑到最右边
- Android Studio的快捷键
- android小知识——对图片的压缩方式
- Cocos2d 屏幕适配方案