1.1导入库

1.添加SDK必须的依赖库

打开游戏应用模块的 build.gradle 文件,向 dependencies 块中添加如下新代码:

dependencies {
    implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs')
   implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.0.0'

    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'androidx.browser:browser:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    //美团分包
    implementation 'com.meituan.android.walle:library:1.1.7'

    
}

2. 添加R2国内SDK核心AAR库

添加R2 SDK核心AAR包: rncoresdk-release.aar到游戏应用自身模块中,请按照如下步骤操作:

a.选择 rncoresdk-release.aar 文件,然后添加到libs文件夹下。

d.添加完后,务必进行 clean和Sync Project with Gradle Files。

Last updated

Was this helpful?