Android Studio 构建/apk 不可见 [英] Android Studio build/apk not visible

查看:46
本文介绍了Android Studio 构建/apk 不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Crashlytics 插件进行 Beta 测试,但上传 apk 的唯一方法是从 Android Studio 中拖动它.在终端中,我可以访问 /build/apk/,但在 Android Studio 中,该文件夹未显示(我可以看到 dex, lint 等).知道如何显示它吗?

I'm using the Crashlytics plugin for beta testing, but the only way to upload an apk is to drag it from within Android Studio. In the terminal, I can access <app>/build/apk/, but in Android Studio, that folder is not showing up (I can see dex, lint etc). Any idea how to display it?

谢谢

推荐答案

Android Studio 会自动隐藏某些目录以减少索引所有这些文件的负载.如果您查看模块的 iml 文件(例如 root/main_module/main_module.iml),您将看到这一行:

Android Studio automatically hides certain directories to reduce the load of indexing all those files. If you look in your module's iml file (e.g. root/main_module/main_module.iml), you'll see this line:

<excludeFolder url="file://$MODULE_DIR$/build/apk" />

如果删除该行,它将开始在文件树中显示 root/main_module/build/apk/.

If you remove that line, it will start showing root/main_module/build/apk/ in the file tree.

不幸的是,Android Studio 足够聪明,可以注意到它丢失了,并且会在构建时再次添加,因此实际上不值得这样做.

Unfortunately, Android Studio is smart enough to notice that it's missing and will add it again when it builds, so it's not really worth doing.

您可以在此处查看我与一位 Google 员工在 Android Studio 项目上的更多对话:https://plus.google.com/104239612059033457922/posts/RVq9e9Viux5

You can see a little more of the conversation I've had with one of the Googler's on the Android Studio project here: https://plus.google.com/104239612059033457922/posts/RVq9e9Viux5

这篇关于Android Studio 构建/apk 不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