简体   繁体   中英

unable to create new project in Android Studio

I am new to Android Studio and I can't create or import any project. When I tried to import a new project, it show error like:

Could not find any version that matches com.android.support:support-v4:21.0.+.
Searched in the following locations:
    https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
    https://repo1.maven.org/maven2/com/android/support/support-v4/
Required by:
    Telegram-master:TMessagesProj:unspecified

Consult IDE log for more details (Help | Show Log)

Please help me solve this problem.

You need to install the packages with Android SDK Manager for the version of android you are going to develop.

See HERE and HERE how to do it.

See THIS answer to change SDK path if you need to.

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM