使用MPermissions按照文档引用,AS同步时报下面错误

Error:android-apt plugin is incompatible with the Android Gradle plugin.  Please use 'annotationProcessor'


源文档引用步骤

1、project's build.gradle

buildscript {    dependencies {        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'    }}
2、module's build.gradle
apply plugin: 'com.neenbedankt.android-apt'
dependencies {    apt 'com.zhy:mpermission-compiler:1.0.0'    compile 'com.zhy:mpermission-api:1.0.0'}


解决方法,引入步骤

1、module's buid.gradle

dependencies {    annotationProcessor 'com.zhy:mpermission-compiler:1.0.0'    compile 'com.zhy:mpermission-api:1.0.0'}



更多相关文章

  1. Android检查网络状态步骤
  2. android adt 最新下载地址23.03
  3. Android开发文档——Notifications
  4. 状态栏透明
  5. react中使用微信jssdk分享总结
  6. 【android】Android(安卓)7.0适配步骤
  7. android studio 2.0 引导页示例
  8. android官方文档:使用Eclipse来debug android源码
  9. 百度地图 android SDKv2.2.0

随机推荐

  1. Android Zxing修改二维码中扫描框的大小
  2. android 程序框架--资源和资产
  3. mac 下配置ANDROID_HOME环境变量
  4. android退出程序 后台运行 实现退出键和h
  5. Android运行时异常“Binary XML file lin
  6. android中在切换fragment时,怎样做到无需
  7. android 开发常用代码备查[更新20150520]
  8. http://www.jb51.net/article/37855.htm
  9. android创建Popwindow弹出菜单的两种方式
  10. Android自定义Dialog的Match_parent无效