【发布时间】:2014-01-15 19:39:05
【问题描述】:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.0'
}
}
allprojects {
repositories {
mavenCentral()
}
}
apply plugin: 'android'
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
}
}
defaultConfig {
minSdkVersion 8
targetSdkVersion 16
}
}
经过大量研究后仍然没有运气。我更改了版本号,android manifest 匹配 minSdkVersion 和 targetSdkVersion 作为上面的 build.gradle 文件。不知道为什么这不起作用?!?
【问题讨论】:
标签: android gradle android-studio