Я не могу установить свое приложение на любое другое устройство Android, и ирония заключается в том, что приложение работает нормально в AVD и на моем устройстве. Я не знаю, почему, но каждый раз, когда я устанавливаю, он говорит «Установка не удалась» или «приложение не установлено»!
заранее спасибо за ответ на вопрос. < /P>
ниже мой build.gradle файл:-
android {
compileSdk 30
defaultConfig {
applicationId "com.example.sangeetplayer"
minSdk 21
targetSdk 30
versionCode 1
versionName "1.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
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.karumi:dexter:6.2.3'
}
Подробнее здесь: https://stackoverflow.com/questions/696 ... oid-device