【问题标题】:while building apk showing APP not installed error in android apk在构建apk时,在android apk中显示APP未安装错误
【发布时间】:2019-11-28 13:01:32
【问题描述】:

我已经生成了一个签名的 apk 并提供给客户端。下次当我使用相同的签名 apk 构建 apk 时。安装时显示为未安装应用程序。有人请告诉我为什么会这样

请找到我的 gradle 代码。版本代码为 1,版本名称为 1.1 用于以前的构建

应用插件:'com.android.application' 安卓{

compileSdkVersion 28
defaultConfig {
    applicationId "net.abc.test"
    minSdkVersion 21
    targetSdkVersion 28
    versionCode 2
    versionName "1.1"
    vectorDrawables.useSupportLibrary = true
    multiDexEnabled true
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
configurations {
    all {
        exclude group: 'org.json', module: 'json'
    }
}
packagingOptions {
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/license.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/ASL2.0'
    exclude 'META-INF/rxjava.properties'
    exclude 'META-INF/proguard/androidx-annotations.pro'
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
 }

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.2.0-alpha02'
implementation 'com.android.support:design:28.0.0'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.google.android:flexbox:0.3.0'
implementation 'net.gotev:uploadservice:3.0.3'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'joda-time:joda-time:2.9.9'
implementation 'com.github.mabbas007:TagsEditText:1.0.5'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.kbeanie:multipicker:1.1.31@aar'
implementation('com.amazonaws:aws-android-sdk-mobile-client:2.6.27') { transitive = true }
implementation 'com.amazonaws:aws-android-sdk-s3:2.7.4'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.6.27'
implementation 'it.michelelacorte.elasticprogressbar:library:1.0.5'
implementation 'com.github.nkzawa:socket.io-client:0.3.0'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'cn.jzvd:jiaozivideoplayer:6.2.12'
implementation 'me.zhanghai.android.materialprogressbar:library:1.1.7'
implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'
implementation 'com.applandeo:material-calendar-view:1.0.1'
implementation 'com.getbase:floatingactionbutton:1.10.1'
implementation 'com.evrencoskun.library:tableview:0.8.8'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'
implementation 'com.github.yalantis:ucrop:2.2.2-native'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.chinalwb:are:0.1.7'
implementation 'com.kyanogen.signatureview:signature-view:1.0'
implementation 'com.google.guava:guava:28.0-jre'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'org.jetbrains:annotations-java5:15.0'
 }

 apply plugin: 'com.google.gms.google-services'

【问题讨论】:

  • 您尝试过签名吗?
  • 检查新旧apk的keystore、包名、版本号。密钥库和包名称应该相同。新apk的版本号应大于旧apk。
  • @MoustafEL-Saghier 是什么意思?
  • @PrashantSable 密钥库是正确的包名我们不会在任何地方更改 rt??在 build.gradle 中增加了版本代码
  • 你能发布新旧apk的build.gradle吗?从中我们可以检查出了什么问题。

标签: android apk android-build


【解决方案1】:

可能发生的原因有几个:

  1. 以前的版本代码低于当前版本。尝试增加它或/并在设备上的应用信息屏幕中检查版本名称
  2. 签名不匹配。小心他们的数据
  3. 关闭谷歌播放保护。可能问题出在谷歌服务的某个地方

【讨论】:

  • 这些都试过了
  • 尝试在 Google Play 中使用 ApkExtractor 提取 apk 并检查签名印记。尝试使用谷歌帐户退出,为什么不呢?
  • 我不能要求客户也这样做
  • 没有逆向工程恕我直言,这里没有办法达到结果。也没有多少人知道谷歌服务实际上是如何阻止应用安装的
猜你喜欢
  • 2022-10-25
  • 2023-03-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-09-11
  • 2019-03-10
  • 2020-09-28
相关资源
最近更新 更多