sdk更新後im無法創建hello world應用程序。 我的build.gradle看起來像這樣找不到com.android.support:support-v4:22.0.0。 SDK更新後
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.coders.yo"
minSdkVersion 11
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'
}
但構建失敗得到並顯示
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:support-v4:22.0.0.
Required by:
Yo:app:unspecified > com.android.support:appcompat-v7:22.0.0
所以我說編譯 'com.android.support:support-v4:22.0.0。'現在我得到
Error:Failed to find: com.android.support:support-v4:22.0.0.
<a href="openFile">Open File</a><br><a href="open.dependency.in.project.structure">Open in Project Structure dialog</a>
我已經更新了Android SDK 和支持庫
我一直停留在它的過去的幾個小時。可有人請幫我鑑定了問題
現貨!這是確切的問題。我使用的是Android Studio Beta 0.86。已更新且問題得到修復 – playmaker420 2015-04-03 04:44:19
仍然無效:/ – 2015-04-10 19:34:04
嘗試更新Android支持庫/ Repositiry – pvllnspk 2015-05-15 18:54:00