改變SDK路徑日前後不建,我卸載了位置/Users/Shared/Downloads/adt-bundle-mac-x86_64-20130729/sdk
我的SDK,並安裝在/usr/local/android_sdk/sdk
和我在Android的工作室設置 配置 - >項目默認 - >項目結構 - 由相同的變化>平臺設置 - > SDK老項目Android Studio中
現在,問題是這些變化我可以建立任何新的項目,但是當我打開我的老項目它給我這個錯誤:
Gradle 'GPSProvider' project refresh failed:
Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.7-bin.zip'.
Build file '/Users/zohrakhan/AndroidStudioProjects/GPSProvider/GPSProvider/build.gradle' line: 9
A problem occurred evaluating project ':GPSProvider'.
A problem occurred evaluating project ':GPSProvider'.
The SDK directory '/Users/Shared/Downloads/adt-bundle-mac-x86_64-20130729/sdk' does not exist.
請幫我找出問題。
編輯1:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 11
targetSdkVersion 16
}
}
dependencies {
compile 'com.android.support:appcompat-v7:18.0.0'
}
介紹,你可以請發表您的build.gradle文件的內容? –
@Mario請檢查我編輯的問題。 –
你有沒有更新你的Android Studio(而不是SDK),更新後你的舊版本顯示失敗? –