build.gradle

What's the different between all*.exclude and all.exclude in configurations.all

核能气质少年 提交于 2020-01-29 21:29:11
问题 I want to know what exactly different between all*.exclude and all.exclude in configurations.all when you want to exclude dependencies configurations.all { all.exclude all*.exclude group: 'org.json', module: 'json' } 回答1: The correct syntax is: Using the all method configurations.all { exclude group: 'org.json', module: 'json' } OR Using the all property configurations { all*.exclude(group: 'org.json', module: 'json') } The all property holds a list of all configuration objects within the

What's the different between all*.exclude and all.exclude in configurations.all

穿精又带淫゛_ 提交于 2020-01-29 21:18:27
问题 I want to know what exactly different between all*.exclude and all.exclude in configurations.all when you want to exclude dependencies configurations.all { all.exclude all*.exclude group: 'org.json', module: 'json' } 回答1: The correct syntax is: Using the all method configurations.all { exclude group: 'org.json', module: 'json' } OR Using the all property configurations { all*.exclude(group: 'org.json', module: 'json') } The all property holds a list of all configuration objects within the

What's the different between all*.exclude and all.exclude in configurations.all

萝らか妹 提交于 2020-01-29 21:16:10
问题 I want to know what exactly different between all*.exclude and all.exclude in configurations.all when you want to exclude dependencies configurations.all { all.exclude all*.exclude group: 'org.json', module: 'json' } 回答1: The correct syntax is: Using the all method configurations.all { exclude group: 'org.json', module: 'json' } OR Using the all property configurations { all*.exclude(group: 'org.json', module: 'json') } The all property holds a list of all configuration objects within the

Gradle : Copy different properties file depending on the environment and create jar

荒凉一梦 提交于 2020-01-29 13:23:07
问题 I am evaluating gradle for my spring boot project. Everything seems to work but here is where I am stuck. I have 2 properties file. One for prod i.e.: application_prod.properties and another for qa i.e.: application_qa.properties My requirement is such that while I build (create jar file) the project from gradle, I've to rename the properties file to application.properties and then build the jar file. As far as I know, gradle has a default build task. So here I've to override it such that it

Error: More than one file was found with OS independent path 'META-INF/DEPENDENCIES'

旧时模样 提交于 2020-01-29 03:52:48
问题 I am using Selenium in Java to make an app. I keep getting this error and I have been searching the internet to figure out what is wrong and I cannot find anything. Please help. Here is my build.gradle: android { compileSdkVersion 26 defaultConfig { applicationId "luke.luke.seleniumtest" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles

Android Build execution failed due to incompatible library versions

[亡魂溺海] 提交于 2020-01-26 04:56:39
问题 Implementing Google sign in using firebase. This is my project level build.gradle buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.google.gms:google-services:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } This is my App level

Build.Gradle issues when using Facebook SDK 4.0.0 and Parse.com libraries in Android

跟風遠走 提交于 2020-01-25 11:02:09
问题 I've narrowed down the problem to overlapping dependencies within my project, however, I'm not sure which dependencies to exclude for my project to build properly. If I delete the ParseFacebookUtilsV3 files from my libs folder, then I get another DexException with a duplicate LBolts/AggregateException. Here is my gradle.build file: apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "kevts.washington.edu.fiternity"

Android flavors signing not working as expected

巧了我就是萌 提交于 2020-01-25 08:02:19
问题 I need to sign a product flavor with an specific signing configuration. I found some reference here at stackoverflow like this and this. It is working for my release version of flavor, but not the debug one. I have this configuration in gradle: ... signingConfigs { release { storeFile file("../config/keystores/release_keystore") storePassword "mysecurepassword" keyAlias "myultrasecurealias" keyPassword "myreallysecurekeypassword" } debug { storeFile file("../config/keystores/debug.keystore")

add multiple google-service.json file in product flavor

孤者浪人 提交于 2020-01-24 19:23:35
问题 I have 3 different Firebase projects. and it has to be used in 4 google-service.json use in product flavors. but i get an below error File google-services.json is missing. The Google Services Plugin cannot function without it. for below structure And if I put the google-service.json in the app folder then i get this error No matching client found for package name 'com.example.app1' for below structure build.gradle flavorDimensions "category", "app" productFlavors { mcq1 { applicationIdSuffix

add multiple google-service.json file in product flavor

霸气de小男生 提交于 2020-01-24 19:22:07
问题 I have 3 different Firebase projects. and it has to be used in 4 google-service.json use in product flavors. but i get an below error File google-services.json is missing. The Google Services Plugin cannot function without it. for below structure And if I put the google-service.json in the app folder then i get this error No matching client found for package name 'com.example.app1' for below structure build.gradle flavorDimensions "category", "app" productFlavors { mcq1 { applicationIdSuffix