Android – error adding dependency
•
Android
I'm trying to add
compile 'com.applozic.communication.uiwidget:mobicomkitui:3.38'
Under the dependency in build.gradle, but it gives the following error
I've added
include 'com.applozic.communication.uiwidget:mobicomkitui:3.38'
In settings.gradle
Please help me. I'm new to these things. The link I try to implement my project is here. This is build. Gradle (module: APP)
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
packagingOptions{
exclude 'Meta-INF/DEPENDENCIES'
exclude 'Meta-INF/NOTICE'
exclude 'Meta-INF/LICENSE'
exclude 'Meta-INF/LICENSE.txt'
exclude 'Meta-INF/NOTICE.txt'
exclude 'Meta-INF/ECLIPSE_.SF'
exclude 'Meta-INF/ECLIPSE_.RSA'
}
defaultConfig {
applicationId "com.urjapawar.bevyphase1"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.applozic.communication.uiwidget:mobicomkitui:3.38'
}
This is build. Gradle (module: project)
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
This is the log after cleaning the project
Error:A problem occurred configuring project ':app'.
resolvent:
Go to the project's build. Gradle file and add jcenter ()
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1'
//classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
// classpath 'com.github.dcendents:android-maven-plugin:1.2'
classpath 'com.novoda:bintray-release:0.3.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
resources: https://github.com/AppLozic/Applozic-Android-SDK/blob/master/build.gradle
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码