我已经更新了android studio到2.3。 我已经搜索并应用了此论坛上给出的所有解决方案,但我的问题仍未解决。 编译“com.android.support:appcompat-v7:25.3.0” 这个库的依赖关系显示错误所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)
//Here is my build.gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.compass.islamicdirection"
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.google.android.gms:play-services:10.2.0'
compile 'com.android.support:multidex:1.0.1'
compile files('libs/StartAppInApp-3.5.2.jar')
}
https://stackoverflow.com/a/42374426/115145 – CommonsWare
@CommonsWare不工作 –