这是的build.gradle文件 无法找到构建工具中的build.gradle版本25.0.0 RC1
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25 rc1"
defaultConfig {
applicationId "com.example.android.supportv13.sampleime"
minSdkVersion 16
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(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:support-v13:25.0.0'
testCompile 'junit:junit:4.12'
}
每当同步gradle这个项目中,我们正在展示下列文字 “所有封装的对话无法下载以下软件包: - 软件包ID构建工具; 25.0.0-rc1“
但我想使用API 25中的一些组件,所以我们必须使用buildToolsVersion“25 rc1”。 –
然后你可能不想要25 rc1但是25.0.1 – DzefersonS
谢谢。构建工具版本25.0.1为我工作。 –