Android Studio错误org.gradle.api.resources.ResourceException: Could not get resource

I just configured the Android Studio development environment, and the following error occurred when importing the project and compiling it:

org.gradle.api.resources.ResourceException: Could not get resource

It works fine for others, but why does it fail to compile myself? Gradle has also been downloaded and configured normally.

After reading the information online, I found the solution:

  1. Click the "Settings" option in the "File" menu to open the Settings panel (can be opened directly through the shortcut Ctrl+Alt+S)
  2. Type gradle in the search bar in the upper left corner of the Settings panel
  3. Click on the "Android Studio" menu item
  4. Check "Enable embedded Maven repository"
  5. Close the Settings panel and recompile
    Steps

Guess you like

Origin blog.csdn.net/cshoney/article/details/90143659