我想在AndroidStudio中導入GPUImage。所以我從這裏下載了這個https://github.com/CyberAgent/android-gpuimage的GPUImage庫,然後我參考了這個鏈接http://pixsterstudio.com/use-gpuimage-library-android-part-1-gpuimage-integration.html 知道我想如何導入GPUImage庫。但是,隨後Android Studo給了我下面的錯誤,它被鏈接到下面發佈的庫/ build.gradle。如何添加ID爲'com.novoda.bintray-release'的插件GPUImage
錯誤信息:
Error:(2, 0) Plugin with id 'com.novoda.bintray-release' not found
請讓我知道如何糾正這一錯誤,以及如何正確導入GPUImage庫?
庫/的build.gradle:
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
android {
compileSdkVersion COMPILE_SDK_VERSION as int
buildToolsVersion BUILD_TOOLS_VERSION
defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
versionCode "git rev-list origin/master --count".execute().text.toInteger()
versionName VERSION_NAME
consumerProguardFiles 'proguard-rules.txt'
ndk {
moduleName "gpuimage-library"
stl "gnustl_shared"
abiFilters "all"
ldLibs "log"
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jni.srcDirs = ['jni']
}
instrumentTest.setRoot('tests')
}
lintOptions {
abortOnError false
}
}
task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
classifier = 'javadoc'
from androidJavadocs.destinationDir
}
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
artifacts {
archives androidSourcesJar
archives androidJavadocsJar
}
publish {
userOrg = POM_DEVELOPER_ID
groupId = GROUP
artifactId = ARTIFACT_ID
publishVersion = VERSION_NAME
desc = POM_DESCRIPTION
website = POM_URL
}
W/System.err: at org.opencv.android.OpenCVLoader.initDebug(OpenCVLoader.java:66)
W/System.err: at org.opencv.android.OpenCVLoader.initDebug(OpenCVLoader.java:66)
W/ContextImpl: Implicit intents with startService are not safe: Intent { act=org.opencv.engine.BIND } android.content.ContextWrapper.bindService:604 org.opencv.android.AsyncServiceHelper.initOpenCV:24 org.opencv.android.OpenCVLoader.initAsync:89
E/OpenCVLoader/BaseLoaderCallback: OpenCV loading failed!
看起來像是具有上的依賴關係舊版本的'org.opencv.android'。 「gradle依賴關係 - 配置編譯」的輸出是什麼? – JBirdVegas