我正在尝试添加
compile 'com.applozic.communication.uiwidget:mobicomkitui:3.38'
在build.gradle的依赖项中添加了,但是出现以下错误
![这里是完整的logcat](https://istack.dev59.com/PoAtg.webp)
我已经添加了。
include 'com.applozic.communication.uiwidget:mobicomkitui:3.38'
在 settings.gradle 文件中。
请帮忙,我对这些东西很陌生。 我正在尝试实现我的项目的链接是 here 这是 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'
}
这是 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
}
这是清理项目后的日志。
Error:A problem occurred configuring project ':app'.
无法解决':app:_debugCompile'配置的所有依赖项。找不到com.applozic.communication.uiwidget:mobicomkitui:3.38。在以下位置搜索: https://repo1.maven.org/maven2/com/applozic/communication/uiwidget/mobicomkitui/3.38/mobicomkitui-3.38.pom https://repo1.maven.org/maven2/com/applozic/communication/uiwidget/mobicomkitui/3.38/mobicomkitui-3.38.jar file:/C:/Users/DELL/AppData/Local/Android/sdk/extras/android/m2repository/com/applozic/communication/uiwidget/mobicomkitui/3.38/mobicomkitui-3.38.pom file:/C:/Users/DELL/AppData/Local/Android/sdk/extras/android/m2repository/com/applozic/communication/uiwidget/mobicomkitui/3.38/mobicomkitui-3.38.jar file:/C:/Users/DELL/AppData/Local/Android/sdk/extras/google/m2repository/com/applozic/communication/uiwidget/mobicomkitui/3.38/mobicomkitui-3.38.pom file:/C:/Users/DELL/AppData/Local/Android/sdk/extras/google/m2repository/com/applozic/communication/uiwidget/mobicomkitui/3.38/mobicomkitui-3.38.jar 需要此依赖项: BevyPhase1:app:未指定
repositories { }
部分? - OneCricketeer