lckiss | 伪斜杠青年

A stop job is running for Session

Original link: http://i.lckiss.com/?p=8262 Recently, when elementary is shutting down, it is easy to get stuck for 1m30s. Press exec and find that it is blocked by a certain process. The solution is naturally nothing, but this time can be shortened. sudo vi /etc/systemd/system.conf Change one line (default is comment state): DefaultTimeoutStopSec=10s That’s it, in fact,

A stop job is running for Session Read More »

Android uses ZipFile to compress/decompress zip files

Original link: http://i.lckiss.com/?p=8242 Background & Requirements A non-hierarchical minimalist compression, mainly used for application databases and SP import and export, and does not want to introduce three-party plug-in libraries. accomplish object ZipManager { fun zip(files: Array<File>, zipFile: File) { ZipOutputStream(zipFile. outputStream ()). use { output -> files.forEach { file -> file.inputStream (). use { input

Android uses ZipFile to compress/decompress zip files Read More »

About the Tencent X5 browser kernel / WebView clearing history is invalid

Original link: http://i.lckiss.com/?p=8124 Due to some special reasons, a singleton of WebView is needed. The purpose is to keep the login information of H5 in the application use and avoid repeated logins. When exiting the application, the login information needs to be destroyed for security reasons. The solution is not to destroy the WebView, and

About the Tencent X5 browser kernel / WebView clearing history is invalid Read More »

Jetpack Compose Crash when adding view to window manager

Original link: http://i.lckiss.com/?p=8056 The error is something like this: java.lang.IllegalStateException: ViewTreeLifecycleOwner is not present in this window. Use ComponentActivity, FragmentActivity or AppCompatActivity to configure ViewTreeLifecycleOwner automatically, or call ViewTreeLifecycleOwner.set() for this View or an ancestor in the same window. In fact, I discovered this problem when I first came into contact with it a few

Jetpack Compose Crash when adding view to window manager Read More »

The problem that Firfox Win 10 101.0.x version cannot be used normally

Original link: http://i.lckiss.com/?p=8050 I don’t usually use Firefox, because many websites are not very compatible with Firefox, especially work-related webpages, such as Blue Lake and some background mock platform webpages. The current update method of Firefox is automatic update, restarting the browser to update immediately, but the latest version cannot be used normally, and the

The problem that Firfox Win 10 101.0.x version cannot be used normally Read More »

Some feelings/pits of using Jetpack Compose in a formal environment

Original link: http://i.lckiss.com/?p=8041 Background : UI development using Jetpack Compose on an online package. Impact : In some cases, AutoSize does not support ComposeView, and the Fragment of the old View system is nested in Compose’s Activity. Solution : Rewrite the relevant requirements using native writing methods such as xml. Details : A few months

Some feelings/pits of using Jetpack Compose in a formal environment Read More »

java.lang.NoClassDefFoundError: Failed resolution of:$ExternalSyntheticLambda0;

Original link: http://i.lckiss.com/?p=8032 Background : I have seen a special case of online crash when kotlin and java are mixed together, which can be determined to be a crash caused by non-obfuscation/null pointer. Affected models : Android 5.1.1, 6.0 vivo, oppo, Huawei and other old models. Final solution : rewrite the kotlin part in java.

java.lang.NoClassDefFoundError: Failed resolution of:$ExternalSyntheticLambda0; Read More »