I am trying to import GPUImage in AndroidStudio. So I downloaded the GPUImage library from here https://github.com/CyberAgent/android-gpuimage and then i referred to this link http://pixsterstudio.com/use-gpuimage-library-android-part-1-gpuimage-integration.html to know how i suppose to import the GPUImage library. But then Android studo gives me the following error and it is linked to the library/build.gradle which is posted below.
error message:
Error:(2, 0) Plugin with id 'com.novoda.bintray-release' not found
please let me know how to correct this error and how to to import GPUImage library correctly?
library/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!
Just add it in built.gradle (Project level)
classpath 'com.novoda:bintray-release:0.8.0'
under
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.novoda:bintray-release:0.8.0'
}
Note: make sure you are adding this dependency at Project level gradle