百度为eclipse项目中的推送通知提供了android。它运行良好,但在安卓工作室不行。我得到errorCode 10101 (综合检查错误),有人知道吗?
发布于 2016-04-17 09:58:36
错误10101表明百度推送服务的核心库有问题。根据我的经验,这通常意味着其中一个.so库没有正确加载,或者与您的定义没有关联。例如,如果有一个设备转到armeabi-v7a文件夹,而那里的libbdpush_.so文件不正确,那么该设备将无法连接到百度的push服务。
百度指南:http://push.baidu.com/doc/android/api
您是否导入了所有所需的库并进行了所有配置?如果您已经完成了以下所有步骤,但仍然收到了错误10101,这意味着您拥有的特定电话在其关联核心库文件夹下没有正确的.so库。

<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" />https://stackoverflow.com/questions/35335623
复制相似问题