Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] AGP升级 导致无法正常加载weex页面 #3333

Closed
hshm opened this issue Aug 28, 2023 · 1 comment
Closed

[Android] AGP升级 导致无法正常加载weex页面 #3333

hshm opened this issue Aug 28, 2023 · 1 comment

Comments

@hshm
Copy link

hshm commented Aug 28, 2023

Describe the bug

AGP升级,weex页面无法加载,白屏。

具体错误信息:
SO文件找不到,Weex初始化失败
image

Environment

weex sdk: 0.28.0
AGP: com.android.tools.build:gradle:7.2.1
gradle: https://services.gradle.org/distributions/gradle-7.3.3-bin.zip

Expected behavior

Screenshots

Additional context

@hshm
Copy link
Author

hshm commented Aug 28, 2023

已解决。添加如下配置即可:
jniLibs {
useLegacyPackaging = true
}

官方说明:https://developer.android.com/build/releases/past-releases/agp-4-2-0-release-notes#compress-native-libs-dsl
企业微信截图_e8ae1d15-6ea5-4b70-98e3-596a14e92290

中文相关:https://blog.csdn.net/zl_china/article/details/125212864

@hshm hshm closed this as completed Aug 28, 2023
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

No branches or pull requests

1 participant