常见问题

常见问题

无法正常加载广告

请确认 APICloud 后台证书配置中的包名、初始化SDK时的媒体ID、传入的广告位id是否有误

固件版本过低导致编译错误

如编译时提示类似如下的错误,需要修改应用的固件要求5.0.1及以上。

  FAILURE: Build failed with an exception.

  * What went wrong:
  Execution failed for task ':app:processReleaseManifest'.
  > Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [:zj_kssdk:] /uzmap/.gradle/caches/transforms-1/files-1.1/zj_kssdk.aar/AndroidManifest.xml as the library might be using APIs not available in 15
      Suggestion: use a compatible library with a minSdk of at most 15,
          or increase this project's minSdk version to at least 16,
          or use tools:overrideLibrary="com.kwad.sdk" to force usage (may lead to runtime failures)

  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  * Get more help at https://help.gradle.org

  BUILD FAILED in 14s

在云编译界面右上角高级设置里面选择系统版本,更改为5.0.1或更高版本。

修改系统版本

在真机同步选择自定义 loader 时包名输入错误导致无法调试

配置 arm64-v8a 支持

  • APICloud目前不支持 armeabi-v7a 配置
  • 可以在工程的config.xml中增加一行<preference name="android_abi" value="arm64-v8a"/>使工程支持arm64-v8a