How to resolve errors 1105 and 10207 during Android SDK initialization?

更新时间:
复制 MD 格式

Problem description

If the following errors occur during Android SDK initialization:

errorcode:1105 -- errorMessage:Unstable or abnormal network connectivity
or
errorcode:10207 -- errorMessage:No network connectivity. Check the error-level logs with the tag awcn.

My on-premises network is working fine. What is causing this?

FAQ

Troubleshoot the issue as follows:

  • Ensure that the device has stable network connectivity.

  • Check for errors on 64-bit phones, such as an .so file not being found or failing to load. Refer to the documentation to verify that the .so packages required by the Push SDK are correctly packaged into the APK.

  • If the error shown in the following figure appears, check if you have copied 32-bit .so packages into a 64-bit folder. Import the .so packages only from their correct architecture folders. Do not copy them from other locations.

  • Ensure that the .so package dependencies are added successfully:

    Note
    1. If you integrate using Maven, Android Studio automatically loads the .so files.

    2. If you integrate manually, copy the libs/armeabi, libs/x86, alisdk-ut.jar, utdid4all.jar, and alicloud-android-push.jar files to the libs folder of your project. Then, configure the jniLibs directory in your app's build.gradle file.

      android {
         ...
         sourceSets {
             main {
                 jniLibs.srcDirs = ['libs']
             }
         }
      }

      For more information, see Android SDK 3.0 configuration.