JPS incremental annotation processing is disabled
时间: 2023-10-24 07:21:12 浏览: 60
这个问题的出现可能是因为你的 Java 编译器没有启用 JPS 增量注解处理。要启用 JPS 增量注解处理,你可以在 Gradle 或 Maven 的构建文件中添加以下配置:
Gradle:
```groovy
tasks.withType(JavaCompile) {
options.incremental = true
options.compilerArgs << '-proc:only'
}
```
Maven:
```xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<compilerArgs>
<arg>-proc:only</arg>
</compilerArgs>
<annotationProcessorPaths>
<!-- your annotation processors -->
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
```
如果你已经启用了 JPS 增量注解处理,但仍然出现这个问题,你可以尝试升级你的 Java 编译器或使用其他编译器来解决问题。
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)