2). 配置

1.打开游戏应用模块的 build.gradle 文件,配置aihelp的信息(具体参数请咨询运营同学),添加如下内容块:

android{
   ....
   defaultConfig {
       .....
        resValue "string", "r2aihelp_app_key"                 ,"R2GAMES_app_5518756774984196b710a793bf4c061d"
        resValue "string", "r2aihelp_app_id"                 ,"r2games_platform_455ee6b95d0412fc1a969a6a4daa86f0"
        resValue "string", "r2aihelp_domain"                 ,"r2games.aihelp.net"
       .......
   }

  .....


}

2.添加aihelp的依赖(aar本地依赖的需要添加,远程依赖的可以忽略):

 // AIHelp
 implementation 'net.aihelp:android-aihelp-aar:4.1.6'

Last updated

Was this helpful?