ปลั๊กอิน Android Gradle 8.8.0 (มกราคม 2025)

ปลั๊กอิน Android Gradle เวอร์ชัน 8.8.0 เป็นเวอร์ชันหลักที่มีฟีเจอร์และการปรับปรุงใหม่ๆ มากมาย

ความเข้ากันได้

ระดับ API สูงสุดที่ปลั๊กอิน Android Gradle เวอร์ชัน 8.8 รองรับคือระดับ API 35 และข้อมูลความเข้ากันได้อื่นๆ มีดังนี้

เวอร์ชันขั้นต่ำ เวอร์ชันเริ่มต้น หมายเหตุ
Gradle 8.10.2 8.10.2 ดูข้อมูลเพิ่มเติมได้ที่การอัปเดต Gradle
เครื่องมือสร้าง SDK 35.0.0 35.0.0 ติดตั้งหรือกำหนดค่าเครื่องมือสร้าง SDK
NDK ไม่มี 27.0.12077973 ติดตั้งหรือกำหนดค่า NDK เวอร์ชันอื่น
JDK 17 17 ดูข้อมูลเพิ่มเติมได้ที่การตั้งค่าเวอร์ชัน JDK

ปัญหาที่แก้ไขแล้ว

ปลั๊กอิน Android Gradle เวอร์ชัน 8.8.2

ปัญหาที่แก้ไขแล้ว
ปลั๊กอิน Android Gradle
Initialization script 'C:\Users\mypc\AppData\Local\Temp\ijresolvers2.gradle' line: 162
Shrinker (R8)
Gson proguard is not working properly after upgrading to AGP 8.8
java.lang.VerifyError: ผู้ตรวจสอบปฏิเสธคลาส
Leanback crashes when minified with R8 included in AGP 8.10.0-alpha04

ปลั๊กอิน Android Gradle เวอร์ชัน 8.8.1

ปัญหาที่แก้ไขแล้ว
Dexer (D8)
Add OpenJDK 23 for testing
Shrinker (R8)
java.lang.AbstractMethodError: คลาสตัวรับ [...]$$Lambda$[...] ไม่ได้กำหนดหรือสืบทอดการใช้งานของวิธีการที่ได้รับการแก้ไข [...] ของอินเทอร์เฟซ [...]
NPE in Enqueuer releated to record DexCallSite
R8 8.7.18 ทำให้เกิดข้อยกเว้น null pointer exception เมื่อเรียกใช้ job?.cancel
java.lang.NoClassDefFoundError: การแก้ไขปัญหาล้มเหลวของ: Lkotlin/LazyThreadSafetyMode
Monzo appears to be using excessive amount of time in tree shaking
AGP 8.8 สร้างรุ่นที่เผยแพร่ไม่สำเร็จ : R8: java.lang.NullPointerException: ไม่สามารถอ่านฟิลด์ "b" ได้เนื่องจากค่าส่งคืนของ "com.android.tools.r8.internal.BS.a(com.android.tools.r8.internal.cR)" เป็น Null

ปลั๊กอิน Android Gradle เวอร์ชัน 8.8.0

ปัญหาที่แก้ไขแล้ว
ปลั๊กอิน Android Gradle
Consider annotate input type for JacocoTransform as a @Classpath
com.android.build.api.variant.GeneratesApk should expose minSdk
com.android.settings plugin doesn't recognize targetSdk
SourceDirectories.addGeneratedSourceDirectory is not friendly to multiple variants
Implement flag to disable AGP minimum version checking
AGP has confusing interactions with configuring kotlin compiler options
AGP should expose a BuiltArtifactLoader for target project apk in com.android.test projects
[AGP] Lazy SdkComponents.ndkDirectory provider fails to produce value, but eager android.ndkDirectory API works
Build options: Add new "Build Run configuration" option and make it the default
ไม่สามารถแก้ไข BuildConfig ในการทำ Unit Test เมื่อใช้ android.enableBuildConfigAsBytecode=true
Apks generated from Bundles does not consider privacy sandbox support
com.android.settings plugin doesn't recognize targetSdk
Dexer (D8)
Desugar library 2.1.0 does not work with AGP 8.5.2
เครื่องมือวิเคราะห์ซอร์สโค้ด
KtAnalysisSessionProvider incompatibility with lint checks introduced in 8.7.0-alpha04
"False positive" WrongConstant when using PackageManager.ResolveInfoFlags.of with Kotlin
ข้อผิดพลาด Lint "ต้องระบุโฮสต์อย่างน้อย 1 รายการ" เมื่อตั้งค่ารูปแบบ http หรือ https ของตัวกรอง Intent
Handle type-use annotations in more cases for UnknownNullness lint
AGP 8.6.1: การเกิดปัญหาซ้ำ - Lint WrongConstant ล้มเหลวเมื่อใช้ [Int].toLong() ภายใน @LongDef ใน Kotlin
AGP 8.7.0 - ผลบวกลวง Lint RestrictedApi ใน NavOptionsBuilder.popUpTo
WrongConstant lint ปรากฏ 2 ครั้ง
"MonochromeLauncherIcon: Monochrome icon is not defined" warning is not caught by Android Studio
AbstractAnnotationDetector checks wrong overloaded functions/constructors
Lint ImportAliasTestMode ไม่สร้างนามแฝงการนำเข้าสำหรับฟังก์ชันระดับบนสุด
WrongConstant lint ปรากฏ 2 ครั้ง
New ObsoleteSdkInt lint warnings with AGP 8.8
False positive lint check android.permission.SCHEDULE_EXACT_ALARM is only granted to system apps
K2 Mode throws RestrictedApi warning when using .hasRoute(Route::class) in Android Studio
การผสานรวมเครื่องมือวิเคราะห์ซอร์สโค้ด
Lint variant task is not found after evaluation
Linting fails when importing AAR file with implemenation files