简体   繁体   中英

Errors after creating a new project in Android Studio

Just now I updated my android studio from build 130.737825 to build 130.878379. When I create a project for the first time, I am getting following error.

Gradle: A problem occurred configuring project ':MyApplicationadfaldf'.
    > Failed to notify project evaluation listener.
       > Could not resolve all dependencies for configuration ':MyApplicationadfaldf:_DebugCompile'.
          > Could not find any version that matches com.android.support:appcompat-v7:+.
            Required by:
                MyApplicationadfaldfProject:MyApplicationadfaldf:unspecified

What is the reason?

For others, who may be facing the same problem, Go to Tools-> Android-> SDK Manager, and update all repositories. Now, everything will work properly.

Same issue in my project was fixed with this:

In Android Studio:

-> Go to File menu -> Settings -> Gradle ->

Now in Gradle Settings just check Use Auto-Import Now update Maven will be updated in Android Studio and this error should be gone.

http://tools.android.com/knownissues#TOC-Bundled-Maven-Repository

you need to install "android support repository"

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