Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

"Execution of compression failed" error when building project in Android Studio 3.1

I also run into this problem lately. This happened because I included a very large zip file in the assets. I fixed this issue by adding dexoptions in app build.gradle

android {
    dexOptions {
        javaMaxHeapSize "4g"
    } 
}

And increasing JVM heap size

org.gradle.jvmargs=-Xmx4608M

like this.Go to gradle.properties to find this option.

Tags:

Android

Android Gradle Plugin

Android Studio 3.0

Related

Axios/XMLHttpRequest is sending GET instead of POST in production environment Auto remove container with docker-compose.yml Copy to clipboard using jquery? Google Sheets: How do I filter view two columns OR instead of AND Angular 5 Service to read local .json file How to add a link to a List in material-ui 1.0? How to use Enum with SQLAlchemy and Alembic? SQL Server 2016, Invalid object name 'STRING_SPLIT' How to use conditions in .gitlab-ci.yml variables? MatDatepickerFilter - Filter function can't access class variable How to iterate over hashmap in Kotlin? asp-append-version="true" not appending version to javascript file

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy