我不断收到错误:
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.unacademy.debug"
pkg: /data/local/tmp/com.unacademy.debug
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Installation failed since the APK was either not signed, or signed incorrectly.
If this is a Gradle-based project, then make sure the signing configuration is specified in the Gradle build script.
它发生在所有构建变体的所有设备上(尽管它们使用相同的配置)。当我使用另一个密钥时,从 android studio 运行“生成签名的 APK”工作正常。
编辑:
事实上,我确实添加了一个库compile 'org.swinglabs:pdf-renderer:1.0.5'
。删除它并重建可以解决问题。
部分build.gradle
:
signingConfigs {
debug {
keyPassword 'hello123'
storeFile file('debug_new.jks')
storePassword 'hello123'
keyAlias 'debug'
}