我打開了我的項目,它顯示我一些錯誤,我現在開始在Android的世界,所以我不知道如何做到這一點。我按了安裝版本庫並同步項目但這沒有做任何事情。庫缺失。 「安裝和同步」不起作用
這是我在我的項目中的所有版本。
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "mx.com.dtss.carritocompras"
minSdkVersion 15
targetSdkVersion 25
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:3.0.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile files('libs/ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar')
compile group: 'com.google.code.gson', name: 'gson', version: '2.3'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.squareup.picasso:picasso:2.5.2'
testCompile 'junit:junit:4.12'
}
而這些都是錯誤
我怎樣才能解決呢?
可能是排除com.android.support –
@BrunoFerreira你是什麼意思? –
所以你有行排除組com.androis.support所以gradle不使用庫的名稱com.android.support,可能是因爲你有錯誤 –