Keresés

Új hozzászólás Aktív témák

  • WonderCSabo

    félisten

    válasz Sianis #2892 üzenetére

    A generált dolgoknak korrekt neve, és tényleg nem duplikátum? Mindenesetre ilyen akkor lehet, hogy ha rossz a build.gradled, vagy volt valami régi is, és még két helyen vannak meg a classok. Clean nem segített rajta?

    Mindenesetre a kövi build.gradle kell:

    buildscript {
    repositories {
    mavenCentral()
    }
    dependencies {
    // replace with the current version of the Android plugin
    classpath 'com.android.tools.build:gradle:1.0.0'
    // replace with the current version of the android-apt plugin
    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
    }
    }

    repositories {
    mavenCentral()
    mavenLocal()
    }

    apply plugin: 'com.android.application'
    apply plugin: 'android-apt'
    def AAVersion = 'XXX'

    dependencies {
    apt "org.androidannotations:androidannotations:$AAVersion"
    compile "org.androidannotations:androidannotations-api:$AAVersion"
    }

    apt {
    arguments {
    androidManifestFile variant.outputs[0].processResources.manifestFile
    // if you have multiple outputs (when using splits), you may want to have other index than 0

    resourcePackageName 'com.myproject.package'
    }
    }

    android {
    compileSdkVersion 19
    buildToolsVersion "20.0.0"

    defaultConfig {
    minSdkVersion 9
    targetSdkVersion 19
    }
    }

    Azt is csekkold le, hogy nem manuálisa addsz hozzá source foldereket a build.gradle-ben, ezt hagyd az android-apt plugin-ra.

    [ Szerkesztve ]

Új hozzászólás Aktív témák