Updated 常见问题 (markdown)

laoyuyu
2017-12-11 19:47:23 +08:00
parent f938b1cc0a
commit 33b1e1e5a4

@ -2,17 +2,17 @@
1. 检查下你的工程中有没有使用apply plugin: 'android-apt'如果有的话将其转换为annotationProcessor。 1. 检查下你的工程中有没有使用apply plugin: 'android-apt'如果有的话将其转换为annotationProcessor。
2. 检查下annotationProcessor 和 compile 版本是否一致,不一致的话对导致生成代理文件失败 2. 检查下annotationProcessor 和 compile 版本是否一致,不一致的话对导致生成代理文件失败
3. 如果你是Android studio的module中引用的Aria那么你还需要再app模块中添加同样的导入代码 3. 如果你是Android studio的module中引用的Aria那么你还需要再app模块中添加同样的导入代码
``` ```
compile 'com.arialyy.aria:aria-core:{version code}' compile 'com.arialyy.aria:aria-core:{version code}'
annotationProcessor 'com.arialyy.aria:aria-compiler:{version code}' annotationProcessor 'com.arialyy.aria:aria-compiler:{version code}'
``` ```
4. 如果以上设置都无效或控制台打印下面的错误 4. 如果以上设置都无效或控制台打印下面的错误
``` ```
Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to 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. contain annotation processor. Please add them to the annotationProcessor configuration.
``` ```
请在app的build.gradle文件的defaultConfig块中添加以下代码 请在app的build.gradle文件的defaultConfig块中添加以下代码
``` ```
android { android {
compileSdkVersion 26 compileSdkVersion 26
buildToolsVersion "26.0.2" buildToolsVersion "26.0.2"