只有在使用小米红米Note 7(pie)时才出现此错误消息。我之前使用的手机是红米2,仍然可以正常工作。我尝试从Flutter或Android Studio项目进行调试,仍然得到相同的错误。当我想要尝试将调试切换到我的朋友的三星A50手机时,它完美地工作。
我尝试了这个答案中的任何方法,但对我都不起作用。
来自Flutter
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install D:\pks\flutter\delisia\build\app\outputs\apk\app.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1357086466.tmp/base.apk using APK Signature Scheme v2: SHA-256 digest of contents did not verify]
Error launching application on Redmi Note 7.
来自Android Studio
11:12 AM Session 'app': Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES
Retry
11:14 AM Executing tasks: [:app:assembleDebug] in project D:\kuliah\Aplikasi\MoLearn
11:14 AM Gradle build finished in 7 s 93 ms
11:14 AM Failed to commit install session 652017913 with command cmd package install-commit 652017913. Error: INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl652017913.tmp/0_app-debug using APK Signature Scheme v2: SHA-256 digest of contents did not verify
11:14 AM Session 'app': Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES
Retry
所以,我可以使用手机进行调试,但我只能从模拟器nox上进行调试,速度非常慢。 但是我不知道为什么有时候应用程序已经安装在我的红米Note 7手机上,当我尝试更新一些代码时,应用程序会自动卸载并再次显示错误。
我可以从Play商店下载我的应用,但这是一个发布的应用程序,我无法从中进行调试。