Tagged articles
33 articles
Page 1 of 1
Sohu Smart Platform Tech Team
Sohu Smart Platform Tech Team
Aug 9, 2025 · Mobile Development

Why FastJson Crashes with Kotlin Data Classes and How to Fix It

This article examines the challenges of using FastJson, FastJson2, Gson, and Kotlinx-serialization to parse Kotlin data classes in Android, explains why crashes occur due to reflection and null-safety issues, and provides step-by-step solutions—including code modifications, ProGuard rules, and library alternatives—to achieve reliable JSON handling.

AndroidKotlinProGuard
0 likes · 20 min read
Why FastJson Crashes with Kotlin Data Classes and How to Fix It
vivo Internet Technology
vivo Internet Technology
Nov 13, 2024 · Mobile Development

APK Size Optimization Techniques for Game Center Application

Ke Jie explains why reducing the Game Center APK—by eliminating alpha‑PNG images, unused code and resources, limiting language and density assets, disabling v1 signing, compressing images, loading native libraries on demand, shipping only 64‑bit binaries, enabling code/resource shrinking and R‑file inlining—cut size by about 31% (≈20 MB), boosting download conversion and launch performance.

APK OptimizationAndroidApp Size Reduction
0 likes · 14 min read
APK Size Optimization Techniques for Game Center Application
Java Tech Enthusiast
Java Tech Enthusiast
Aug 4, 2024 · Information Security

Java Code Obfuscation and Encryption with ProGuard, Xjar, and ClassFinal

The guide explains how to protect a Java core module deployed on user servers by integrating ProGuard for bytecode obfuscation, Xjar for JAR encryption, and ClassFinal for class‑file encryption, providing Maven plugin configurations, startup commands, and verification that the combined approach renders decompiled code empty or unreadable.

ClassFinalJavaProGuard
0 likes · 20 min read
Java Code Obfuscation and Encryption with ProGuard, Xjar, and ClassFinal
Code Ape Tech Column
Code Ape Tech Column
Aug 1, 2024 · Information Security

Using ProGuard, Xjar, and ClassFinal for Java JAR Obfuscation and Encryption in Spring Boot Projects

This article explains how to protect Java backend code deployed on user servers by applying ProGuard, Xjar, and ClassFinal for JAR obfuscation and encryption, detailing Maven configurations, startup commands, decompilation results, and best‑practice integration of both tools in a Spring Boot project.

JavaObfuscationProGuard
0 likes · 24 min read
Using ProGuard, Xjar, and ClassFinal for Java JAR Obfuscation and Encryption in Spring Boot Projects
Top Architect
Top Architect
Mar 25, 2024 · Backend Development

Design and Evaluation of Java Backend Code Protection Solutions

This article analyses the challenges of protecting intellectual property in B2B Java applications, reviews existing obfuscation and encryption tools, and proposes a lightweight Maven‑based encryption plus javaagent decryption scheme that secures both proprietary code and third‑party dependencies while keeping performance impact below five percent.

BackendJavaProGuard
0 likes · 9 min read
Design and Evaluation of Java Backend Code Protection Solutions
Selected Java Interview Questions
Selected Java Interview Questions
Jan 30, 2024 · Backend Development

Using ProGuard, Xjar, and ClassFinal to Obfuscate and Encrypt Java JARs in Spring Boot Projects

This article explains how to protect Java server-side code from decompilation by applying ProGuard shrinking/obfuscation and Xjar/ClassFinal encryption, provides detailed Maven plugin configurations, sample pom.xml snippets, command‑line launch options, and demonstrates the resulting protected JARs with screenshots.

JavaObfuscationProGuard
0 likes · 22 min read
Using ProGuard, Xjar, and ClassFinal to Obfuscate and Encrypt Java JARs in Spring Boot Projects
Java Architect Essentials
Java Architect Essentials
Jan 30, 2024 · Backend Development

Using ProGuard for Java Code Obfuscation in Maven Projects

This article explains how to protect Java applications from decompilation by configuring a ProGuard file and adding the ProGuard Maven plugin, then building the project to generate an obfuscated JAR, complete with step‑by‑step instructions and sample configuration code.

BackendJavaObfuscation
0 likes · 5 min read
Using ProGuard for Java Code Obfuscation in Maven Projects
Sohu Tech Products
Sohu Tech Products
Jan 24, 2024 · Mobile Development

How to Fix FastJson Parsing Errors in Kotlin Android Apps

This article analyzes why FastJson, Gson, and Kotlinx‑serialization encounter crashes or incorrect handling when parsing Kotlin data classes in Android, explains the root causes such as missing no‑arg constructors and null‑safety issues, and provides concrete code fixes, ProGuard rules, and a unified wrapper API for reliable JSON processing.

