При попытке собрать проект получаю следующие предупреждения и ошибки:
Warning:[options] bootstrap class path not set in conjunction with -source 1.7
Warning:Exception while processing task java.io.IOException: Can't write [D:\Development\android\taxidrv_1_14_31\Taxi\build\intermediates\transforms\proguard\TaxiConfig\release\0.jar] (Can't read [D:\Development\android\taxidrv_1_14_31\osmdroid-android\libs\junit-4.12.jar(;;;;;;**.class)] (Duplicate zip entry [b/b/k.class == junit-4.12.jar:junit/framework/TestCase.class]))
Error:Execution failed for task ':Taxi:transformClassesAndResourcesWithProguardForTaxiConfigRelease'.
> Job failed, see logs for details
Требуется помощь зала, т.к. идеи закончились что можно предпринять и чем вызвано
build.gradle
buildscript {
repositories {
/*mavenCentral()
jcenter {
url "http://jcenter.bintray.com/";
}*/
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
apply plugin: 'com.android.application'
android {
flavorDimensions "default"
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude 'org/apache/http/entity/mime/version.properties'
}
signingConfigs {
vsev {
keyAlias 'vsev'
keyPassword 'derparol'
storeFile file('keystore')
storePassword 'derparol'
}
}
compileOptions {
encoding = 'windows-1251'
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
defaultConfig {
signingConfig signingConfigs.vsev
multiDexEnabled true
minSdkVersion 14
targetSdkVersion 25
}
productFlavors {
TaxiConfig {
applicationId 'android.taxi'
versionCode 11431
versionName '1.14.31'
signingConfig signingConfigs.vsev
proguardFile 'proguard.cfg'
}
}
buildTypes {
debug {
signingConfig signingConfigs.vsev
proguardFile 'proguard.cfg'
zipAlignEnabled true
}
release {
minifyEnabled true
signingConfig signingConfigs.vsev
proguardFile 'proguard.cfg'
}
}
useLibrary 'org.apache.http.legacy'
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
compileSdkVersion 27
buildToolsVersion '27.0.1'
}
dependencies {
implementation 'com.android.support:support-v4:27.0.2'
compile fileTree(include: '*.jar', dir: 'libs')
compile project(':osmdroid-android')
implementation 'com.google.android.gms:play-services:11.6.2'
}
Современные инструменты для криптотрейдинга: как технологии помогают принимать решения
Апостиль в Лос-Анджелесе без лишних нервов и бумажной волокиты
Основные этапы разработки сайта для стоматологической клиники
Продвижение своими сайтами как стратегия роста и независимости