Android 7用户无法更新我的应用,收到错误-504

时间:2016-10-11 09:02:22

标签: android google-play

由于标题声明我的Android 7用户无法获得我的应用的最新更新。

  

请注意,这是错误 -504

我的应用程序是使用API​​ 22构建的。我尝试使用23和24构建它,每次构建都会遇到相同的错误。如果我直接将应用程序部署到手机,它确实有效,但在我发布时却没有。

有几个帖子有这个问题,但似乎都没有明确的解决方案。我改变了所有可能的事情而没有结果。

  1. 更改了每个API级别并构建工具
  2. 尝试过不同的游戏服务
  3. 在gradle中添加了applicationId
  4. 启用multidex
  5. 修改 这是我在尝试adb安装时得到的结果:

      

    无法安装signed.apk:失败   [INSTALL_PARSE_FAILED_NO_CERTIFICATES:无法收集证书   来自/data/app/vmdl2066131695.tmp/base.apk:META-INF / CERT.SF表示   /data/app/vmdl2066131695.tmp/base.apk使用APK签名进行签名   方案v2,但没有找到这样的签名。签名剥离?]

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

      

    我的依赖项:

        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'
    

1 个答案:

答案 0 :(得分:4)

为了将来参考,我设法解决了这个问题。问题在于新的签名系统。我做了手动签名和对齐。在你签署你的应用程序然后zipalign它之前。对于新的Android版本,它将失败。签名应该是最后一件事。

相关问题