解析清单时出现解析错误。停止安装

Parse error when parsing manifest. Discontinuing installation

我有一个 apk 可以在我的所有设备上正常安装,但旧的三星 Galaxy J5(和华为 Y3)除外。

我已通过 USB 将 APK 复制到设备上,并尝试使用“我的文件”应用程序进行安装。日志如下:

02-08 11:36:56.226 1647-1674/? D/ActivityManager:  Launching com.google.android.packageinstaller, updated priority
02-08 11:36:56.226 1647-1647/? D/GameManagerService: NotifyRunnable. pkg: com.google.android.packageinstaller, type: 4, isMinimized: false, isTunableApp: false
02-08 11:36:56.226 1647-1647/? D/GameManagerService: unexpected mPrevNotiType: -1
02-08 11:36:56.246 1647-1836/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:843 com.android.server.policy.PhoneWindowManager.notifyToSSRM:9071 com.android.server.policy.PhoneWindowManager.access00:330 com.android.server.policy.PhoneWindowManager$PolicyHandler.handleMessage:1268 android.os.Handler.dispatchMessage:102 
02-08 11:36:56.246 19954-19954/? W/PackageInstaller: Parse error when parsing manifest. Discontinuing installation

有没有人也遇到过类似的情况? 我检查了我可以从未知来源安装 APK 的选项,所以这不是问题所在。我尝试从 SD 卡或内部存储器安装它,但没有成功。

如果有人遇到同样的问题。我能够通过不使用 Androidstudio 中的签名功能来修复它,而是通过手动使用 java 和 android-sdk-tools.

中的 jarsigner 和 zipalign 来修复它