当前位置:网站首页>The whole process of Tinker access --- Compilation

The whole process of Tinker access --- Compilation

2022-08-11 06:35:00 The rest of my life love static

First, benchmark package generation

1. Configure tinker-id to ensure uniqueness
2. Execute assembleRelease
InInsert image description here
3. View the generated benchmark package information
Insert image hereDescription

Second, patch package generation

1. Modify baseApkDir, which must be consistent with the path of the benchmark package. The important thing is said three times: It must be consistent with the path of the benchmark package, and it must be consistent with the path of the benchmark package.Be consistent with the path of the benchmark package
insert image description here
2. Modify tinkerId: it must be different from the TINKER_ID in the manifest of the benchmark package. The important thing is said three times: It is different from the TINKER_ID in the manifest of the benchmark package, and it is different from the manifest of the benchmark package.The TINKER_ID inside is different from the TINKER_ID in the manifest of the benchmark package
inInsert image description here
Insert image description here
3. Execute tinker-buildTinkerPatchRelease
insert image description here
4. Check the generated patch package and confirm the relevant information.The YAPATCH.MF file records the relevant data of the base package and patch package
Insert image description here

Third, patch upload

1. Balabala, the benchmark package and the patch package are all generated, start uploading the patch package.1%, 15%, 25%....100%,not matching the app version that can apply the patch package,what`s the problem?
insert image description here
Insert image description here
The official will tell you to upload the benchmark package online,

Online upload?
Online upload?
Online upload?

Yes, it is online upload, you heard it right, and the official said it right

I solemnly tell you: Internet uploading is to install the benchmark package on the mobile phone, run it, remember to have a network, have a network, have a network

If you can see the running log and find 3. I/CrashReport: [Upload] Success: 804, it means the online upload is successful

2. The new patch package was successfully issued
insert image description here
Perfect, sprinkle flowers

End

The newly generated benchmark package must be uploaded online
The newly generated benchmark package must be uploaded online
The newly generated benchmark package must be uploaded onlineTo upload online

Don't ask me what online upload is, I won't tell you
Don't ask me what online upload is, I won't tell you
Don't ask me what online upload is, I won't tell you

Because I don't know either
Because I don't know either
Because I don't know either

原网站

版权声明
本文为[The rest of my life love static]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110515270878.html