AndroidGsonKotlin
0 likes · 20 min read
How to Fix FastJson Parsing Errors in Kotlin Android Apps
Meituan Technology Team
Meituan Technology Team
May 18, 2023 · Mobile Development

Adapting Meituan's Android Robust Hot‑Fix Framework to R8 and Optimization Strategies

The article explains how Meituan migrated its method‑instrumentation hot‑fix system Robust from ProGuard to Google’s R8 by moving change detection ahead of optimization, disabling or tuning R8’s built‑in optimizations, and implementing special handling for anonymous classes, inlined methods, super calls, constructors and static initializers to ensure reliable patch generation.

AndroidHotfixProGuard
0 likes · 21 min read
Adapting Meituan's Android Robust Hot‑Fix Framework to R8 and Optimization Strategies
Architect's Tech Stack
Architect's Tech Stack
Nov 21, 2022 · Backend Development

How to Obfuscate Java Projects Using ProGuard and Maven

This guide explains Java compilation basics, the need for code obfuscation, provides a complete ProGuard configuration file, shows how to integrate the ProGuard Maven plugin into a pom.xml, and demonstrates building an obfuscated JAR with Maven.

JavaObfuscationProGuard
0 likes · 7 min read
How to Obfuscate Java Projects Using ProGuard and Maven
Sohu Tech Products
Sohu Tech Products
Nov 17, 2022 · Information Security

How to Obfuscate Java Projects Using ProGuard and Maven

This article explains the concepts of Java compilation and decompilation, introduces code obfuscation with ProGuard, and provides step‑by‑step Maven configuration to protect Java applications from reverse engineering, including sample configuration files and build commands.

ObfuscationProGuardbuild tools
0 likes · 7 min read
How to Obfuscate Java Projects Using ProGuard and Maven
Code Ape Tech Column
Code Ape Tech Column
Nov 17, 2022 · Information Security

Java Code Obfuscation with ProGuard: A Step‑by‑Step Guide

This article explains how Java source files are compiled into class files, how they can be decompiled, and provides a detailed, code‑rich tutorial on protecting a Spring Boot project by configuring ProGuard through a proguard.cfg file and Maven plugin to produce an obfuscated JAR.

Backend DevelopmentJavaProGuard
0 likes · 7 min read
Java Code Obfuscation with ProGuard: A Step‑by‑Step Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 28, 2022 · Mobile Development

Inlining R Files for Android Package Size Optimization

This article explains how Android developers can reduce APK size by inlining R files, detailing the generation of R.java and R.txt, the causes of oversized R files, and step‑by‑step bytecode transformation techniques using ASM to replace resource ID lookups with constant values.

InliningPackage SizeProGuard
0 likes · 11 min read
Inlining R Files for Android Package Size Optimization
Dada Group Technology
Dada Group Technology
Jul 28, 2022 · Mobile Development

How to Shrink Android APK Size: Proven Strategies and Tools

This article details a comprehensive, step‑by‑step approach to reducing Android APK size—including library pruning, resource compression, class file optimization, and automated monitoring—to keep app packages lightweight and prevent size regression over successive releases.

APKAndroidApp Size
0 likes · 14 min read
How to Shrink Android APK Size: Proven Strategies and Tools
Baidu Geek Talk
Baidu Geek Talk
Jul 18, 2022 · Mobile Development

Baidu App APK Size Optimization: Fundamentals, Tools, and Practices

The article explains why reducing APK size improves download conversion and performance, then details a systematic, divide‑and‑conquer approach for Baidu App that trims Dex, resources, native libraries and ZIP overhead using tools such as R8, AndResGuard, ByteX, Booster and AGP, achieving a reduction from roughly 123 MB to 115 MB with up to 6 MB saved per batch and outlining plans to open‑source the utilities.

APK OptimizationAndroidDEX
0 likes · 17 min read
Baidu App APK Size Optimization: Fundamentals, Tools, and Practices
JD Retail Technology
JD Retail Technology
Jun 1, 2022 · Mobile Development

Migrating JD Android App to R8: Obfuscation Rules, v1 Signing Issues, and Build Process Pitfalls

This article details JD's Android app migration to the R8 compiler, explains differences between ProGuard and R8, analyzes the impact of the -useuniqueclassmembernames rule, addresses v1 signing loss after AGP 3.6.4 upgrade, and provides practical solutions for build‑process ordering and packaging pitfalls.

AGPAndroidBuild Optimization
0 likes · 23 min read
Migrating JD Android App to R8: Obfuscation Rules, v1 Signing Issues, and Build Process Pitfalls
Baidu App Technology
Baidu App Technology
Mar 17, 2022 · Mobile Development

Baidu App APK Size Optimization: Principles, Tools, and Implementation

The Baidu App team applied a systematic, sustainable approach—combining Dex, resource, and native‑library optimizations with tools such as R8, ProGuard, AndResGuard, and custom compression pipelines—to shrink the APK by several megabytes, improve download conversion, and establish reusable mechanisms for future builds.

