1.as无法找到module
在项目还在编译的时候,强制性终端,导致无法找到module依赖,app 运行按钮哪里出现“add configuration”
解决方案:
- 先尝试下clean/rebuild/make 等操作,看看是否可行
- 检查 setting文件 是否有指定module名称
- 检查project 是否存在 .iml文件
- 检查 各个module 中是否存在.iml文件,iml文件的名称是module的名称
- 将去掉instant run的勾
2 debug版本启动速度慢
因为勾选了instant run,导致app启动界面高达4s,最后经过排查,发现去掉instant run 之后启动速度变成2s。结论是instant run 可能影响app 启动
总结:
问题1
:iml文件的作用?
IML is a module file created by IntelliJ IDEA, an IDE used to develop Java applications. It stores information about a development module, which may be a Java, Plugin, Android, or Maven component; saves the module paths, dependencies, and other settings.
问题2
:instant run 机制?
网友评论