【发布时间】:2018-10-28 15:26:03
【问题描述】:
当我尝试编译项目时:配置“编译”已过时,已替换为“实施”和“API”。 将于 2018 年底移除。更多信息请参阅:http://d.android.com/r/tools/update-dependency-configurations.html
这是我的 build.gradle(Module: app):
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "ir.chistaapplication.www.myapplication20"
minSdkVersion 15
targetSdkVersion 26
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 'com.android.support:appcompat-v7:26.1.0'
}
}
}
【问题讨论】:
-
如果您要将某些内容标记为重复,请在您的评论中添加指向原始问题的链接。谢谢
标签: java android gradle android-gradle-plugin