记录20151030
2015-10-30 09:29
288 查看
1.关于androidstudio出现的Task '' not found..问题,暂时可以通过替换根目录的iml文件解决。
把这个替换进去,工程名改掉就能解决。原因不明待日后研究。
2.安卓系统api中有一种annotation叫@hide,用这个标记的接口在外部只能在运行时通过反射访问,比如AssetManager,它的构造器和一些方法都是@hide的。
3.androidstudio及高版本adt的eclipse一般都会生成value-vxx这个目录,这个会指定在xx版本的安卓系统中只读取这个目录下的资源,如果把color.xml放到这里,就会出现在其他版本找不到color的问题。
<?xml version="1.0" encoding="UTF-8"?> <module external.linked.project.id="HISAndroidClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4"> <component name="FacetManager"> <facet type="java-gradle" name="Java-Gradle"> <configuration> <option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" /> <option name="BUILDABLE" value="false" /> </configuration> </facet> </component> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <excludeFolder url="file://$MODULE_DIR$/.gradle" /> </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> </component> </module>
把这个替换进去,工程名改掉就能解决。原因不明待日后研究。
2.安卓系统api中有一种annotation叫@hide,用这个标记的接口在外部只能在运行时通过反射访问,比如AssetManager,它的构造器和一些方法都是@hide的。
3.androidstudio及高版本adt的eclipse一般都会生成value-vxx这个目录,这个会指定在xx版本的安卓系统中只读取这个目录下的资源,如果把color.xml放到这里,就会出现在其他版本找不到color的问题。
相关文章推荐
- vs2008生成的各种文件
- 通过点击cell上的Button获取tableView的indexPath
- 解决ScrollView与ListView事件冲突
- 怎样用U盘安装Ubuntu系统/ubuntu系统怎么安装
- gitlab安装
- 第七周实践项目~排队模拟看病
- 第9周项目1猴子选大王(数组版)
- 最大似然估计、MAP及贝叶斯估计
- 升级linux自带的Python
- 《从零开始学Swift》学习笔记(Day 28)——总结使用问号(?)和感叹号(!)
- 第9周 项目2-对称矩阵压缩存储的实现与应用(1)
- 使用NSURLConnection解决下载的问题——同步解决下载内存峰值与进度跟进的问题(只需了解原理)
- 深入理解 Java final 变量的内存模型
- 使用Memcached实现集群间session共享
- HTML5 固定底部的footer功能栏
- 面试 问题
- Thread利用线程池封装异步任务【基础版】
- HTML5 固定底部的footer功能栏
- ssh整合常见的后台错误
- vijosP1067Warcraft III 守望者的烦恼