Closed Osarez7 closed 7 years ago
Hi, this looks like a conflict of versions for sdk/support libraries/build tools. I've had success in compiling for the minSdkVersion 21 and targetSdkVersion 22 with the following module/app level build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "io.github.silvaren.easyrsapi22"
minSdkVersion 21
targetSdkVersion 22
renderscriptTargetApi 16
renderscriptSupportModeEnabled true
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'io.github.silvaren:easyrs:0.5.3'
testCompile 'junit:junit:4.12'
}
I also used the following toplevel/project build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Could you try those settings?
Hi, thanks.I will try it.
Hi, I'm trying to make easyrs work in my project.It has minSdkVersion 21 and targetSdkVersion 22 and I getting erros like
There is a way to make it work with this configuration?
(I just need to get a NV21 byte array from a bitmap) Thanks