jpush / jpush-react-native

JPush's officially supported React Native plugin (Android & iOS). 极光推送官方支持的 React Native 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
1.35k stars 336 forks source link

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

Open xianguoGou opened 1 year ago

xianguoGou commented 1 year ago

你的运行环境

期望效果

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

实际效果

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

重现步骤

在模拟器测试如下,

  1. 创建了一个 Virtual device

    image
  2. Make Project

    image image
  3. 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