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.
solution
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 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.4/gradle-3.1.4.pom'. Received status code 405 from server: Method Not Allowed
Enable Gradle 'offline mode' and sync project
configure maven address for domestic :
allprojects {
repositories {
google()
jcenter()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
}
Android studio gradle cannot get the pom file