APKAndroidDEX
0 likes · 20 min read
Baidu App APK Size Optimization: Principles, Tools, and Implementation
Sohu Tech Products
Sohu Tech Products
Jun 16, 2021 · Mobile Development

Android Code Obfuscation: ProGuard, R8, D8 and Build Process Deep Dive

This article provides a comprehensive guide to Android code obfuscation, covering the purpose and benefits of minification, detailed ProGuard/R8 configuration, resource shrinking, desugaring, D8/R8 internals, custom obfuscation dictionaries, and modular ProGuard rules for multi‑module projects.

AndroidD8Gradle
0 likes · 23 min read
Android Code Obfuscation: ProGuard, R8, D8 and Build Process Deep Dive
Tencent TDS Service
Tencent TDS Service
Mar 28, 2019 · Mobile Development

How to Harden Android Apps: Anti‑Debugging Techniques for Java & NDK

This article explains practical anti‑debugging methods for Android applications—covering Java tools like Proguard and debugger checks, as well as NDK strategies such as ptrace, file‑node monitoring, Inotify, SO hash verification, and timing analysis—to raise reverse‑engineering difficulty.

AndroidAnti-debuggingApp Security
0 likes · 7 min read
How to Harden Android Apps: Anti‑Debugging Techniques for Java & NDK
Meituan Technology Team
Meituan Technology Team
Apr 26, 2018 · Mobile Development

Understanding ProGuard Mapping Conflicts and Incremental Obfuscation

The article explains how ProGuard’s incremental obfuscation using –applymapping can cause mapping conflicts when previously assigned method names are overwritten, producing warnings and inconsistent names such as ‘c_’, and details the internal workflow, inline handling, and practical steps to diagnose and resolve these issues.

AndroidIncremental BuildMapping
0 likes · 18 min read
Understanding ProGuard Mapping Conflicts and Incremental Obfuscation
21CTO
21CTO
Nov 27, 2017 · Mobile Development

Boost Android App Performance: 5 Proven Optimization Strategies

This article outlines practical techniques for creating high‑performance Android apps, covering minimal library usage, streamlined design resources, asynchronous loading, build‑time reductions with ProGuard, and the importance of thorough discussion before implementation.

AndroidApp SizeMobile Development
0 likes · 6 min read
Boost Android App Performance: 5 Proven Optimization Strategies
Hujiang Technology
Hujiang Technology
Jun 22, 2017 · Mobile Development

Elegant Kotlin‑Java Mixed Programming for Android Projects

This article explains how to smoothly integrate Kotlin and Java in Android development, covering IDE conversion, class handling, ProGuard pitfalls, library considerations, calling conventions, keyword conflicts, static methods, package‑level functions, and null‑safety with practical code examples.

Code ConversionInteropProGuard
0 likes · 9 min read
Elegant Kotlin‑Java Mixed Programming for Android Projects
Meituan Technology Team
Meituan Technology Team
Apr 7, 2017 · Mobile Development

Techniques for Reducing Android APK Size in Meituan App

To shrink Meituan’s Android APK, developers can optimize the ZIP layout, enable ProGuard/R8 dex shrinking, inline R fields, convert images to WebP or VectorDrawable, disable redundant PNG crunching, activate shrinkResources, limit packaged languages, obfuscate resources with tools like AndResGuard, and eliminate duplicate or unused assets.

APK size reductionAndroidProGuard
0 likes · 18 min read
Techniques for Reducing Android APK Size in Meituan App
Meituan Technology Team
Meituan Technology Team
Mar 17, 2017 · Mobile Development

Automated Patch Generation for the Robust Android Hot‑Update System

The open‑source Robust hot‑update system now includes an automated patch‑generation tool that scans original methods, rewrites field and method accesses to reflective calls, and creates hook classes to overcome ProGuard’s obfuscation, optimization, and inner‑class challenges, cutting patch creation time from a day to minutes.

AndroidHotUpdatePatchAutomation
0 likes · 22 min read
Automated Patch Generation for the Robust Android Hot‑Update System
Tencent Music Tech Team
Tencent Music Tech Team
Apr 28, 2016 · Mobile Development

Understanding and Using EventBus 3 in Android: Setup, Core Architecture, Index Acceleration, and Best Practices

EventBus 3 provides a lightweight publish/subscribe framework for Android that simplifies inter‑module communication by allowing any object to be posted and received via @Subscribe methods, with optional index acceleration for faster registration, customizable thread modes, and guidance on setup, ProGuard rules, pitfalls, and alternatives.

AndroidAnnotation ProcessingEventBus
0 likes · 22 min read
Understanding and Using EventBus 3 in Android: Setup, Core Architecture, Index Acceleration, and Best Practices