我完全是创建了一个 Android 应用程序。现在这个应用程序在 Playstore 上。问题是,一些用户评论说他们无法打开这个应用程序。此应用程序将在启动后停止。但我的手机和安卓模拟器工作正常。但是虽然我将更改 gradle 构建版本,但它会导致用户评论。它真的停止了。现在我想解决这个问题,所以尝试过。请解释我如何解决这个错误问题。?
我的第一个 gradle 文件正在运行。但是第二个 gradle 文件获取了这个问题。
第一的
gradle.build
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "net.gurujibd.test"
minSdkVersion 12
targetSdkVersion 24
versionCode 1
versionName "1.0"
multiDexEnabled = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
preDexLibraries = false
javaMaxHeapSize "4g"
}
}
dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:recyclerview-v7:24.0.+'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.jakewharton:butterknife:8.8.1'
compile 'com.squareup.picasso:picasso:2.5.0'
compile files('libs/awais.jar')
compile 'com.android.support:support-vector-drawable:24.2.1'
compile 'com.android.support:multidex:1.0.1'
compile project(':dBPullToRefresh')
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
}
相关分类