在gradle文件中出現一個錯誤,但它在控制檯中生成並且從未顯示,應用程序工作正常,但我認爲它會在其他設備上崩潰。Gradle出現錯誤,但構建正常
如何解決呢?我怎樣才能從工具提示中複製錯誤? 這裏是我的gradle產出:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.example.mol.saherproject"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
compileOptions.encoding = 'ISO-8859-1'
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.mcxiaoke.volley:library:1.0.10'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:support-v4:25.1.1'
compile 'com.android.support:design:25.1.1'
compile 'info.hoang8f:android-segmented:1.0.6'
compile 'com.github.halysongoncalves:pugnotification:1.8.1'
compile 'com.github.clans:fab:1.6.4'
compile 'com.google.maps.android:android-maps-utils:0.3.4'
compile 'com.android.support:multidex:1.0.1'
compile 'org.greenrobot:eventbus:3.0.0'
testCompile 'junit:junit:4.12'
}
任何幫助,請......