简体   繁体   English

仅在某些设备中未安装应用程序

[英]application not installed in some devices only

my application install and run perfectly in my emulator, redmi note 5, poco and some more devices but in some devices like android 11 its not install我的应用程序在我的模拟器、redmi note 5、poco 和其他一些设备中完美安装和运行,但在 android 11 等设备中没有安装

please solve my promblem请解决我的问题

plugins {
id 'com.android.application'
id 'com.onesignal.androidsdk.onesignal-gradle-plugin'

} }

android { compileSdk 31 android { compileSdk 31

defaultConfig {
    applicationId "com.cryptomasterquiz"
    minSdk 21
    targetSdk 31
    versionCode 2
    versionName "2.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
viewBinding{
    enabled = true
}

} }

dependencies {依赖{

implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'com.android.volley:volley:1.2.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

//implementation 'com.github.denzcoskun:ImageSlideshow:0.1.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'

implementation 'com.google.android.gms:play-services-ads:20.5.0'
implementation 'com.google.ads.mediation:facebook:6.8.0.0'

implementation 'com.onesignal:OneSignal:4.6.3'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.23'

} }

Your question is incomplete, please mention when you are not able to install the app.您的问题不完整,请在无法安装应用程序时提及。 while using ADB/sideloading the APK file?在使用 ADB/sideloading APK 文件时?

If you are unable to sideload the apk then make sure that you are ticking both v1 and v2 options while generating the apk to support a wide range of devices.如果您无法旁加载 apk,请确保在生成 apk 以支持各种设备时勾选 v1 和 v2 选项。

在此处输入图像描述

If you installed debug build in your mobile.. then you need to uninstall it and install signed build.如果您在手机中安装了调试版本。那么您需要将其卸载并安装签名版本。

If it still not installed then your Application related data might be still there in your memory.. ex) if you created any DB from your Application then you need to delete that from memory and try to install your signed build again.如果仍未安装,那么与应用程序相关的数据可能仍存在于 memory 中。例如)如果您从应用程序创建了任何数据库,那么您需要从 memory 中删除它并尝试再次安装您的签名版本。

If it still not installed and if you are using lollipop devices.. your Application might be installed in other users account too.. you to switch to other users and go to Settings->Apps->your_application and uninstall it.如果它仍未安装并且如果您正在使用棒棒糖设备..您的应用程序也可能安装在其他用户帐户中..您切换到其他用户和 go 到 Settings->Apps->your_application 并卸载它。 even check Guest user.甚至检查来宾用户。 your application might be hiding in that too..您的应用程序可能也隐藏在其中..

I had this issue.. just follow these steps.. then your application can be installed.. :)我遇到了这个问题..只需按照这些步骤..然后您的应用程序就可以安装.. :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM