Android Studio中的AndroidAnnotations错误

锡图

我一直在将AndriodAnnotations与Eclipse(ADT)结合使用,没有任何问题。最近,我决定探索Android Studio。在构建应用程序时,将Android Studio与AndroidAnnotations一起使用会遇到一些问题。下面是错误:

在此处输入图片说明

显示三个错误时,我可以运行该应用程序而不会出现任何问题。

以下是我的build.gradle:

apply plugin: 'com.android.application'

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.2+'
    }
}

apply plugin: 'android'
apply plugin: 'android-apt'

android {
    compileSdkVersion 19
    buildToolsVersion "19.1.0"

    defaultConfig {
        applicationId "com.test.restaurantmenu"
        minSdkVersion 15
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

apt {
    arguments {
        androidManifestFile variant.processResources.manifestFile
        resourcePackageName "com.test.restaurantmenu"
    }
}

dependencies {
    apt "org.androidannotations:androidannotations:3.0+"
    compile "org.androidannotations:androidannotations-api:3.0+"
    compile 'com.android.support:appcompat-v7:+'
    compile 'com.github.satyan:sugar:1.3'
    compile fileTree(dir: 'libs', include: ['*.jar'])
}

我启用了注释处理器,如下所示:

在此处输入图片说明

我的设置中有没有遗漏的步骤或错误的步骤?

锡图

我安装了“ Android SDK工具23.0.2”,所有错误均已解决。

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章