应用程序未在Android 4.4和5.1上运行
我的应用程序在安卓6及以上版本上运行,但我在安卓4.4和5.1上进行了测试。它安装正常,但运行时会崩溃 这是我的身材。格雷德尔:应用程序未在Android 4.4和5.1上运行,android,android-studio,build.gradle,apk,Android,Android Studio,Build.gradle,Apk,我的应用程序在安卓6及以上版本上运行,但我在安卓4.4和5.1上进行了测试。它安装正常,但运行时会崩溃 这是我的身材。格雷德尔: apply plugin: 'com.android.application' android { compileSdkVersion 28 buildToolsVersion '28.0.3' defaultConfig { applicationId "com.gogrocer.tcc" minSdkVe
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.gogrocer.tcc"
minSdkVersion 19
targetSdkVersion 28
versionCode 3
versionName "1.2"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
dexOptions {
preDexLibraries = false
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
maven {
url "https://s3-ap-southeast-1.amazonaws.com/godel-release/godel/"
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//noinspection GradleDynamicVersion,GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.0-beta4'
implementation 'com.android.support:design:28.+'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
implementation 'com.squareup.retrofit2:retrofit:2.2.0'
implementation 'com.squareup.retrofit2:converter-gson:2.2.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.5'
implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
testImplementation 'junit:junit:4.12'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'org.apache.commons:commons-lang3:3.4'
implementation 'com.koushikdutta.ion:ion:2.2.1'
implementation files('libs/PGSDK_v1.0.jar')
implementation 'com.github.franmontiel:LocaleChanger:0.9.2'
implementation 'com.android.support:recyclerview-v7:28.0.0-alpha3'
implementation 'com.android.support:cardview-v7:28.0.0-alpha3'
implementation 'com.shamanland:fonticon:0.1.8'
implementation('com.nispok:snackbar:2.11.+') {
// exclusion is not necessary, but generally a good idea.
exclude group: 'com.google.android', module: 'support-v4'
}
implementation 'com.google.guava:guava:19.0'
implementation 'org.bouncycastle:bcprov-jdk16:1.46'
implementation 'com.razorpay:checkout:1.5.2'
implementation 'commons-codec:commons-codec:1.10'
implementation 'com.google.android.gms:play-services-appindexing:9.8.0'
implementation files('libs/httpmime-4.2.5-sources.jar')
}
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
Device compatibility overview
安卓系统被设计成可以在许多不同类型的设备上运行,从手机到平板电脑和电视。作为一名开发人员,各种设备为您的应用程序提供了巨大的潜在受众。为了让你的应用程序在所有这些设备上都能成功运行,它应该能够容忍一些功能变化,并提供灵活的用户界面,以适应不同的屏幕配置。这是因为你希望它在你的代码中适用于安卓6.0及以上版本。你的应用程序可以运行的设备,取决于创建项目时选择的最低API级别。为了让你的应用程序在较低的android版本上运行,你需要在创建项目时选择一个较低的API(我通常使用API 19:android 4.4)在设置时,我相信你已经为较高版本设置了它的配置。检查是否是这种情况将你的Minsdk版本编辑为15而不是19而不是最后一段,请在你的帖子中说明遇到的错误以及你试图调试的问题。@MorrisonChang apk与E android 4.4和5.1不兼容,我需要查看:并找出哪些不受支持。并确认您已经设置好了。我们可以得到崩溃报告,以便更好地了解发生了什么。@Eldhopj错误“不幸的是,GoGrocer已停止”这更多的是一个评论,而不是一个答案我需要解决方案我需要解决方案