debug 不装签名 低版本手机是可以运行的对吧。。
但是我这里
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES
APK signature verification failed.
Retry
Failed to launch an application on all devices
那么加上签名呢?
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed collecting certificates for /data/app/vmdl1821931620.tmp/base.apk: Failed to collect certificates from /data/app/vmdl18219316.tmp/base.apk using APK Signature Scheme v2: SHA-256 digest of contents did not verify
之前好好地 可能是因为升级了build.gradle版本导致的 当前版本是
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
- id 'com.android.application' version '7.2.2' apply false
- id 'com.android.library' version '7.2.2' apply false
撤退到以前小米12可以正常运行的版本后 就是以前的代码都好好的然后点击运行 依然是报错
那么原因其实可以定位出来。。小米手机的bug
至于解决这个问题如何解决。。倒是一个棘手的问题
估计是我动了开发者里面的一些选项。
我关闭开发者然后重启手机 。。然后 依然不行。。
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES
只能先放一边了这个感觉像是小米的bug 不是我代码或者andorid任何版本的问题
先记录一下吧
恢复出厂设置。之前用的typec-typec的 。 然后换了个usb-typec的数据线 然后就好了。。