DCloud APP offline SDK upgrade steps (upgrade from 3.5.3 to the latest version 3.6.7.81556_20221018)


1. Download the latest SDK

Download address: https://nativesupport.dcloud.net.cn/AppDocs/download/android

2. Configuration project

1. Basic library configuration

Copy lib.5plus.base-release.aar, [email protected], uniapp-v8-release.aar, oaid_sdk_1.0.25.aar and breakpad-build-release.aar to the libs directory Down.

Note: The new library breakpad-build-release.aar is added in HBuilder X 3.5.0 and above
insert image description here

2. Add resource references in build.gradle

Note: AndroidX is adapted after HBuilderX3.2.5.

The AndroidX version needs to add the following resources:

 implementation fileTree(include: ['*.jar'], dir: 'libs')
 implementation fileTree(include: ['*.aar'], dir: 'libs')
 implementation 'androidx.appcompat:appcompat:1.0.0'
 implementation 'androidx.legacy:legacy-support-v4:1.0.0'
 implementation 'androidx.recyclerview:recyclerview:1.0.0'
 implementation 'com.facebook.fresco:fresco:2.5.0'
 implementation "com.facebook.fresco:animated-gif:2.5.0"
 implementation 'com.github.bumptech.glide:glide:4.9.0'
 implementation 'com.alibaba:fastjson:1.1.46.android'

3. Resource allocation

The Android studio default project does not have an assets folder, which needs to be created manually at the same level as the java directory.

Create a data folder and copy resources, and copy the SDK->assets->data folder to the newly created assets folder, as shown below:

insert image description here
Note: When the SDK is upgraded, the resources under data need to be updated at the same time.

Modify dcloud_control.xml

Guess you like

Origin blog.csdn.net/u012069313/article/details/127439814