简体   繁体   中英

No XML at the location: http://schemas.android.com/apk/res/android

I press Alt + Enter and I click Fetch External Resource. It just gives me the error shown in the picture. I pressed Alt + Enter because when I put my cursor over the red text in the picture, it shows "Resource registered by this uri is not recognized (Settings | Languages & Frameworks | Schemas and DTDs)"

I have tried Invalidating, Restarting, Opening and Closing the Project, Cleaning and Rebuilding, nothing seems to work.

您是否安装了Android SDK?

  • Open Android Studio > File > Project Structure :

    • Location >>> Ensure Android SDK location path is exists and correct

      • MacOS /Users/{user}/Library/Android/sdk
      • Linux /home/{user}/Android/Sdk
      • Windows %LOCALAPPDATA%\\Android\\sdk
    • Project

      • Android Plugin Repository jcenter, google() // google optional when using google services

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