IDEA - jar包无法关联源码问题
- 下载完源码,没有效果,点击选择源码提示
Idea cannot determine what kind of files the chosen items contain. Do you want to attach them as 'Source'
问题原因
- 解压源码包,发现包文件是一个名称为
com.example.test
文件夹,java标准结构是com/example/test
这种层级文件 - 修改包名称,重新编译一切正常
拓展
- 解压jar包,发现编译后的jar包结构是
com/example/test
这种层级文件,说明打包是会解析包结构,不是直接复制文件夹名称