我更新了我的 jdk 和 sdk ,当我构建 apk 时,它正在构建但不工作,它已损坏。通过 USB 调试,我得到了这个错误。我正在使用 Unity 2018.3.9f1。请解决问题。
在 Unity 5.6.6 APK 中构建成功。
CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
D:/Babji Unity/android-sdks\platform-tools\adb.exe -s "cbe79ceb" install -r "D:\Babji Unity\Test New Unity\TestAsset.apk"
stderr[
adb: failed to install D:\Babji Unity\Test New Unity\TestAsset.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl839836997.tmp/base.apk: AndroidManifest.xml]
]
stdout[
Performing Streamed Install
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun …Run Code Online (Sandbox Code Playgroud)