---
agent:
  instructions: "Search published articles with space-separated keywords. All terms must occur in the article text. Results are Markdown excerpts with canonical links, newest first."
  endpoint: "https://www.zaihua.news/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://www.zaihua.news/docs/api/#agent-search"
---

# 📱 Android 17 将强制限制 app 内存，超限就会被系统直接终止

Source: https://www.zaihua.news/article/41889/

[返回新闻流](https://www.zaihua.news/)
2026年6月11日 · 13:30 · [在花新闻](https://www.zaihua.news/about/)

# Android 17 将强制限制 app 内存，超限就会被系统直接终止

从 Android 17 开始，系统会根据设备总 RAM 为每个应用设定内存上限，超过限制的进程会被直接终止且不留堆栈跟踪，以此防止单个应用拖垮整机多任务体验和稳定性。

Google 建议开发者全面启用 R8 优化以缩减常驻代码，使用图片加载库时优先选用 RGB_565 等低内存格式并主动回收位图，借助 LeakCanary 等工具及时修复内存泄漏，并在 Activity 等组件中响应 onTrimMemory 回调主动释放界面缓存。同时，新提供的 ProfilingManager API 支持在生产环境中触发异常或 OOM 时的堆转储收集，方便事后定位和优化。

[Android Developers Blog](https://android-developers.googleblog.com/2026/06/prioritizing-memory-efficiency-steps-for-android-17.html)

🌸 [在花频道](http://t.me/ZaiHuaPd) · [备用频道](https://t.me/zaihuatg) · [投稿通道](http://t.me/ZaiHuabot)

[上一条 OpenAI 拟大幅下调词元价格，发起价格战以应对 Anthropic 的竞争](https://www.zaihua.news/article/41888/)[下一条钉钉因内部批评换帅：陈航卸任，92 年陈宇森接棒](https://www.zaihua.news/article/41890/)
