So I would like to use an Augmented Reality SDK (ARToolkit)
Unfortunately, the given code examples are a little outdated (using gradle 0.8 and stuff) so I had to modify the gradle file a little.
I got the following error now:
Error:Attempt to read property 'main' from a write only view of model element 'android.sources' given to rule android.sources { ... } @ aRMarkerDistance\build.gradle line 23, column 5
Line 23 is the android.sources
line.
Gradle file:
apply plugin: 'com.android.model.application'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.2"
defaultConfig.with {
applicationId = "org.ar.artoolkit.org.ARMarkerdistance"
minSdkVersion.apiLevel = 15
targetSdkVersion.apiLevel = 22
versionCode = 104
versionName = "1.0.4"
}
}
android.buildTypes {
release {
minifyEnabled = false
proguardFiles.add(file('proguard-rules.pro'))
}
}
android.sources {
main.jni {
source {
srcDirs = ['src/main/nop']
}
}
main.jniLibs {
source {
srcDirs = ['src/main/libs']
}
}
}
}
dependencies {
compile project(':aRBaseLib')
}
Please help if you can.