打不上包加上两行代码,完美解决。
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
defaultConfig {
applicationId "com.check.fruit.fruitcheck"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "GenerateAPK.apk"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:design:26.+'
implementation 'com.android.support:support-vector-drawable:26.+'
implementation 'com.android.support:support-v4:26.0.0-alpha1'
implementation 'com.github.yalantis:ucrop:2.2.1-native'
implementation 'com.soundcloud.android:android-crop:1.0.1@aar'
implementation 'com.android.support:cardview-v7:26.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'org.litepal.android:core:1.6.0'
implementation 'com.yanzhenjie:recyclerview-swipe:1.1.3'
testCompile 'junit:junit:4.12'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'org.greenrobot:eventbus:3.1.1'
}