diff --git a/booster-android-gradle-compat/src/main/kotlin/com/didiglobal/booster/gradle/AGPInterface.kt b/booster-android-gradle-compat/src/main/kotlin/com/didiglobal/booster/gradle/AGPInterface.kt index 4a45e4383..49e94d5e4 100644 --- a/booster-android-gradle-compat/src/main/kotlin/com/didiglobal/booster/gradle/AGPInterface.kt +++ b/booster-android-gradle-compat/src/main/kotlin/com/didiglobal/booster/gradle/AGPInterface.kt @@ -206,7 +206,7 @@ private val REVISION: Revision by lazy { } private val FACTORIES: List by lazy { - ServiceLoader.load(AGPInterfaceFactory::class.java) + ServiceLoader.load(AGPInterfaceFactory::class.java, AGPInterface::class.java.classLoader) .sortedByDescending(AGPInterfaceFactory::revision) .toList() }