无法启动 adb -- 使用 apktool 重建后 APK 无法启动

Failed to start adb -- APK doesn't start after rebuilding with apktool

我有 APK 文件,我用鼠标将它放到我的 android 模拟器上,它加载成功。然后我使用以下命令重新打包 APK:

apktool d -s app-debug.apk

cd app-debug

apktool b

当我拖放新的 APK 文件时出现此错误。我需要 -s 键来保留 .dex 文件(我需要替换 DEX,但替换时我有同样的问题)并避免 decompile/compile 步骤:

对我来说,卸载以前版本的应用程序很有帮助。 从命令行使用 adb 有助于识别错误消息。