Android 从play store升级时,我的应用程序在版本上崩溃,并且未找到资源

Android 从play store升级时,我的应用程序在版本上崩溃,并且未找到资源,android,google-play,Android,Google Play,我们最近在play store上上传了应用程序的增强版。 每当我们试图从playstroe更新应用程序时,其崩溃和引发ResourceNotFound异常,如下所示: --------- beginning of system 12-25 15:17:26.608 21693-21693/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.u

我们最近在play store上上传了应用程序的增强版。 每当我们试图从playstroe更新应用程序时,其崩溃和引发ResourceNotFound异常,如下所示:

--------- beginning of system

 12-25 15:17:26.608 21693-21693/? E/AndroidRuntime: FATAL EXCEPTION: main
                                               Process: com.ultimatix.grs.application, PID: 21693
                                               android.content.res.Resources$NotFoundException: Drawable com.ultimatix.grs.application:string/availability_united_states_with_asterisk with resource ID #0x7f0600b9
                                               Caused by: android.content.res.Resources$NotFoundException: File <font color=#FF0000>* </font>Available to join TCS on from drawable resource ID #0x7f0600b9
                                                   at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:729)
                                                   at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:575)
                                                   at android.content.res.Resources.getDrawable(Resources.java:767)
                                                   at android.support.v7.widget.ResourcesWrapper.getDrawable(Unknown Source)
                                                   at android.content.Context.getDrawable(Context.java:525)
                                                   at android.support.v4.content.ContextCompatApi21.getDrawable(Unknown Source)
                                                   at android.support.v4.content.ContextCompat.getDrawable(Unknown Source)
                                                   at android.support.v7.widget.AppCompatDrawableManager.getDrawable(Unknown Source)
                                                   at android.support.v7.widget.AppCompatDrawableManager.getDrawable(Unknown Source)
                                                   at android.support.v7.widget.AppCompatImageHelper.setImageResource(Unknown Source)
                                                   at android.support.v7.widget.AppCompatImageView.setImageResource(Unknown Source)
                                                   at com.tcs.grs.grsnavdrawer.a.a.a(Unknown Source)
                                                   at com.tcs.grs.grsnavdrawer.a.a.onBindViewHolder(Unknown Source)
                                                   at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(Unknown Source)
                                                   at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(Unknown Source)
                                                   at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(Unknown Source)
                                                   at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(Unknown Source)
                                                   at android.support.v7.widget.LinearLayoutManager$LayoutState.next(Unknown Source)
                                                   at android.support.v7.widget.LinearLayoutManager.layoutChunk(Unknown Source)
                                                   at android.support.v7.widget.LinearLayoutManager.fill(Unknown Source)
                                                   at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(Unknown Source)
                                                   at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(Unknown Source)

这听起来非常奇怪。您能否检查通过更新和安装新版本获得的APK是否相同

您可以按中所述将APK从设备上拔下


如果两个APK是相同的,那么这真的很奇怪。如果两个APK不同,则表明Google Play商店中存在漏洞,您应该通过Google Play控制台与Google Play开发者支持部门联系。他们会非常认真地对待这一点,并将其上报给适当的人员。

这可能是因为资源缩减和/或混乱。我们是否可以查看您的build.gradle脚本,特别是针对发布和调试构建类型的脚本?你用ProGuard吗?@anthonymonori,是的,我用的是ProGuard。我已经用build.gradle所需的脚本更新了这个问题。这种行为在多个API级别上是一致的,还是特定于某个版本?到目前为止,我已经在7.0上验证了这一点。似乎出现了问题;当您指向字符串资源时,不明白为什么它会抱怨drawable。你能分享它的布局和活动代码吗?我们应该可以那样发现它。谢谢你的建议,我也会这么做的。。我会把它贴在这里。但是为了看到不同/相似之处,需要在两个APK中检查什么@Nick Fortescue只需执行纯字节差异,例如在unix上使用“diff”或在Windows上使用“fc”(文件比较)。更新和新安装的FIE应该是逐字节相同的。为了比较两个APK,我使用了“fc”命令。它给予“没有遇到分歧”。是否与谷歌play商店团队参与同一问题有关?是否与应用升级期间的sharedpref许可有关?
  <string name="personal_detail_age_with_asterisk"><![CDATA[<font color=#FF0000>* </font><font color=#bdbdbe>Age</font>]]></string>
<string name="date_label_with_asterisk"><![CDATA[<font color=#FF0000>* </font><font color=#bdbdbe>Date</font>]]></string>
<string name="availability_united_states">Available to join TCS on</string>
<string name="availability_united_states_with_asterisk"><![CDATA[<font color=#FF0000>* </font>Available to join TCS on]]></string>
<string name="availability_united_states_disabled"><![CDATA[<font color=#FF0000>* </font><font color=#bdbdbe>Available to join TCS on</font>]]></string>
<string name="under_age_label_united_states">If you are under the age of 18 years, can you provide a work permit ?</string>
<string name="under_age_label_united_states_with_asterisk"><![CDATA[<font color=#FF0000>* </font>If you are under the age of 18 years, can you provide a work permit ?]]></string>
<string name="authorized_to_work_united_states">If an offer of employment is extended to you, will you be able to demonstrate that you are authorized to work in the U.S ?</string>
<string name="authorized_to_work_united_states_with_asterisk"><![CDATA[<font color=#FF0000>* </font>If an offer of employment is extended to you, will you be able to demonstrate that you are authorized to work in the U.S ?]]></string>
<string name="military_training_usa">List any military training or experience that you feel relevant to the position you are applying to</string>
       minSdkVersion 17
       targetSdkVersion 23
        versionCode 3
       versionName "1.2"
       multiDexEnabled = true
    }
repositories {
    maven { url 'http://repo1.maven.org/maven2' }
}
buildTypes {
    release {
        minifyEnabled true
        debuggable false
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        signingConfig signingConfigs.config
    }
    debug {
        minifyEnabled false
        debuggable true
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        signingConfig signingConfigs.config1
    }
}