Ich bin ziemlich neu in AR und ich benutze Android Studio 2.1.2 und ich habe versucht, die Beispiele von ARToolKit ausgeführt.Gradle DSL kann keine Quellen finden()
der Fehler sagt: Gradle DSL-Methode nicht gefunden: 'Quellen()'
Ich verwende Gradle 2.13, unter dem Code
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig.with {
applicationId "org.artoolkit.ar.samples.ARSimple"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
//Integer type incremented by 1 for every release, major or minor, to Google store
versionName "1.0" //Real fully qualified major and minor release description
//buildConfigFields.with {
//Defines fields in the generated Java BuildConfig class, in this case, for
// create() { //default config, that can be accessed by Java code
// type "int" //e.g. "if (1 == BuildConfig.VALUE) { /*do something*/}".
// name "VALUE"
//See: [app or lib]/build/generated/source/buildConfig/[package path]/
// value "1" // BuildConfig.java
// }
// }
}
}
android.buildTypes {
release {
minifyEnabled false
proguardFiles file('proguard-rules.pro')
}
}
android.productFlavors {
}
android.sources {
main.jni {
source {
srcDirs "src/main/nop"
}
}
main.jniLibs {
source {
srcDirs "src/main/libs"
}
}
}
dependencies {
//compile 'com.android.support:support-v4:23.0.1'
//compile 'com.android.support:appcompat-v7:23.0.1' //Only required when the target device API level is greater than
compile project(':aRBaseLib')
} //the compile and target of the app being deployed to the device
android {
buildToolsVersion '23.0.3'
}