JailedBird / ArouterKspCompiler

Arouter KSP annotation processor
Apache License 2.0
76 stars 8 forks source link

[ksp] No providers found in processor classpath #7

Closed tomKitty888888 closed 1 year ago

tomKitty888888 commented 1 year ago

该有的配置都有,不知道还少什么 只要用ksp 引入就无法编译,博主有没有遇到 根部 plugins { id 'com.android.application' version '7.4.2' apply false id 'com.android.library' version '7.4.2' apply false id 'org.jetbrains.kotlin.android' version '1.8.0' apply false id 'com.google.devtools.ksp' version '1.8.0-1.0.9' apply false } 模块中 plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' id 'com.google.devtools.ksp' }

错误信息

Task :app:kspDebugKotlin FAILED e: [ksp] No providers found in processor classpath. e: Error occurred in KSP, check log for detail

FAILURE: Build failed with an exception.

JailedBird commented 1 year ago

没碰到过,粗略看貌似不是ArouterKspCompiler的问题,而是你导入ksp插件的时候出了问题; ksp插件的仓库加了么?

pluginManagement {
    repositories {
        gradlePluginPortal()
    }
}

或者看下官方文档: https://kotlinlang.org/docs/ksp-quickstart.html#use-your-own-processor-in-a-project

看到了一篇类似的问题:https://cloud.tencent.com/developer/ask/sof/107443585 不行的话,贴一下导入的代码

tomKitty888888 commented 1 year ago

ok 感谢