Hi jaka, Could you please post the complete config.
I'm stuck with the same issue, but I try to apply your modification and doesnot work. thanks. On Tuesday, August 11, 2015 at 12:06:25 AM UTC+10, [email protected] wrote: > > After a lot of experimeting, I came up with a working solution: > > main { > manifest.source { > include 'AndroidManifest.xml' > srcDirs += ['./'] > } > java.source.srcDirs += ['./src'] > resources.source.srcDirs += ['./src'] > aidl.source.srcDirs += ['./src'] > res.source.srcDirs += ['./res'] > } > > > > > On Friday, August 7, 2015 at 6:00:20 PM UTC+2, [email protected] wrote: >> >> 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.
