您的位置:首页 > 其它

记录20151030

2015-10-30 09:29 288 查看
1.关于androidstudio出现的Task '' not found..问题,暂时可以通过替换根目录的iml文件解决。

<?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的问题。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: