{{ message }}
编译链现代化:AGP 8.11 + Gradle 8.13 + JDK 17 + AndroidX#56
Merged
Conversation
AGP 8.11 + Gradle 8.13 + JDK 17 + AndroidX 全面现代化方案, compileSdk/targetSdk 36, minSdk 26。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
12 个任务的逐步执行计划,含完整代码与构建/grep 验证门。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- manifest 启动 Activity 加 android:exported - ButterKnife 注解处理器 JDK17 放行 (--add-exports) - nonFinalResIds=false 使 R 字段 final 以兼容 @BindView - 替换已移除 API: Canvas.MATRIX_SAVE_FLAG -> save(), FloatMath -> Math
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

将 StickerCamera(2015 年的工程)的整个编译链升级到现代、可长期维护的版本,完成 AndroidX 全面迁移。已在模拟器(API 31)实机冒烟通过。
工具链
主要改动
android.support.*→androidx.*(app + 两个 vendored 模块),各模块加namespace、删 manifestpackage。RecyclerView(FilterAdapter/StickerToolAdapter重写为RecyclerView.Adapter);systembartint → edge-to-edge +WindowInsets;未使用的 MaterialEditText 直接删。@Subscribe);fastjson / universal-image-loader 本地 jar → mavenCentral 坐标。.so迁到jniLibs,裁掉废弃 ABI(armeabi/mips/mips64),保留 arm64-v8a/armeabi-v7a/x86/x86_64。构建适配(compileSdk 36 / JDK 17 暴露的问题)
android:exported="true"(targetSdk 31+ 要求)。--add-exports/--add-opens访问 javac 内部 API。android.nonFinalResIds=false使 R 字段 final 以兼容@BindView。Canvas.MATRIX_SAVE_FLAG→save()、FloatMath→Math。验证
./gradlew clean assembleDebug通过,APK 含正确 ABI。设计与计划文档见
docs/superpowers/specs/与docs/superpowers/plans/。🤖 Generated with Claude Code