Failed to find target with hash string ‘android-25’ in:D:\SDK

error message

Failed to find target with hash string 'android-25' in:D:\SDK
Install missing platform(s) and sync project

watermark is so annoying!

没有找到与哈希字符串“android-25”匹配的目标在D:\ SDK。

appears in the scenario

got a nice project and opened it up locally. The above error occurred after compilation.


problem error means: no information for Android API 25 was found in the SDK. Here’s why: You need Android API 25 in your project, but you haven’t downloaded it locally.

method 1
go to SDK Manager to download the corresponding API, and then re-compile it. In the new Version of Android Studio, click Ok or Apply below to confirm the download after selecting the corresponding API.

The pom file

gradle could not get

Could not GET ''. Received status code 405 from server: Method Not Allowed
Enable Gradle 'offline mode' and sync project

configure maven address for domestic :

allprojects {
    repositories {
        maven { url '' }

Android studio gradle cannot get the pom file

Read More: