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
Read More:
- android studio Error Gradle project sync failed. Please fix your project and try again
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- ERROR: Unsupported method: AndroidProject.getVariantNames().
- Gradle tasks disappeared after upgrading Android stuido 4.2?
- UFIDA’s common package download failed with error forbidden
- Could not install Gradle distribution
- Solve gradle project refresh failed
- Add a warehouse in allprojects repositories and report an error
- As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- AndroidStudio sync failed solution
- Gradle sync failed: Sync failed: reason unknown
- Change API level Android studio
- ERROR Unsupported method AndroidProject.getVariantNames().
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- Some processing experiences of failed to notify build listener
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- [problem record] installed build tools revision 31.0.0 is broken during Android studio compilation
- Errorjava.lang.NullPointerException(no error message)