gpt4 book ai didi

java - SDK设置失败 : Error:Module 'app' : platform 'Google Inc.:Google APIs:21' not found

转载 作者:搜寻专家 更新时间:2023-10-30 21:45:49 24 4
gpt4 key购买 nike

Failed to set up SDK: Error:Module 'app': platform 'Google Inc.:Google APIs:21' not found.

完全不知道为什么这不起作用。尝试将我的 SDK 更新到 23 但意识到我不准备处理所有新的弃用等,所以我在 Mercurial 上恢复到旧版本。我几乎没有做任何其他事情,回归应该已经解决了所有问题。不幸的是,我无法连接我的应用程序并构建它。我什至从头开始重新安装了 Android Studio,但我继续收到相同的警告,我的应用程序根本无法构建。可能出了什么问题?

这是我的构建 gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 'Google Inc.:Google APIs:21'
buildToolsVersion '21.1.2'

defaultConfig {
applicationId "com.elgami.customizer"
minSdkVersion 14
targetSdkVersion 21
}

buildTypes {
release {
minifyEnabled false
//runProguard false
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}

dependencies {
compile 'com.ogaclejapan.smarttablayout:library:1.5.0@aar'
compile 'com.github.antonyt:InfiniteViewPager:v1.0.0'
compile 'com.android.support:appcompat-v7:22.2.0'
// recyclerview
compile 'com.android.support:recyclerview-v7:23.1.1'
// google analytics
compile 'com.google.android.gms:play-services-analytics:8.3.0'
// pager sliding strip
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
// http library (for using beanstream REST)
compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
// amaazon S3 uploads
compile 'com.amazonaws:aws-android-sdk-s3:2.1.+'
// paypal purchasing
compile files('libs/PayPalAndroidSDK-2.7.1.jar')
// Module dependency on ParseLoginUI library sources
compile project(':ParseLoginUI')
// Parse libs
compile files('libs/ParseCrashReporting-1.9.2.jar')
compile files('libs/Parse-1.9.1.jar')
compile files('libs/ParseFacebookUtilsV4-1.9.1.jar')
// android support v4
compile files('libs/android-support-v4.jar')
// facebook SDK
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
//butterknife
compile 'com.jakewharton:butterknife:6.1.0'
// Subsampling-scale-image-view (for templating)
//compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.1.4'
compile files('libs/AppRater.jar')
}

最佳答案

您可以使用 compileSdkVersion 21 代替您的。

    android {
compileSdkVersion 21
buildToolsVersion '21.1.2'

defaultConfig {
applicationId "com.elgami.customizer"
minSdkVersion 14
targetSdkVersion 21
}

buildTypes {
release {
minifyEnabled false
//runProguard false
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

关于java - SDK设置失败 : Error:Module 'app' : platform 'Google Inc.:Google APIs:21' not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34397118/

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