定期备份项目?
感谢 SO 和贡献者的大力支持,我已经成功地学习了如何使基本应用程序运行。也许我可以为此做出贡献:我每天都在备份整个项目目录。例如,在 Windows 中,我将
C:\MyApp 复制到 C:\Bkups\022622
由于 Android Studio 项目大小不断增加,我可能会耗尽备份空间。
我尝试删除 Intermediates 目录,这将项目大小减半。
我在终端尝试过 gradlew clean build:它使项目大小增加了一倍。
使用了 :
buildTypes {
release {
minifyEnabled true
另请注意,我在 build.gradle 文件中
,并且使用 Refractor 来删除未使用的资源。这些项目不断变大。
我想要一种快速干净的备份方法。看来我的选择是仅备份:
C:\MyApp\app\src 到 C:\Bkups\022622
,然后在必要时恢复该目录。
Thanks to SO and contributors for so much, I've been successful in learning how to make basic apps work. Maybe I can contribute with this: I've been backing up the entire project directory each day. For example in Windows I copy:
C:\MyApp to C:\Bkups\022622
As the Android Studio project size keeps mounting I could run out of space for the backups.
I have tried deleting the Intermediates directory and that halves the project size.
I have tried gradlew clean build at the terminal: it doubled the project size.
Note too I have used :
buildTypes {
release {
minifyEnabled true
in the build.gradle file
and I have used the Refractor to remove unused resources. The projects just keep getting bigger.
I would like a fast clean backup method. It looks like my option is to backup only:
C:\MyApp\app\src to C:\Bkups\022622
and then restore that directory if/when I have to.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论