Java 未能找到哈希字符串为“android-25”的目标在安装SDK 25时不会消失
在Android Studio中,我面临错误:Java 未能找到哈希字符串为“android-25”的目标在安装SDK 25时不会消失,java,android,android-studio,gradle,Java,Android,Android Studio,Gradle,在Android Studio中,我面临错误: Failed to find target with hash string 'android-25' in: [path] Possible cause: Build properties not found for package Android SDK Platform 25 没问题,我想,因此根据这一点,我只是安装了缺失的Android SDK: 然而,我仍然有这个问题。即使在重建项目之后 重新启动Android Studio 格雷德尔
Failed to find target with hash string 'android-25' in: [path]
Possible cause: Build properties not found for package Android SDK Platform 25
没问题,我想,因此根据这一点,我只是安装了缺失的Android SDK:
然而,我仍然有这个问题。即使在重建项目之后
重新启动Android Studio
格雷德尔先生
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.1.0'
defaultConfig {
applicationId "com.sample.app"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven {
url "https://jitpack.io"
}
mavenCentral()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
// Google libraries
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
compile 'com.android.support:support-v4:25.1.0'
compile 'com.google.android.gms:play-services-vision:10.0.1'
compile 'com.android.volley:volley:1.0.0'
// Third party libraries
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.paolorotolo:appintro:4.1.0'
compile 'com.github.ViksaaSkool:AwesomeSplash:v1.0.0'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'com.afollestad.material-dialogs:commons:0.8.6.0'
compile 'com.alexvasilkov:gesture-views:2.1.1'
compile 'org.adw.library:discrete-seekbar:1.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile files('libs/activation.jar')
compile files('libs/additionnal.jar')
compile files('libs/mail.jar')
compile 'com.android.support:recyclerview-v7:25.1.0'
compile 'com.android.support:cardview-v7:25.1.0'
}
注意:我已删除所有已安装的Android SDK并重新安装。不幸的是,这没有帮助
我还能做些什么来解决这个问题
以下是我的独立SDK管理器的屏幕截图:
从菜单中启动独立SDK管理器,您可以查看安装了该API级别的哪些组件。有些可能仍然没有安装,请选择并更新。从菜单中启动独立SDK管理器,这样您可以查看安装了该API级别的哪些组件。有些可能仍未安装,请选择并更新。生成后。gradle@IntelliJAmiya我已经更新了后期构建。gradle@IntelliJAmiya我在独立SDK管理器中更新了我的帖子我更新了SDK构建工具,再次收到错误消息。请查看我在独立SDK管理器中添加到帖子中的屏幕截图。我更新了SDK构建工具,再次收到错误消息。请看我在帖子中添加的截图