Android Stadio 导入moudle 不显示,moudle 里面的java类也没有识别,只当是普通的txt文件。

后来,我发现,每个moudle 都有一个.iml 文件~

然后我就随便翻翻配置文件,结果就找到了:

modules.xml

打开一个,配置了所有的moulde文件。

既然,他没有自动生成,那么,我手动添加一下吧,果然成功了。

在你的工程根目录应该有一个.idea文件夹,里面有modules.xml

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/iReader/iReader.iml" filepath="$PROJECT_DIR$/iReader/iReader.iml" />
<module fileurl="file://$PROJECT_DIR$/ireader.iml" filepath="$PROJECT_DIR$/ireader.iml" />
<module fileurl="file://$PROJECT_DIR$/../plugin_bookLibrary3/pluginwebdiff_bookstore3.iml" filepath="$PROJECT_DIR$/../plugin_bookLibrary3/pluginwebdiff_bookstore3.iml" />
</modules>
</component>
</project>

重启一下s’ta’di’o 就可以识别了。

如果你想要你的当前project 引入其他的目录的mouldle ,但是你不想复制一份到当前工程,那么就,

include ':iReader'
include ':pluginwebdiff_bookstore3'
project(':pluginwebdiff_bookstore3').projectDir = new File('../plugin_bookLibrary3')

这种写法就可以:

include ':pluginwebdiff_bookstore3'
project(':pluginwebdiff_bookstore3').projectDir = new File('../plugin_bookLibrary3')

然后,如果没有识别moulde ,就在.idea/modules.xml 里面加上你的iml 文件重启stadio 就可以了。

自己研究琢磨的。加油~ 多了解s’ta’di’o 的配置文件。自己多翻翻,应该可以看懂。

最新文章

  1. Day11-协程/异步IO/RabbitMQ
  2. 安装thrift
  3. Activity之间传递数据或数据包Bundle,传递对象,对象序列化,对象实现Parcelable接口
  4. Linux基本命令之逻辑测试一
  5. VMware复制Centos6虚拟机要改的地方
  6. 已知TSP问题的最好解
  7. centos设置svn开机自启动
  8. 【第五篇】androidEventbus源代码阅读和分析之发送粘性事件和接收粘性事件代码分析
  9. datatable 分页实例
  10. mysql很有用的语句
  11. ThinkPHP 2053错误
  12. 【原创】大叔经验分享(18)hive2.0以后通过beeline执行sql没有进度信息
  13. mysql5.7.18.1修改用户密码报错ERROR 1054 (42S22): Unknown column &#39;password&#39; in &#39;field list&#39;解决办法
  14. SRVE0255E: 尚未定义要处理 ***的 Web 组/虚拟主机。
  15. 如何用R来处理数据表的长宽转换(图文详解)
  16. Android ormlite like() function is not working
  17. 【转载】Ajax JS 跨域请求
  18. 2019年湖南多校第一场||2018-2019 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2018)
  19. Visual Studio 2015 + Update 1
  20. centos 搭建 搭建uwsgi服务

热门文章

  1. Spring Boot入门程序
  2. JavaScript基础:字符串转换函数——String()和toString()
  3. 【转载】#370 - Subscribe to an Event by Adding an Event Handle
  4. NOIP2018学军中学游记(11.09~11.11)
  5. 问题 D: C++ 习题 输出日期时间--友元函数
  6. Gtk-Message: Failed to load module “canberra-gtk-module”
  7. idea和eclipse中getAbsolutePath()方法获取值不同
  8. C#操作Word,写数据,插入图片
  9. 第一个AngularJS指令
  10. Xcode 中 pch 文件配置 - iOS