Objective
You may see Gradle sync fails with OpenTok Android SDK 2.22.0+ with the following error:
Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=com.vonage:webrtc:84.0.20, variant=com.vonage:webrtc:84.0.20 configuration compile, variantName=null, artifactFile=/Users/ydumburs/.gradle/caches/modules-2/files-2.1/com.vonage/webrtc/84.0.20/693d4c04eea690be174ecd0d60dd80aa19456dd9/webrtc-84.0.20.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={__current_build__=/Users/ydumburs/Documents/GitHub_local/Vonage/Android/MyApplication})
This is because there was Gradle memory increase in OpenTok Android SDK 2.22.0, which can result in the application size increasing by 2x and if the Gradle memory limit is not increased, one of the build phases can fail.
Applies To
- Vonage Video API
- OpenTok Android SDK 2.22.0, 2.22.1, and 2.22.2
Procedure
- Open the gradle.properties on Android Studio
- Change "org.gradle.jvmargs=-Xmx2048m" to "org.gradle.jvmargs=-Xmx4096m"
Articles in this section
- Screensharing outside Native SDK Application
- How many participants can join an Android session?
- Where can I see the sample code for Vonage Video Android SDK?
- What devices does the Vonage Video Android SDK support?
- Inline Installation of Screen Sharing Extensions in Chrome Deprecated
- Where can I get the Vonage Video API Android SDK?
- Why READ_PHONE_STATE permission is required while using Video API Android SDK?
- How to avoid Gradle build failure with OpenTok Android SDK 2.22.0+