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
你的运行环境
"jcore-react-native": "^2.0.7"
,"jpush-react-native": "^2.9.7"
,0.70.6
期望效果
打包生成的apk文件,在
Android 12
版本的设备上正常打开实际效果
在测试所有的Android设备上,Android 12打开出现apk文件解析失败,Android10、Android11正常
重现步骤
在模拟器测试如下,
创建了一个
Virtual device
Make Project
Debug App
Android错误日志输出如下:
真机打开,安装apk文件,截图如下: