mirai/mirai-console/docs/QA.md

27 lines
627 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Q&A
## 插件
### 使用 AutoService
`build.gradle.kts` 添加:
```kotlin
plugins {
kotlin("kapt")
}
dependencies {
val autoService = "1.0-rc7"
kapt("com.google.auto.service", "auto-service", autoService)
compileOnly("com.google.auto.service", "auto-service-annotations", autoService)
}
```
*对于 `build.gradle` 用户, 请自行按照 Groovy DSL 语法翻译*
### 为什么不支持热加载和卸载插件?
在热加载过程容易产生冲突情况;
卸载时不容易完全卸载所有静态对象。
为了避免这些麻烦Mirai Console 认为没有支持热加载和热卸载的必要。