Android-приложение не работает на устройствах, даже если оно выше minSdkVersion - PullRequest
0 голосов
/ 06 декабря 2018

Я пытаюсь запустить приложение на Android на реальном устройстве.Я опубликовал ссылку APK на моем хосте (не в google play) minSdkVersion 15, targetSdkVersion 28 1 - некоторые устройства устанавливают его нормально и все функции не работают 2 - некоторые устройства устанавливают его нормально, но одна функция не работает 3 - некоторые устройства не могут установитьдаже если эти устройства (в 2 и 3) имеют API или SDK выше minSdkVersion в моем сборщике сборки, я на этой строке

    implementation 'com.android.support:appcompat-v7:28.0.0'

обнаружил эту ошибку

 All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 27.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:exifinterface:27.1.0 less... (Ctrl+F1) 
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion).  Issue id: GradleCompatible

Не знаюне знаю, связано ли это с моей проблемой или нет.

     apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.lenovo.tactic"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
       // useLibrary 'org.apache.http.legacy'

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

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'me.dm7.barcodescanner:zxing:1.9.8'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.github.sujithkanna:smileyrating:1.6.8'
    implementation 'com.squareup.picasso:picasso:2.71828'
}
...