gpt4 book ai didi

缺少 Android Studio 0.5.3 android.compileSdkVersion

转载 作者:太空狗 更新时间:2023-10-29 14:15:07 25 4
gpt4 key购买 nike

我正在使用 Android studio 0.5.3

我不断得到:

Gradle 'OpenBook' 项目刷新失败: 原因:缺少android.compileSdkVersion! Gradle 设置

// 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.9.+'
}
}
apply plugin: 'android'

repositories {
mavenCentral()
}

android {
compileSdkVersion 19
buildToolsVersion "19.0.3"

defaultConfig {
minSdkVersion 9
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}

sourceSets {
main {
manifest.srcFile '/MyApp/src/main/AndroidManifest.xml'
}
}
}

还有我的 App Buid.gradle

apply plugin: 'android'

repositories {
mavenCentral()
}

android {
compileSdkVersion 19
buildToolsVersion "19.0.3"

defaultConfig {
minSdkVersion 9
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}

sourceSets {
main {
manifest.srcFile '/src/main/AndroidManifest.xml'
}
}
}



dependencies {
// compile 'com.android.support:appcompat-v7:+'
compile project("libraries:library-toast")
compile project("libraries:Volley")
compile project("libraries:actionbarsherlock")
compile project("libraries:Dialoglibrary")
compile project("libraries:google-play-services_lib")
compile project("libraries:PullToRefreshlibrary")
compile project("libraries:facebook")
compile project("libraries:SlidingTabBarlibrary")
compile project("libraries:AndroidPlot-Core")
compile project("libraries:SignUpModule")
compile project("libraries:Jars")
compile project("libraries:UpdateChecker")
compile "com.mixpanel.android:mixpanel-android:4.0.0@aar"
}

不确定要做什么。感谢您的帮助

最佳答案

您已在构建文件中指定“compileSdkVersion 19”。似乎您缺少该 SDK(您能否发布更多包含错误的输出)您需要确保已使用 Android Studio 中的 SDK 管理器安装了正确的 SDK。

Jake Wharton 创建了一个新的 gradle 插件来自动更新 SDK https://github.com/JakeWharton/sdk-manager-plugin

关于缺少 Android Studio 0.5.3 android.compileSdkVersion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22910188/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com