android更新后出现的错误,Android 7用户无法更新我的应用,出现错误-504

如标题所示,我的android 7用户无法获取我的应用程序的最新更新.

Note this is error -504

我的应用程序是使用API​​ 22构建的.我尝试使用23和24构建它,每次构建都出现相同的错误.如果我直接将应用程序部署到电话上,那么它确实可以工作,但发布时却不能.

有几篇关于这个问题的文章,似乎都没有确定的解决方案.我改变了所有可能的事情,但没有结果.

>更改了每个API级别并构建了工具

>尝试了不同的游戏服务

>添加了applicationId到gradle

>启用的multidex

编辑:

这是我尝试进行adb安装时得到的:

Failed to install signed.apk: Failure

[INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates

from /data/app/vmdl2066131695.tmp/base.apk: META-INF/CERT.SF indicates

/data/app/vmdl2066131695.tmp/base.apk is signed using APK Signature

Scheme v2, but no such signature was found. Signature stripped?]

我将添加针对此错误找到的所有帖子:

My dependencies:

compile 'com.android.support:multidex:1.0.1'

compile files('src/main/libs/javax.inject-1.jar')

compile files('src/main/libs/junit-4.11.jar')

compile files('src/main/libs/hamcrest-core-1.3.jar')

compile files('src/main/libs/GeoLib.jar')

compile files('src/main/libs/GeoPolygons.jar')

compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'

compile files('src/main/libs/javax.annotation-3.2-b06-sources.jar')

compile ('uk.co.chrisjenx:calligraphy:2.1.0') {

exclude group: 'com.android.support'

}

compile('com.google.android.gms:play-services:8.+') {

exclude group: 'com.android.support'

}

compile('com.android.support:appcompat-v7:24.2.1') {

exclude group: 'com.android.support'

}

compile('com.android.support:support-v4:24.2.1') {

exclude group: 'com.android.support', module: 'support-annotations'

}

compile('com.android.support:palette-v7:24.2.1') {

exclude group: 'com.android.support'

}

compile files('src/main/libs/FlurryAnalytics-6.1.0.jar')

androidTestCompile('com.android.support.test:runner:0.4.1') {

exclude group: 'com.android.support', module: 'support-annotations'

}

androidTestCompile('com.android.support.test:rules:0.4.1') {

exclude group: 'com.android.support', module: 'support-annotations'

}

androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.1') {

exclude group: 'com.android.support', module: 'support-annotations'

}

androidTestCompile('com.android.support.test.espresso:espresso-intents:2.2.1') {

exclude group: 'com.android.support', module: 'support-annotations'

}

androidTestCompile('com.android.support.test.espresso:espresso-web:2.2.1') {

exclude group: 'com.android.support', module: 'support-annotations'

}

debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1' // or 1.4-beta1

releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1' // or 1.4-beta1

testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1' // or 1.4-beta1

testCompile 'junit:junit:4.11'

testCompile('org.mockito:mockito-core:1.9.5') {

exclude group: 'org.hamcrest'

}

compile 'com.squareup:otto:1.3.5'

compile 'com.android.support:support-annotations:24.2.1'

compile 'com.google.code.findbugs:jsr305:2.0.1'

compile 'com.nineoldandroids:library:2.4.0'

compile 'pl.charmas.android:android-reactive-location:0.4@aar'

compile 'io.reactivex:rxjava:1.0.3'

compile 'com.github.castorflex.smoothprogressbar:library:1.1.0'

compile 'org.mod4j.org.apache.commons:lang:2.1.0'

compile 'com.android.support:support-v4:24.2.1'

解决方法:

为了将来参考,我设法解决了这个问题.问题出在新的签名系统上.我做了手动签名和对齐.在对您的应用进行签名然后将其压缩对齐之前.对于新的Android版本,它将失败.签名应该是最后一件事.

标签:google-play,android

来源: https://codeday.me/bug/20191026/1937869.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值