简体   繁体   中英

How can I fix errors (red texts) in XML which are preventing from showing preview or running the app on Android Studio?

My laptop is dead so I tried to open my project to my friend's laptop but i cant seem to see what i made, i tried to search one xml file...

在此处输入图片说明

But it showed some red statements . I can't even see the design. Please help me . :<

Basic steps to try:

  1. File -> Settings -> Version Control -> disable the VCS

在此处输入图片说明

  1. File -> Sync with File System

  2. File -> Sync Project with Gradle Files

  3. Build -> Clean Project

  4. Build -> Rebuild Project

  5. File -> Invalidate Cashes / Restart

Solving No facet found in module:

  1. Remove the .idea folder and any .iml files
  2. Re-import the project into Android Studio.

I kinda tried to close the project and tried to import the project . Now i can see the the files inside the app java module. Thank you guys :>>

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