Android Studio :Failed to resolve : annotationProcessor

本文介绍了在Android Studio中遇到`Failed to resolve : annotationProcessor`的问题,详细描述了问题背景及解决过程。在Android Studio 2.3及以上版本,注解处理器的使用方式发生了变化,需要将`apply plugin: 'android-apt'`替换为`annotationProcessor`依赖。同时提供了官方博客链接以了解更多关于Android Studio版本更新的影响。
摘要由CSDN通过智能技术生成

问题描述

Android Studio :Failed to resolve : annotationProcessor

在编写Android Arch Component Demo时碰到这么一个问题,然后项目一直无法编译通过,通过字面意思可以推出是无法解析annotationProcessor

Project build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
   

    repositories {
        maven { url 'https://maven.google.com' }
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        // TODO 请关注下面这个依赖
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
        // NOTE: Do not place your application dependencies here; they belong
    
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值