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:
- Mobile app development: installation and configuration of react native
- Errorjava.lang.NullPointerException(no error message)
- Failed to find Build Tools revision 27.0.3
- Failed to find target with hash string ‘android-25’ in:D:\SDK
- [problem record] installed build tools revision 31.0.0 is broken during Android studio compilation
- Error:Could not create the Java Virtical Machine. Error: A fatal exception has occurred. program
- Re installing Android studio always fails to install SDK when installing software (solution)
- Some processing experiences of failed to notify build listener
- AS3.5 Error gradle project sync failed.Basic functionality(e.g.editing,debugging) will not work
- [Solved] Android gradle Error: gradle project sync failed. Please fix your project and try again
- Android network request framework okhttputils reports an error (okhttp3 cannot be found)
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- Gradle sync failed: Sync failed: reason unknown
- As Error:Failed to find configured root that contains /storage/emulated/0/xxx/xxx/xxx.png
- Solve gradle project refresh failed
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- Android studio NDK setting is gray and cannot be solved
- Cannot run program “git.exe”: CreateProcess error=2 the correct solution
- Failed to load platform rendering library
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity