จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Android Studio v1.5.0 (พฤศจิกายน 2015)
การแก้ไขและการเพิ่มประสิทธิภาพ
- เพิ่มความสามารถในการวิเคราะห์เครื่องมือตรวจสอบหน่วยความจำใหม่ลงใน Android Monitor เมื่อดูไฟล์ HPROF
ที่บันทึกจากเครื่องมือตรวจสอบนี้ ตอนนี้การแสดงผลจะมีประโยชน์มากขึ้นเพื่อให้คุณค้นหา
ปัญหาต่างๆ เช่น หน่วยความจำรั่ว ได้เร็วขึ้น หากต้องการใช้เครื่องมือตรวจสอบนี้ ให้คลิก Android Monitor ที่ด้านล่างของหน้าต่างหลัก ใน Android Monitor ให้คลิกแท็บหน่วยความจำ ขณะที่
มอนิเตอร์ทำงานอยู่ ให้คลิกไอคอนทิ้งฮีปของ Java จากนั้นคลิก
การจับภาพในหน้าต่างหลัก แล้วดับเบิลคลิกไฟล์เพื่อดู คลิก
การวิเคราะห์การจับภาพทางด้านขวา (Android Device Monitor ไม่สามารถทำงานพร้อมกับ Android Monitor ได้)
- เพิ่มการรองรับ Deep Link และ App Link ใหม่ เครื่องมือแก้ไขโค้ดจะสร้าง
ตัวกรอง Intent สำหรับ Deep Link ในไฟล์
AndroidManifest.xml
โดยอัตโนมัติ นอกจากนี้ ยังสามารถ
สร้างโค้ดเพื่อช่วยคุณผสานรวมกับ
App Indexing API
ในกิจกรรมในไฟล์ Java ได้ด้วย ฟีเจอร์การทดสอบ Deep Link
ช่วยให้คุณยืนยันได้ว่า Deep Link ที่ระบุสามารถเปิดแอปได้ ในแท็บทั่วไป
ของกล่องโต้ตอบการกำหนดค่าการเรียกใช้/การแก้ไขข้อบกพร่อง คุณสามารถระบุตัวเลือกการเปิดใช้ Deep Link
ได้ นอกจากนี้ คุณยังทดสอบการเรียก App Indexing API ในกิจกรรมได้โดยใช้จอแสดงผล logcat ของ Android Monitor ตอนนี้เครื่องมือ lint
ของ Android มีคำเตือนสำหรับ
ปัญหาบางอย่างที่เกี่ยวข้องกับ Deep Link และ App Indexing API แล้ว
- เพิ่มความสามารถในการใช้ชื่อย่อเมื่อเติมโค้ดมุมมองที่กำหนดเองในเครื่องมือแก้ไขโค้ด
- เพิ่มการรองรับองค์ประกอบ
VectorDrawable
เพิ่มเติมใน
Vector Asset Studio
เพื่อความเข้ากันได้แบบย้อนหลัง Vector Asset Studio สามารถใช้องค์ประกอบเหล่านี้เพื่อแปลงภาพวาดเวกเตอร์
ที่วาดได้เป็นภาพแรสเตอร์ PNG เพื่อใช้กับ Android 4.4 (API ระดับ 20) และต่ำกว่า
- เพิ่ม
lint
การตรวจสอบใหม่สำหรับ Android TV และ Android Auto เพื่อให้คุณได้รับ
ความคิดเห็นที่นำไปใช้ได้ทันทีใน Android Studio พร้อมกับการแก้ไขอย่างรวดเร็วหลายรายการ เช่น
สำหรับ Android TV เครื่องมือนี้สามารถรายงานและแก้ไขปัญหาเกี่ยวกับสิทธิ์ ฮาร์ดแวร์ที่ไม่รองรับ
องค์ประกอบ uses-feature
และปัญหาเกี่ยวกับแบนเนอร์ที่ขาดหายไปได้อย่างรวดเร็ว สำหรับ Android Auto จะสามารถ
ตรวจสอบการใช้งานที่ถูกต้องในไฟล์ตัวอธิบายที่อ้างอิงจากไฟล์
AndroidManifest.xml
รายงานหากไม่มีตัวกรอง Intent สำหรับคลาส
MediaBrowserService
และระบุปัญหาการดำเนินการด้วยเสียงบางอย่าง
- เพิ่ม
lint
การตรวจสอบใหม่สำหรับ BroadcastReceiver ที่ไม่ปลอดภัย
การใช้คลาส SSLCertificateSocketFactory
และ HostnameVerifier
รวมถึง
การเรียก File.setReadable()
และ File.setWritable()
นอกจากนี้ ยังตรวจหา
การค้นหาทรัพยากรในไฟล์ Manifest ที่ไม่ถูกต้อง โดยเฉพาะทรัพยากรที่แตกต่างกันตามการกำหนดค่า
- แก้ไขปัญหาด้านความเสถียรหลายรายการ
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-09-03 UTC
[[["เข้าใจง่าย","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"]],["อัปเดตล่าสุด 2025-09-03 UTC"],[],[],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"]]