build.gradle file as described below to complete the integration.
build.gradle under your application.dependencies.dependencies {implementation 'com.tencent.liteav:LiteAVSDK_Live:latest.release'}
dependencies {implementation 'com.tencent.liteav:LiteAVSDK_Live:latest.release@aar'}
defaultConfig, specify the CPU architecture to be used by the application. Currently, LiteAVSDK supports armeabi, armeabi-v7a, and arm64-v8a.defaultConfig {ndk {abiFilters "armeabi-v7a", "arm64-v8a"}}


build.gradle under your project’s root directory to specify the local path for the repository.

app/build.gradle, add code that references the AAR file.

implementation(name:'LiteAVSDK_Live_11.2.0.13154', ext:'aar')
defaultConfig of app/build.gradle, specify the CPU architecture to be used by the application. Currently, LiteAVSDK supports armeabi, armeabi-v7a, and arm64-v8a.defaultConfig {ndk {abiFilters "armeabi-v7a", "arm64-v8a"}}


armeabi, armeabi-v7a, and arm64-v8a folders to the app/libs directory.

app/build.gradle.

dependencies {implementation fileTree(dir:'libs',include:['*.jar'])}
build.gradle under the project’s root directory to specify the local path for the repository.

app/build.gradle, add code that references the SO libraries.

defaultConfig of app/build.gradle, specify the CPU architecture to be used by the application. Currently, LiteAVSDK supports armeabi-v7a, and arm64-v8a.defaultConfig {ndk {abiFilters "armeabi-v7a", "arm64-v8a"}}

packagingOptions {pickFirst '**/libc++_shared.so'doNotStrip "*/armeabi/libYTCommon.so"doNotStrip "*/armeabi-v7a/libYTCommon.so"doNotStrip "*/x86/libYTCommon.so"doNotStrip "*/arm64-v8a/libYTCommon.so"}
AndroidManifest.xml. LiteAVSDK needs the following permissions:<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.RECORD_AUDIO" /><uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /><uses-permission android:name="android.permission.BLUETOOTH" /><uses-permission android:name="android.permission.CAMERA" /><uses-permission android:name="android.permission.READ_PHONE_STATE" /><uses-feature android:name="android.hardware.camera.autofocus" />
public class MApplication extends Application {@Overridepublic void onCreate() {super.onCreate();String licenceURL = ""; // your licence urlString licenceKey = ""; // your licence keyV2TXLivePremier.setEnvironment("GDPR"); // set environmentV2TXLivePremier.setLicence(this, licenceURL, licenceKey);V2TXLivePremier.setObserver(new V2TXLivePremierObserver() {@Overridepublic void onLicenceLoaded(int result, String reason) {Log.i(TAG, "onLicenceLoaded: result:" + result + ", reason:" + reason);}});}}
proguard-rules.pro file, add LiteAVSDK classes to the "do not obfuscate" list.-keep class com.tencent.** { *;}
Feedback