Skip to content

Conversation

ShadowJoker
Copy link

@ShadowJoker ShadowJoker commented Sep 28, 2025

Weex 适配 16KB PageSize 版本

简介

基于 Weex 原版,适配 Android 16KB PageSize 问题。

主要改动点

  • 升级 NDK 27,适配 16KB PageSize
  • 更新 ReactNative 发布的最新 JSCore,适配 16KB PageSize
  • 配套工具链升级,Gradle配置修改
  • C++ 代码修改,由于升级 NDK 27,部分老代码需要做调整

编译环境需求

  • Java 17
  • NDK 27.1.12297006
  • CMake 3.22.1
  • Gradle 8.10.2
  • APG 8.7.2

编译步骤

  1. 首先确保环境正确,各工具的版本严格符合编译环境说明
  2. 进入到工程中 android 路径下(可以直接使用 AndroidStudio 打开这个路径,这是一个标准的Android工程)
  3. 执行 ./gradlew assembleRelease 编译项目
  4. 编译完成后,在 android/sdk/build/outputs/aar 目录下会生成 aar 文件。
  5. 在自己的项目中使用这个 AAR 作为 Weex SDK。

注意事项

  • 如果集成 AAR 包以后,启动闪退,可能是由于 libc++shared.so 版本不一致问题。Weex AAR 包中包含了 libc++shared.so,需要确保 App 使用相同的版本和这个相同。

联系方式

  • 欢迎沟通交流,请加微信:Shepard-N7,麻烦写一下备注

@CLAassistant
Copy link

CLAassistant commented Sep 28, 2025

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


zhangpeng2023 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@wzw123975
Copy link

赞赞赞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants