使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Android Studio v1.5.0(2015 年 11 月)
修复的问题和增强功能:
- 为 Android Monitor 添加了新的内存监视器分析功能。当您查看从此监视器捕获的 HPROF 文件时,显示内容现在更加实用,因此您可以更快地发现问题(例如内存泄漏)。如需使用此监视器,请点击主窗口底部的 Android Monitor。在 Android Monitor 中,点击 Memory 标签页。监视器运行时,点击 Dump Java Heap 图标,然后点击主窗口中的 Captures 并双击该文件进行查看。点击右侧的“Capture Analysis”。(Android Device Monitor 不能与 Android Monitor 同时运行。)
- 添加了新的深层链接和应用链接支持。代码编辑器可以自动为
AndroidManifest.xml
文件中的深层链接创建 intent 过滤器。它还可以生成代码,以帮助您在 Java 文件的 Activity 中集成 App Indexing API。深层链接测试功能可帮助您验证指定的深层链接是否可以启动应用。在“Run/Debug Configurations”对话框的 General 标签页中,您可以指定深层链接启动选项。您还可以使用显示的 Android Monitor logcat 在 activity 中测试 App Indexing API 调用。Android lint
工具现在会针对某些涉及深层链接和 App Indexing API 的问题发出警告。
- 添加了在代码编辑器中对自定义视图进行代码补全时使用简称的功能。
- 添加了对向 Vector Asset Studio 添加更多
VectorDrawable
元素的支持,以实现向后兼容性。Vector Asset Studio 可使用这些元素将矢量可绘制对象转换为 PNG 光栅图片,以用于 Android 4.4(API 级别 20)及更低版本。
- 为 Android TV 和 Android Auto 添加了新的
lint
检查,以便在 Android Studio 中提供可操作的即时反馈,以及一些快速修复。例如,对于 Android TV,它可以报告权限、不受支持的硬件、uses-feature
元素和缺少横幅问题,并针对其提供快速修复。对于 Android Auto,它可验证从 AndroidManifest.xml
文件引用的描述符文件中的正确用法,在 MediaBrowserService
类没有 intent 过滤器时进行报告,并识别特定语音操作问题。
- 针对不安全的广播接收器、
SSLCertificateSocketFactory
和 HostnameVerifier
类使用以及 File.setReadable()
和 File.setWritable()
调用添加了新的 lint
检查。它还会检测无效的清单资源查询,尤其是对于因配置而异的资源。
- 修复了许多稳定性问题。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-09-03。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["\u003cbr /\u003e\n\nAndroid Studio v1.5.0 (November 2015)\n\nFixes and enhancements:\n\n- Added new Memory Monitor analysis abilities to Android Monitor. When you view an HPROF file captured from this monitor, the display is now more helpful so you can more quickly locate problems, such as memory leaks. To use this monitor, click **Android Monitor** at the bottom of the main window. In Android Monitor, click the **Memory** tab. While the monitor is running, click the **Dump Java Heap** icon, and then click **Captures** in the main window and double-click the file to view it. Click *Capture Analysis* on the right. (The Android Device Monitor can't be running at the same time as Android Monitor.)\n- Added new deep link and app link support. The Code Editor can automatically create an intent filter for deep linking in the `AndroidManifest.xml` file. It can also generate code to help you integrate with the [App Indexing API](http://developers.google.com/app-indexing/android/publish) in an activity in a Java file. A deep link testing feature helps you verify that a specified deep link can launch an app. In the **General** tab of the *Run/Debug Configurations* dialog, you can specify deep link launch options. You can also test App Indexing API calls in an activity by using the Android Monitor **logcat** display. The Android `lint` tool now has warnings for certain issues involving deep links and the App Indexing API.\n- Added the ability to use short names when code-completing custom views in the Code Editor.\n- Added support for more [VectorDrawable](/reference/android/graphics/drawable/VectorDrawable) elements to [Vector Asset Studio](/tools/help/vector-asset-studio) for backward-compatibility. Vector Asset Studio can use these elements to convert vector drawables into PNG raster images to use with Android 4.4 (API level 20) and lower.\n- Added new `lint` checks for Android TV and Android Auto to give you immediate, actionable feedback in Android Studio, along with several quick fixes. For example, for Android TV, it can report and provide a quick fix for permissions, unsupported hardware, `uses-feature` element, and missing banner issues. For Android Auto, it can validate the correct usage in the descriptor file referred from your `AndroidManifest.xml` file, report if there isn't an intent filter for the `MediaBrowserService` class, and identify certain voice actions issues.\n- Added new `lint` checks for insecure broadcast receivers, `SSLCertificateSocketFactory` and `HostnameVerifier` class uses, and `File.setReadable()` and `File.setWritable()` calls. It also detects invalid manifest resource lookups, especially for resources that vary by configuration.\n- Fixed a number of stability issues.\n\n\u003cbr /\u003e"]]