While recently working on the new Android Studio 4.X, I can across an issue where when I clicked on the activity_main.xml resource file, it did not open instead I could see a loading icon stuck in an infinite loop. I was able to resolve it and seems below could be one of the reasons if you too are facing the same issue.
If you see the above screenshot, you could see that I have two processes running, the top process is trying to download Gradle packages and the bottom one says "indexing paused due to Import "MyApp" Gradle project". So that means the project is not indexed yet and waiting for the above process to complete.
Solution:I waited for Gradle process to complete - it took ~10 mins and I was able to open activity_main.xml again :)
Comments:
- Faced the same issue, I guess its because I did a fresh install of the IDE and the first run is slow isn't it?
anon 19 Sept 2020 10:32:01 GMT
- Did not work for me? What may be the other reasons for this? Can you help?
user135 07 Aug 2020 11:23:13 GMT
- Ah! Thank you, had the same issue.
user2934 02 Aug 2020 16:08:21 GMT
- Further comments disabled!
More Posts related to Android-Studio,
- [Android Studio] failed to find Build Tools revision 23.0.0 rc1
- Android Studio: Cannot perform refactoring operation
- Error running 'app': No target device found.
- Building library Gradle Project Info: Downloading services.gradle.org
- Failed to install Android.apk on device 'emulator-5554': timeout
- Android Emulator 5.1.1 not loading on Mac OS X Android Studio
- How to Configure Eclipse keymap in IntelliJ IDE
- Android Studio 1.3 beta now Available for Developers
- Instant Run requires Tools | Android | Enable ADB integration to be enabled
- Android Studio : Implement abstract methods shortcut
More Posts:
- Android Images with Rounded Corners : ImageView - Android
- Save webpage as pdf in Google Chrome for Mac OS X - Mac-OS-X
- Change SharePoint search results FullTextSqlQuery RowLimit 10000 - SharePoint
- SharePoint Excel error - The workbook cannot be opened because it contains the following features that are not supported by Excel in the browser - SharePoint
- FileZilla Connection time out Failed to retrieve directory listing - FTP
- Tutorial Java SOAP WebServices JAS-WS with Eclipse J2EE IDE and Tomcat Server Part 1 - Java
- Android RatingBar Example - Android
- How to use Content Assist in Eclipse IDE - Eclipse
- List of Java Keywords - Java
- [Solutions] Android Error in an XML file: aborting build. Eclipse SDK - Android
- How to configure PDF iFilter for SharePoint - SharePoint
- Create simple struts2 project using maven commands - Java
- Change Height of Android ActionBar - Android
- How to enable disable SharePoint Developer Dashboard for tracing troubleshooting - SharePoint
- Eclipse: Updating Maven Project. Unsupported IClasspathEntry kind=4 - Eclipse