我正在尝试在实际设备上运行android应用程序。 我在主机上发布了APK的链接(不在Google Play中) minSdkVersion 15,targetSdkVersion 28 1-某些设备安装正常,所有功能均不起作用 2-一些设备可以很好地安装它,但是其中一个功能不起作用 3-某些设备无法安装 甚至这些设备(在2和3中)的API或SDK都比minSdkVersion高 在我的构建gradle中,我在这行上
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'
}