Contents of articles
1、 2. Solutions
Refer to [Android hotfix] to run Tinker’s official example blog;
1、 Error information
In Tinker hotfix, the generated patch package app debug patch_ signed_ 7zip.apk to the root directory,
The following error occurred when trying to hot repair;
2021-04-23 22:52:50.533 22855-22855/tinker.sample.android V/Tinker.SamplePatchListener: receive a patch file: /storage/emulated/0/patch_signed_7zip.apk, file size:0
2021-04-23 22:52:50.536 22855-22855/tinker.sample.android I/Tinker.DefaultLoadReporter: patch loadReporter onLoadPatchListenerReceiveFail: patch receive fail: /storage/emulated/0/patch_signed_7zip.apk, code: -2
2、 Solutions
Pay attention to the patch package loading path, and tinker will automatically load the patch in the root directory_ signed_ 7zip.apk file;
receive a patch file: /storage/emulated/0/patch_signed_7zip.apk, file size:0
Run the tinkerpatchdebug gradle task, and the generated patch package name is app debug patch_ signed_ 7zip.apk ,
Blind lead, wasted dozens of minutes, looking for errors;
Add the app debug patch_ signed_ 7zip.apk renamed patch_ signed_ 7zip.apk, and then copy it to the root directory of mobile phone SD card;
Read More:
- Java uses ZipFile to decompress the zip file and runs normally under Windows. Linux reports an error
- Error in dex2jar decompilation apk error.zip The solution of
- Python fbprophet predicts that the code runs with an error
- Hot code replace failed in eclipse compilation
- Hot code replace failed error in eclipse
- Solve the problem of installing APK after Android studio compilation: error while installing apk
- Multi file decompression method GZ00 gz01 zip00 zip01 in windors Linux
- Solve the error when installing apk after compiling Android Studio: Error while Installing APK
- com.android.ddmlib.AdbCommandRejectedException: device offline Error while Installing APK (How to Fix)
- [unity] [fairygui] [ilruntime] Hot update error prompt add automatic code glist.itemextender problem
- As Error:Failed to find configured root that contains /storage/emulated/0/xxx/xxx/xxx.png
- After unity connects with androidstudio, unity packages APK with an error: commandinvocationfailure: failed to re package resources
- Unknown error (SQLite code 14): could not open database (How to Fix)
- Fast DFS small demo report error org.csource.common .MyException: getStoreStorage fail, errno code: 2
- When Dbeaver starts on Mac, it reports an error: “fail to create java virtual machine”
- Shell curl command reported an error: (60) SSL certificate problem: self signed certificate
- When Jekyll runs, it will prompt an error. Cannot load such file — webrick (LoadError)
- There is a problem decompressing the zip file: an error occurred while extracting files
- Scrapy runs a crawler with an error importerror: cannot import name suppress