Notification texts go here Contact Us Buy Now!

Gradle sync failed: removeContentEntry: removed content entry url '...' still exists after removing

Problem: Gradle sync fails with the error "removeContentEntry: removed content entry url '…' still exists after removing."

Solution 1: Build the Needed Build Variant via Terminal

  • Open your terminal and navigate to the project directory.
  • Run the following command to build the needed build variant (e.g., Release):
  • ./gradlew assembleRelease
  • Once the build is successful, switch to the needed build variant in Android Studio.

Solution 2: Export, Delete, Unzip, and Reimport Project

  1. Export your project as a .zip file.
  2. Delete the existing project folder (make a backup if necessary).
  3. Unzip the exported .zip file to a new location.
  4. Open Android Studio and import the unzipped project.

Solution 3: Remove .iml and .idea Directory (IntelliJ IDEA)

  • Locate the .iml file and the .idea directory within your project folder.
  • Delete both the .iml file and the .idea directory.
  • Restart Android Studio.
  • Solution 4: Delete Specific Files from .idea Directory (IntelliJ IDEA)

    • Navigate to the .idea directory within your project folder.
    • Delete the following files:
      • compiler.xml
      • modules.xml
    • Restart Android Studio.

    Solution 5: Delete .idea Folder and Restore (Android Studio)

    1. Delete the .idea folder within your project directory.
    2. Reopen the project in Android Studio.
    3. Close Android Studio and restore the .idea folder.

    Solution 6: Invalidate Caches and Restart (Android Studio)

    • In Android Studio, go to File > Invalidate Caches/Restart.
    • Click "Invalidate and Restart" to restart Android Studio with fresh caches.

    Solution 7: Try a Different Android Studio Version

    • If none of the above solutions work, try opening your project with a different version of Android Studio.
    • You can download older versions of Android Studio from here.

    Solution 8: Rename Project Folder

    • Rename the folder containing your Android Studio project to a different name.
    • Open Android Studio and import the renamed project.

    Solution 9: Downgrade to a Previous Android Studio Version

    • If you have been upgraded to a new version of Android Studio, try downgrading to the previous version.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.