体验最新版AndroidStudio3.0 Canary 8的时候,发现之前项目的butter knife报错,用到注解的应该都会报错 Error:Execution failed for task ':app:javaPreCompileDebug'. > 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. - butterknife-7.0.1.jar Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future. See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details. 在app的build中 android { ... defaultConfig { ... //添加如下配置就OK了 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } } ... }
记住一点:改完了之后,别忘了继续sync Now.而不是:刷新按钮,别忘了
参考:AndroidStudio3.0 注解报错Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor.
AndroidStudio3.0 注解报错Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor.
On 报错 to The 注解 be found must
2023-09-14 09:02:31 时间
把Androidstudio2.2的项目放到3.0里面去了,然后开始报错了。
相关文章
- ORA-22286: insufficient privileges on file or directory to perform string operation ORACLE 报错 故障修复 远程处理
- ORA-22804: remote operations not permitted on object tables or user-defined type columns ORACLE 报错 故障修复 远程处理
- ORA-22898: existing scope clause on “string” points to a table other than the one mentioned in the referential constraint ORACLE 报错 故障修复 远程处理
- ORA-27042: not enough space on raw partition to fullfill request ORACLE 报错 故障修复 远程处理
- ORA-27167: Attempt to determine if Oracle binary image is stored on remote server failed ORACLE 报错 故障修复 远程处理
- ORA-27610: Smart I/O failed due to shortage of memory on the cell “string” ORACLE 报错 故障修复 远程处理
- ORA-27612: Smart I/O failed due to a block corruption detected on the cell “string”. disk: “string”, block: “string”, disk offset: “string” ORACLE 报错 故障修复 远程处理
- ORA-28561: unable to set date format on non-Oracle system ORACLE 报错 故障修复 远程处理
- ORA-28673: Merge operation not allowed on an index-organized table ORACLE 报错 故障修复 远程处理
- ORA-29884: domain index is defined on the column to be dropped ORACLE 报错 故障修复 远程处理
- ORA-30995: DOM streams operations cannot be performed on null/invalid node ORACLE 报错 故障修复 远程处理
- ORA-38881: Cannot drop tablespace string on primary database due to guaranteed restore points. ORACLE 报错 故障修复 远程处理
- ORA-38884: Cannot shrink data file string on standby database due to guaranteed restore points. ORACLE 报错 故障修复 远程处理
- ORA-47954: Oracle Data Pump authorization for Oracle Database Vault to string on object string.string already exists ORACLE 报错 故障修复 远程处理
- ORA-47957: Oracle Data Pump authorization for Oracle Database Vault to string on object string.string is not found ORACLE 报错 故障修复 远程处理
- MySQL Error number: 3757; Symbol: ER_FUNCTIONAL_INDEX_ON_LOB; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-02048: attempt to begin distributed transaction without logging on ORACLE 报错 故障修复 远程处理
- ORA-03113: end-of-file on communication channel ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-011565; Symbol: ER_GRP_RPL_SUPER_READ_ON; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL Error number: MY-011638; Symbol: ER_GRP_RPL_FAILED_TO_START_ON_SECONDARY_WITH_ASYNC_CHANNELS; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-13772: unexpected deadlock on “SQL Tuning Set” “string” owned by user “string” ORACLE 报错 故障修复 远程处理
- ORA-16274: failure to perform operation on all Oracle RAC instances ORACLE 报错 故障修复 远程处理
- ORA-16444: ALTER SYSTEM FLUSH REDO TO STANDBY failed due to a corrupted control file or online log file. ORACLE 报错 故障修复 远程处理
- ORA-16812: log apply service not running on apply instance recorded by the broker ORACLE 报错 故障修复 远程处理
- ORA-00221: error on write to control file ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-013306; Symbol: ER_GRP_RPL_FAILED_TO_INSERT_TRX_ON_TCM_ON_AFTER_CERTIFICATION; SQLSTATE: HY000 报错 故障修复 远程处理