admin管理员组文章数量:1654433
这周应用需要在百度手机助手上首发,必须集成百度智能升级sdk才能通过审核,下面分享一下集成步骤
一:在Android Studio 中加入arr包
二:在build.gradle添加依赖信息
三:配置AndroidMianifest.xml
<<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android/apk/res/android"
package="com.baidu.aiupdatesdk.demo">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data android:name="BDAPPID"
android:value="9507657"/>
<meta-data android:name="BDAPPKEY"
android:value="u3LUxgGoBb66o6iKo9ZYngYSQw7jnUVX"/>
<activity android:name="com.baidu.aiupdatesdk.demo.MainActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!—需将“com.your.domain”替换为实际包名 -->
<provider
android:authorities="com.your.domain.fileprovider"
android:name="android.support.v4.content.FileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/bdp_update_filepaths"/>
</provider>
</application>
</manifest>
主要是蓝色的字体配置好哦
版权声明:本文标题:Android 集成百度升级SDK 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1729659025a1209495.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论