百度为eclipse项目中的推送通知提供android SDK。它在Android工作室运行良好但没有。我得到errorCode 10101(整合检查错误)任何人都知道吗?
答案 0 :(得分:2)
错误10101表明百度推送服务的核心库存在问题。根据我的经验,通常意味着其中一个.so库没有正确加载,或者与您的定义无关。例如,如果你有一个转到armeabi-v7a文件夹的设备,而libbdpush_.so文件没有权利,那么该设备就无法连接到baidu的推送服务
百度指南:http://push.baidu.com/doc/android/api
您是否导入了所有必需的库并进行了所有配置? 如果您已完成以下所有步骤,但仍然收到错误10101,则表示您所拥有的特定手机在其相关的核心库文件夹下没有正确的.so库。 / p>
调整您的清单
<receiver
android:name="com.baidu.android.pushservice.PushServiceReceiver"
android:process=":bdservice_v1">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<action android:name="com.baidu.android.pushservice.action.notification.SHOW" />
<action android:name="com.baidu.android.pushservice.action.media.CLICK" />
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
</receiver>
<receiver
android:name="com.baidu.android.pushservice.RegistrationReceiver"
android:process=":bdservice_v1">
<intent-filter>
<action android:name="com.baidu.android.pushservice.action.METHOD" />
<action android:name="com.baidu.android.pushservice.action.BIND_SYNC" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<service
android:name="com.baidu.android.pushservice.PushService"
android:exported="true"
android:process=":bdservice_v1">
<intent-filter>
<action android:name="com.baidu.android.pushservice.action.PUSH_SERVICE" />
</intent-filter>
</service>
<service
android:name="com.baidu.android.pushservice.CommandService"
android:exported="true" />
<meta-data
android:name="api_key"
android:value="put_your_baidu_api_key_here" />