
dependencies.dependencies {implementation 'com.tencent.liteav:LiteAVSDK_TRTC:latest.release'}
defaultConfig, specify the CPU architecture to be used by your application.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 to import the AAR file.
defaultConfig of app/build.gradle, specify the CPU architecture to be used by your application.defaultConfig {ndk {abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"}}

AndroidManifest.xml. The TRTC SDK requires 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.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-feature android:name="android.hardware.camera.autofocus" />
android:hardwareAccelerated="false". Disabling hardware acceleration will result in failure to render remote users' videos.proguard-rules.pro file, add the classes related to the TRTC SDK to the "do not obfuscate" list:-keep class com.tencent.** { *;}
SDK/LiteAVSDK_TRTC_xxx/libs/include) and configure the include folder path and dynamic link to the SO library in CMakeLists.txt.cmake_minimum_required(VERSION 3.6)# Configure the C++ API header file pathinclude_directories(${CMAKE_CURRENT_SOURCE_DIR}/include # Copied from `SDK/LiteAVSDK_TRTC_xxx/libs/include`)add_library(native-libSHAREDnative-lib.cpp)# Configure the path of the `libliteavsdk.so` dynamic libraryadd_library(libliteavsdk SHARED IMPORTED)set_target_properties(libliteavsdk PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/${ANDROID_ABI}/libliteavsdk.so)find_library(log-liblog)# Configure the dynamic link as `libliteavsdk.so`target_link_libraries(native-liblibliteavsdk${log-lib})
trtc namespace. To simplify your code, we recommend you use the trtc namespace.using namespace trtc;
Feedback