1. There are a lot of hot updates. Every article will see a long description of the explanation
.
2. First of all, let’s talk about the next hole and then paste the code: ① I integrated Tinker, follow the steps. But my phone just doesn’t work. After two days tangled problem where, after the person one language point wake up. Tried a different phone and it worked.
Note: Some tinken phones have been issued by me, but none of my three Honor phones has been issued. My colleague’s Meizu phone can be issued. Other phones have not been tested. I wish you every success.
3. Below I write a screenshot of the latest Tinker inheritance steps to avoid missteps
1.
This is the content of Tinkerpatch. gradle key. You need to change it to your own key
apply plugin: 'tinkerpatch-support'*/ def bakPath = file()"${buildDir}/bakApk/")
def baseInfo = "App - 3.0.3-0416-17-11-55"
def variantName = "release"TinkerpatchSupport {/** You can disable tinkerPatch **/ tinkerEnable = during debuggingtrue/** Whether to use one-click access **/ reflectApplication =true/** Whether to enable the hardening mode. This switch can be enabled only when hardening is used. **/ protectedApp =false/** Whether the patch supports new activities (exported must befalse)**/
supportComponent = false
autoBackupApkPath = "${bakPath}"/** Get the appKey **/ appKey = at tinkerPatch.com"0da4ac08945a2538"/** Note: To release a new full package, appVersion must be updated **/ appVersion ="3.0.5"
def pathPrefix = "${bakPath}/${baseInfo}/${variantName}/"
def name = "${project.name}-${variantName}"
baseApkFile = "${pathPrefix}/${name}.apk"
baseProguardMappingFile = "${pathPrefix}/${name}-mapping.txt"
baseResourceRFile = "${pathPrefix}/${name}-R.txt"Android {defaultConfig {buildConfigField} /** * is used to determine whether tinkerPatch is enabled */ android {defaultConfig {buildConfigField"boolean"."TINKER_ENABLE"."${tinkerpatchSupport.tinkerEnable}"}} /** * Generally speaking, we do not need to make any changes to the following parameters * For detailed description of each parameter, please refer to: * https://github.com/Tencent/tinker/wiki/Tinker-%E6%8E%A5%E5%85%A5%E6%8C%87%E5%8D%97 */ tinkerPatch { ignoreWarning =true
useSign = true
dex {
dexMode = "jar"
pattern = ["classes*.dex"]
loader = []
}
lib {
pattern = ["lib/*/*.so"]
}
res {
pattern = ["res/*"."r/*"."assets/*"."resources.arsc"."AndroidManifest.xml"]
ignoreChange = []
largeModSize = 100
}
packageConfig {
}
sevenZip {
zipArtifact = "Com. Tencent. Mm: SevenZip: 1.1.10"
// path = "/usr/local/bin/7za"
}
buildConfig {
keepDexApply = false}}Copy the code
Tinkerpatch.com/ official website address ——— to create an application to take appley
That’s the end of our configuration
② Now let’s start to see how to play
Now we need to generate the base pack
Let’s fix the bug
Open tinkerpatch.gradle and modify baseInfo
The next step is to build the patch
So now we need to upload the patch pack to the official website
In the background you can view the number of downloads, compositions, and applications
③ Now I will show you the error information of my Honor mobile phone for your reference ()
The end:
I wish some god could solve my problem…