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

weex 在android 14 系统上面因registerReceiver崩溃 #3344

Open
nieyuqi opened this issue Jul 24, 2024 · 0 comments
Open

weex 在android 14 系统上面因registerReceiver崩溃 #3344

nieyuqi opened this issue Jul 24, 2024 · 0 comments

Comments

@nieyuqi
Copy link

nieyuqi commented Jul 24, 2024

compile 33, targetsdk 35,运行在android 14的系统上面崩溃:
One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
分析原因应该是android 14 系统上面注册广播的时候必须用下面三个参数的方法
public abstract Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter, @RegisterReceiverFlags int flags);
但是在weex 的0.30.2版本中WXSDKInstance类的onActivityCreateff中registerReceiver用了两个参数的方法:
try {
this.getContext().registerReceiver(this.mGlobalEventReceiver, new IntentFilter("wx_global_action"));
} catch (Throwable var2) {
Throwable e = var2;
WXLogUtils.e(e.getMessage());
this.mGlobalEventReceiver = null;
}
请问有weex android sdk的最新版本是什么版本呢,有解决这个问题吗

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