【发布时间】:2017-07-30 21:10:47
【问题描述】:
我打开了我的项目,它显示了一些错误,我现在开始使用 Android 世界,所以我不知道该怎么做。我按下 install Repository and sync project 但这没有任何作用。
这是我项目中的所有版本。
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的库,可能是因为你有错误
-
嗯,让我看看是否可以。
-
我读过一个类似我stackoverflow.com/questions/44691858/…的问题,但我不能解决我的哈哈
标签: android android-gradle-plugin