编译期注解使用demo
坑:
1.报错:Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.
- MyAnnotation.jar (project :MyAnnotation)
解决方案:app的defaultConfig{...}增加javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
2.报错:Failed to find byte code for javax/annotation/processing/AbstractProcessor
解决方案:File -> Settings -> Instant Run -> 取消勾选Enable instant...
-
Notifications
You must be signed in to change notification settings - Fork 0
编译期注解使用demo
License
liuyangming1993/AnnotationDemo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
编译期注解使用demo
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published