Android studio更新后项目报错Error:android-apt plugin is incompatible with the Android Gradle plugin. Pleas
来源:互联网 发布:京东商城java笔试题 编辑:程序博客网 时间:2024/06/05 23:56
主要原因是AS更新后对apt插件不再支持
1.build.gradle文件中的“apt”的地方把“apt”改为“annotationProcessor”;
2.用到apt的apply pulgin删除 例如:apply pulgin:'android-apt'这行
然后 clean一下
此时 “:android-apt plugin is incompatible with the Android Gradle plugin” 的提示应该已经消失
如果出现下列错误:
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
在gradle.properties文件中加入:
android.enableAapt2=false(注意gradle.properties文件最后行有"\",如果该代码加在最后一行,"\"要下移带该代码后)
阅读全文
0 0
- Android studio更新后项目报错Error:android-apt plugin is incompatible with the Android Gradle plugin. Pleas
- Android开发:Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'anno
- Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProc
- Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProc
- Android Studio Build Error : This version of Android Studio is incompatible with the Gradle Plugin u
- Android Studio Build Error : This version of Android Studio is incompatible with the Gradle Plugin u
- android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor'
- Android 解决Error running app: This version of Android Studio is incompatible with the Gradle Plugin
- android Error running app: This version of Android Studio is incompatible with the Gradle Plugin use
- Android Studio报错:This version of Android Studio is incompatible with the Gradle Plugin used处理
- Android Studio 更新报错:This version of Android studio is incompatible withe gradle plugin used.
- Error running example: This version of Android Studio is incompatible with the Gradle Plugin used.解决
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used.
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used.
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try
- Error running demo: This version of Android Studio is incompatible with the Gradle Plugin used.
- Error running app.main: This version of Android Studio is incompatible with the Gradle Plugin used.
- Could not find the main class: org.eclipse.ant.internal.launching.remote.InternalAntRunner
- 二叉树采用二叉链表存储,复制二叉树的算法(树的应用)
- Bootstrap学习笔记 03
- 【codevs 1316】文化之旅
- 利用Spring AOP (aspect) 自定义注解解决日志和签名校验
- Android studio更新后项目报错Error:android-apt plugin is incompatible with the Android Gradle plugin. Pleas
- position定位与轮播图制作
- 自定义View画圆、直线、矩形
- 用脚本实现windows与linux之间文件的传输
- 使用jQuery代码片段
- leetcode 97. Interleaving String
- Unity3D 官方文档 平台特殊化之Standalone和多显示器的处理
- linux使用
- [App] rhel7 下配置 vnc server