我怎样才能加快我的电脑进行 Android 开发 ft. Android studio

发布于 2025-01-15 14:30:13 字数 294 浏览 2 评论 0原文

现在您可以很容易地注意到,当我为 Android 开发设置 Android studio 时,我是应用程序开发路径的新手,我发现我的电脑需要特定的要求(硬件)才能启动,

但我有桌面 CPU:酷睿2双核 内存:4GB HDD:500 GB

这已经一周了,我只运行一些基本应用程序,但为基本应用程序执行此操作非常头疼,因为我的 android studio 每分钟都会挂起并开始滞后,我无法打开 chrome,那里充满了与我相关的问题的仓库pc 因为 android studio

任何人都知道任何黑客或通过我的提示,你可以随意使用它。

Now you can easily notice I am new on app development path when I am setting up Android studio for Android development I find that my pc need specific requirements (Hardware) to start

But I have desktop that
CPU : Core 2Duo
RAM : 4 GB
HDD : 500 GB

It's been week when I just run some basic apps but it's very headache to do it for basics app because my android studio every minute got hang and start lagging I can't open chrome there full of warehouse of my problems related to pc because of android studio

Anyone know any hacks or by tips for me you can feel free for it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

又怨 2025-01-22 14:30:13

坦率地说:这些规格根本不足以进行任何严肃的现代开发。如果您可以将HDD替换为SSD(即使是小而便宜的SSD)将是最高优先级,而更多的内存是其次的。更好的 CPU 显然会有所帮助,但这是一种奢侈,其他两项更重要。

假设这不是一种选择,您可以执行以下两件事之一:

  • 不使用 IDE(或至少使用更轻量级的 IDE,例如 VS Code)并从命令行构建软件。这将更加痛苦(尤其是当您刚刚开始时),即使如此,构建的资源需求也将是不小的。
  • 确保尽可能少地在本地计算机上执行操作。如果您有良好的互联网连接,那么您最好在免费的远程云计算机上进行开发并使用类似 的东西投影仪 在浏览器中显示 UI。我发现此存储库包含有关如何将其与 Android Studio 一起使用的说明,这似乎很有用,但我还没有验证它是否有效。

Putting it bluntly: those specs are simply not enough to do any serious modern development. If you could replacing the HDD with an SSD (even a small, cheap one) would be the highest priority and more memory is second. A better CPU would obviously help, but it's a luxury, the other two items are more important.

Assuming that's not an option, you can do either of those two things:

  • don't use an IDE (or at least a more light-weight one, such as VS Code) and build your software from the command line. This will be more painful (especially when you're just starting) and even then the resource requirements of the build will be non-trivial.
  • Make sure to do as little as possible on your local machine. If you have a decent internet connection, then you might be better off developing on a free remote cloud computer and use something like Projector to show the UI in the browser. I've found this repo with instructions on how to use it with Android Studio, which seems useful, but I've not verified that it works.
漫漫岁月 2025-01-22 14:30:13

我能想到的唯一技巧是:

  • 确保您没有为 Android Studio + Java 安装或 AS 工作区使用远程安装的文件系统或“共享”。

  • 关闭(退出)所有其他使用大量 RAM 的应用程序;例如您的网络浏览器、电子邮件工具、Slack、Zoom 等。

  • 如果您使用的是 Windows,请切换到 Linux。


更好的想法:获得更好的开发机器。我认为 RAM 是最重要的,因为听起来你的机器正在崩溃。

The only hacks I can think of are:

  • Make sure you are not using a remote mounted file system or "share" for either your Android Studio + Java installation or your AS workspace.

  • Shutoff (quit) all other applications that are using significant amounts of RAM; e.g. your web browsers, your email tool, Slack, Zoom, etc.

  • If you are using Windows, switch to Linux.


Better idea: get a better development machine. I think that the RAM is most important, because it sounds like your machine is thrashing.

请恋爱 2025-01-22 14:30:13

这可能看起来不公平,但 Android Studio 并不真正适合在低端设备上运行。它曾经在我的配备 Core i7 和 8GB RAM 的设备中出现滞后/挂起的情况。您能做的最好的事情就是使用 SSD 而不是 HDD。内存较小的 SSD 通常很便宜,仅此一点就可以在一定程度上减少 Android Studio 的问题。

It may seem unfair but Android Studio is not really suitable to run in a lower end device. It used to lag/hang in my device with Core i7 and 8GB Ram. The best thing you can do is to use an SSD instead of HDD. SSDs with smaller memory are often cheap and this alone can somewhat lessen your problems with Android Studio.

红ご颜醉 2025-01-22 14:30:13

我认为你应该将 HDD 更改为 240 GB SSD,它会正常工作

i think you should change your HDD to 240 GB SSD and it will works fine

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文