错误:原因:无法使用哈希字符串'Google Inc.:Google API:23'查找目标:E:\ Android2 \ SDK [英] Error:Cause: failed to find target with hash string 'Google Inc.:Google APIs:23' in: E:\AndroidStudio\SDK
本文介绍了错误:原因:无法使用哈希字符串'Google Inc.:Google API:23'查找目标:E:\ Android2 \ SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有上述错误,并且不知道为什么我仍然拥有它。我已经多次重新安装API 23并完成谷歌搜索,我找到的唯一修复是重新安装API但仍有问题。
I have the above error and have no clue why I still have it. I have reinstalled API 23 numerous times and done googling and the only fix I found was to reinstall the API but still have the issue.
有人有修复吗?
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:23'
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.example.app"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
lintOptions {
disable 'InvalidPackage'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'me.neavo:volley:2014.12.09'
compile 'com.google.code.gson:gson:2.5'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.android.support:support-v4:23.1.1'
}
推荐答案
尝试使用 compileSdkVersion 23
而不是 compileSdkVersion'Google Inc.:Google API:23'
这篇关于错误:原因:无法使用哈希字符串'Google Inc.:Google API:23'查找目标:E:\ Android2 \ SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文