Closed rooparsh closed 4 years ago
Same issue here @rooparsh , Let me know if you are able to fix this.
@rooparsh facing the same. tried a lot. @berkus please help.
Hi! Please try add the following line in your project's gradle.properties:
org.gradle.jvmargs=-XX:-UseGCOverheadLimit -Xmx1536m
Let me know if it helps. @rooparsh @Anmol92verma @prudhvir3ddy
@rusmonster Still failing. Though this time error is more verbose.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalDevRelease'.
> Could not resolve all artifacts for configuration ':app:qaDebugCompileClasspath'.
> Failed to transform chat-android-with-symbols-6.0.0.aar (com.twilio:chat-android-with-symbols:6.0.0) to match attributes {artifactType=android-manifest, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.
> Execution failed for JetifyTransform: /home/circleci/.gradle/caches/modules-2/files-2.1/com.twilio/chat-android-with-symbols/6.0.0/709638113c08f38288496219d348f65966aa87ab/chat-android-with-symbols-6.0.0.aar.
> Java heap space
@rooparsh
what resource_class
do you use in circleci executor?
resource_class: xlarge
gradle.properties
. -Xmx4096m for instancebtw what's versions of gradle
and android gradle plugin
do you use?
@rooparsh also gradle probably takes less memory for sdk version WITHOUT symbols. So better to use it for build on CI in case if you don't upload symbols from CI.
@rusmonster even with 4096m its failing.
Gradle Plugin : 4.0.0 Gradle : 6.1.1
we are currently using this sdk com.twilio:chat-android-with-symbols:${Versions.LibVersion.TWILIO}
@rusmonster Thanks for the suggestion. This dependency worked.
com.twilio:chat-android:6.0.0
Description
Android Build Failing on Circle CI because of Twilio Chat Sdk
We are unable to build android app on Circle Ci because of daemon disappearing every time we use twilio chat sdk. Without it, we are able to do it.
Every time we use twilio sdk , we receive daemon disappeared unexpectedly error. We tried using 4gb heap size on circle ci, tried caching resources but still no luck.
Code
We are using this gradle command clean app:assembleRelease -Dkotlin.compiler.execution.strategy=in-process -Dkotlin.incremental=false
Reproduces how Often
Everytime we use Twilio Chat SDK
Logs
Or attach it as a file.
Versions
All relevant version information for issue.
Chat Android SDK
6.0.0
Android API
23-29