encountered this problem when I imported the project today. After a long time, I finally finished
find your previous project open, copy the contents of build.gradle into this project, if there is no project before, you can refer to my previous blog to solve
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
p>
div>
Read More:
- Failed to find target with hash string ‘android-25’ in:D:\SDK
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- Android Error | Failed to find target with hash string ”android-23′ in…
- AS error: failed to find target with hash string’Google Inc.:Google APIs:21′ error solution
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:\….\0.jar
- Python learning notes (5) — cross entropy error runtimeerror: 1D target tensor expected, multi target not supported
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- A repeated string is composed of two identical strings. For example, abcabc is a repeated string with length of 6, while abcba does not have a duplicate string. Given any string, please help Xiaoqiang find the longest repeated substring.
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Android studio reported an error in the release package: Lint found fatal errors while assembling a release target
- Failed to resolve: com.github
- Wrong classification of Python — assertion cur_ Target is greater than or equal to 0 and cur_ Target is less than n_ classes failed
- Hash verification failed for CDH5.8.2 installation
- Failed to get HbA FCP target mapping in lanfree backup
- Could not find module ‘xxxxxxx‘ for target ‘arm64-apple-ios-simulator‘;
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- When docker starts tomcat, the access port of the container displays 404, and the source server fails to find the representation of the target resource or is unwilling to disclose an existing one