downloaded a project on github today, opened it up and ran android studio, configuration failed.
1. Component download failed
gradle automatic configuration file, need to download some components, it is estimated that some of the components of this project download address is access to the external network… This problem is solved by connecting the external network VPN and reconfiguring it
2.
search, this should be caused by the inconsistency of the built-in SDK platform version of android, my version in android studio is not consistent with this project…
we can see from the error message that this project needs android-23, but I did not install it. The solution:
1. Open android SDK manager:
2, click “show package details” in the lower right corner, select all components related to android-23, apply:
3, waiting to download
3, supplement
actually the configured version can be found on github, next time you download the configuration, you can look at the version, make sure the package version is available before you start the configuration!
also can not download so many versions of the method (it is really time and space consuming) can see the details of this article: Android learning notes | 2.2 migration of the old version of Android project
Read More:
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- Failed to find target with hash string ‘android-25’ in:D:\SDK
- Failed to find target with hash string”android-21″ in:D:\AndroidVersionSdk
- 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
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- 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
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- How to use Android android:supportsRtl attribute
- Error inflating class in WebView in Android 5. X android.webkit.WebView Solutions
- The solution of “failed to load il2cpp” in Android package launched by unity
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Android Studio Error: Invoke-customs are only supported starting with Android O (–min-api 26)
- When Android Studio runs the app, it prompts Error: Please select Android SDK
- Android android.intent.category Purpose and use of. Launcher
- Android 9.0 APP Install Android 4.4 Error: classnotfoundexception
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- android studio:Error inflating class android.support.v4.widget.SwipeRefreshLayout