Android Studio常见bug
2016-03-09 11:23
429 查看
1、导入eclipse项目,可能会出现lib png not file,原因是图片不是png格式,改成jpg试试
2、com.android.builder.packaging.DuplicateFileException
出现这个异常,加上配置如下
packagingOptions{
exclude'META-INF/DEPENDENCIES.txt'
exclude'META-INF/LICENSE.txt'
exclude'META-INF/NOTICE.txt'
exclude'META-INF/NOTICE'
exclude'META-INF/LICENSE'
exclude'META-INF/DEPENDENCIES'
exclude'META-INF/notice.txt'
exclude'META-INF/license.txt'
exclude'META-INF/dependencies.txt'
exclude'META-INF/LGPL2.1'
}
3、永久设置show line number
setting—>Edit—>Appearance—>show
Line Numbers
4、Error:(1, 1) 错误: 非法字符: '\ufeff'
文件格式另存为”UTF-8"格式
2、com.android.builder.packaging.DuplicateFileException
出现这个异常,加上配置如下
packagingOptions{
exclude'META-INF/DEPENDENCIES.txt'
exclude'META-INF/LICENSE.txt'
exclude'META-INF/NOTICE.txt'
exclude'META-INF/NOTICE'
exclude'META-INF/LICENSE'
exclude'META-INF/DEPENDENCIES'
exclude'META-INF/notice.txt'
exclude'META-INF/license.txt'
exclude'META-INF/dependencies.txt'
exclude'META-INF/LGPL2.1'
}
3、永久设置show line number
setting—>Edit—>Appearance—>show
Line Numbers
4、Error:(1, 1) 错误: 非法字符: '\ufeff'
文件格式另存为”UTF-8"格式
相关文章推荐
- Android广播入门
- Android的Context Manager(服务管理器)源码剖析-android学习之旅(99)
- Android的Context Manager(服务管理器)源码剖析-android学习之旅(99)
- Android的Context Manager(服务管理器)源码剖析-android学习之旅(99)
- Android的Context Manager(服务管理器)源码剖析-android学习之旅(99)
- Android 属性动画(Property Animation) 完全解析 (上)
- Android WebView 支持H5的定位Js
- Android自带样式
- Android中configChanges与固定屏幕方向不要共存
- Android文本输入框EditText的属性和方法
- Android - 事件传递机制
- Activity的四种启动模式-图文并茂【Android】
- Android---自定义Dialog、Toast
- Android 适配方案
- 初学习Android--Spinner,DatePicker,AutoCompleteTextView
- 查看android进程信息
- Android Studio下JNI应用
- Android Preference的学习
- android笔记(2)
- android笔记(1)