且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何制作Android Studio 下载依赖源和javadoc?

更新时间:2023-01-23 13:14:41

目前 Android Studio 导入带有源的库.至于java docs按F1.

Currently Android Studio imports libraries with sources. As for java docs press F1.

旧答案:

当我们谈论早期预览时,最简单的修复获胜.

As we are talking about early preview, simplest fix wins.

现在只是在项目结构"对话框中手动将它们添加到项目中.情况更糟,因为现在 Android Studio 将从所有与原生 Android Gradle 配置和任务无关的依赖项中剥离模块文件 (iml),例如模块具有 robolectric 依赖项和额外的任务,并且在 build.gradle 中添加了配置 localTest.打开 Android Studio 后,它会删除依赖项,您需要再次添加它.

For now is just manually add them to the project in Project Structure dialog. Things are even worse as now Android Studio will strip module files (iml) from all dependencies which are not related to native Android Gradle configurations and tasks e.g. module has robolectric dependency and extra task and config localTest is added in build.gradle. After you open Android Studio it will remove dependency, you need to add it again.

暂时我将 iml 文件和 .idea 文件夹保存在我的 git 中.启动后

​​>

For time being I am keeping iml files and .idea folder in my git. After launch

git checkout myproject/myproject.iml