While testing new Android Studio 1.3 NDK support with Gradle 2.5 and 
experimental plugin 0.2.0 I came across problems with (probably) changes 
with manifest and aidl attributes. Mentiond attributes are not found.
Is there any documentation about changes in DSL as after extensive search I 
couldn't find any. Thanks!

Old build.gradle:

apply plugin: 'android-library'

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.2'
    }
}

android {
    compileSdkVersion 19
    buildToolsVersion "19.1.0"

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 19
        versionCode 2490
        versionName "2.4.9"
    }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            res.srcDirs = ['res']
            aidl.srcDirs = ['src']
        }
    }
}


*New *build.gradle:
apply plugin: 'com.android.model.library'

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle-experimental:0.2.0'
    }
}

model {
    android {
        compileSdkVersion = 19
        buildToolsVersion = "19.1.0"

        defaultConfig.with {
            applicationId = "org.opencv"
            minSdkVersion.apiLevel = 8
            targetSdkVersion.apiLevel = 19
            versionCode = 3000
            versionName = "3.0.0"
        }

        sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml' // ERROR
java.srcDirs = ['src'] // OK
resources.srcDirs = ['src'] // OK
res.srcDirs = ['res'] // ERROR
aidl.srcDirs = ['src'] // ERROR
}
        }
    }
}




-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to