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

react-native 0.70.6 打Release包生成的.apk文件,在Android 12 解析失败 #901

Open
xianguoGou opened this issue Jan 10, 2023 · 0 comments

Comments

@xianguoGou
Copy link

你的运行环境

  • 插件版本: "jcore-react-native": "^2.0.7", "jpush-react-native": "^2.9.7",
  • react-native 版本:0.70.6

期望效果

打包生成的apk文件,在Android 12版本的设备上正常打开

实际效果

在测试所有的Android设备上,Android 12打开出现apk文件解析失败,Android10、Android11正常

重现步骤

在模拟器测试如下,

  1. 创建了一个 Virtual device

image

  1. Make Project

image

image

  1. Debug App

image

Android错误日志输出如下:

image

01/10 17:29:28: Launching 'app' on Pixel 6 API 31.
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

List of apks:
[0] '/Users/gouxianguo/gxg/projects/cyborg/android/app/build/outputs/apk/debug/app-debug.apk'
Installation failed due to: 'Failed to commit install session 1381648148 with command package install-commit 1381648148. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1381648148.tmp/base.apk (at Binary XML file line #242): com.huawei.hms.support.api.push.PushMsgReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
Retry
Failed to launch an application on all devices

真机打开,安装apk文件,截图如下:

image

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