内置 Android 来自 Wakanda 的 APK 在打开时出现解析错误

Built Android APK from Wakanda giving Parse Error when opening it

正在尝试使用 Wakanda Digital App Factory 1.0.3 构建 Android APK

根据移动疑难解答,所有内容均已安装并列为绿色。

起初我收到很多这样的警告:

warning: java/lang/Double.class(java/lang:Double.class): major version 51 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded.

我发现警告与我安装的 JDK 版本有关。 我安装了 oracle.com 的最新版本,警告消失了。


现在没有警告,我在构建过程中看到 1 个错误:

Updated the hooks directory to have execute permissions
[Environment] Error: Platform android already added.

但是 APK 已构建并且构建过程结束于:

BUILD SUCCESSFUL

Total time: 7.664 secs [Environment] Built the following apk(s):
/Users/tpenner/Documents/Wakanda/WakMon4D/WakMon4D/mobile/platforms/android/build/outputs/apk/android-release-unsigned.apk
[Build] Open the generated output for Android

我在 phone 上启用了 Unsigned Sources,但是当我尝试在我的 Samsung Galaxy S6 上打开 APK 时,出现以下错误:

Parse error

There was a problem parsing the package.

我已经尝试重建应用程序,但在尝试 install/open APK 时我总是遇到相同的解析错误。

我可以使用 Wakanda 的 运行 功能在 Android 模拟器中成功 运行 应用程序,但是无法在我的 phone 上解析构建的应用程序。

注意:解析错误仅发生在名为 android-release- 的 release build 中unsigned.apk

Wakanda 还构建了以下 debug 版本:
android-调试-unaligned.apk
android-debug.apk

两个调试版本都可以。

您的发布 APK 需要签名。

发布构建版本旨在用于Google Play 提交或生产级别使用。因此,当您尝试安装未签名的副本时,即使您选中了 Allow install from unsigned Sources.

,您的 phone 也会因为未签名而被拒绝

关注this guide,只需5分钟即可签署一个APK。