build.gradle

How does Gradle generate a new task from a task rules

一个人想着一个人 提交于 2020-02-23 06:37:10
问题 In section 19.11. of the 4.2.1 user guide is this task rule example. How is the if predicate able to be true before the rule is even executed. I also noticed that when task groupPing is entered before the task rule the build fails. How are the tasks pingServer1, pingServer2 already created before the rule even starts? tasks.addRule("Pattern: ping<ID>") { String taskName -> if (taskName.startsWith("ping")) { task(taskName) { doLast { println "Pinging: " + (taskName - 'ping') } } } } task

Create an aar with all flutter libraries and dependencies inside

随声附和 提交于 2020-02-22 05:40:51
问题 I need to create an aar with all the libraries of my flutter project inside, I created a flutter module and now I've to create an sdk in android to be embedded in a client app for that it would be nice to have a single aar file. I tried Mobbeel fat AAR Gradle plugin but with no avail. I know I can create a maven repository but that is not the solution I'm looking for right now. my project build.gradle buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } google() jcenter

Create an aar with all flutter libraries and dependencies inside

扶醉桌前 提交于 2020-02-22 05:40:49
问题 I need to create an aar with all the libraries of my flutter project inside, I created a flutter module and now I've to create an sdk in android to be embedded in a client app for that it would be nice to have a single aar file. I tried Mobbeel fat AAR Gradle plugin but with no avail. I know I can create a maven repository but that is not the solution I'm looking for right now. my project build.gradle buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } google() jcenter

ProcessException: ExecException: Process 'command ' /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java

↘锁芯ラ 提交于 2020-02-21 13:17:46
问题 I am getting exception: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 after i updated the Google Play services to 7.5.0 as: compile 'com.google.android.gms:play-services:7.5.0' but if i change it back to: compile 'com.google.android.gms:play-services:7.0.0' everything is

ProcessException: ExecException: Process 'command ' /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java

流过昼夜 提交于 2020-02-21 13:13:12
问题 I am getting exception: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 after i updated the Google Play services to 7.5.0 as: compile 'com.google.android.gms:play-services:7.5.0' but if i change it back to: compile 'com.google.android.gms:play-services:7.0.0' everything is

ProcessException: ExecException: Process 'command ' /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java

人盡茶涼 提交于 2020-02-21 13:12:48
问题 I am getting exception: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 after i updated the Google Play services to 7.5.0 as: compile 'com.google.android.gms:play-services:7.5.0' but if i change it back to: compile 'com.google.android.gms:play-services:7.0.0' everything is

What is generateStubs configuration in Kotlin?

我与影子孤独终老i 提交于 2020-02-19 07:59:19
问题 What is generateStubs for Kotlin? Here is my configuration in build.gradle . I can not find it in public document here : http://kotlinlang.org/docs/reference/kapt.html kapt { generateStubs = true } If I'm using Java and Kotlin(1.2) in my project, it is still needed to add? 回答1: EDIT : If I'm using Java and Kotlin(1.2) in my project, it is still needed to add No , With the version 1.0.4 introduces a new experimental implementation of the annotation processing API. Now there is no need to

What is generateStubs configuration in Kotlin?

半腔热情 提交于 2020-02-19 07:59:05
问题 What is generateStubs for Kotlin? Here is my configuration in build.gradle . I can not find it in public document here : http://kotlinlang.org/docs/reference/kapt.html kapt { generateStubs = true } If I'm using Java and Kotlin(1.2) in my project, it is still needed to add? 回答1: EDIT : If I'm using Java and Kotlin(1.2) in my project, it is still needed to add No , With the version 1.0.4 introduces a new experimental implementation of the annotation processing API. Now there is no need to

Using Gradle to publish jars to MavenLocal

徘徊边缘 提交于 2020-02-05 04:34:05
问题 I'm using Gradle to manage the build of a product using multiple eclipse projects. Several of those projects use jar files that are not available from a central repository (like MavenCentral). I'd like to have an eclipse project that I just place those jars into, and a build.gradle that will place those jar files into mavenLocal using the groupId, artifactId and version that I specify. This way I can just add mavenLocal() to other projects and specify the dependency. I have the following

Android Studio build variant problems

回眸只為那壹抹淺笑 提交于 2020-02-02 11:11:50
问题 I am having difficulty getting Android Studio to build the right build variant — or even to let me select a build variant at all, sometimes. Basically I have two different versions of my project a free and a "full" version. Package ids are "com.mycompany.myproj" and "com.mycompany.myprojfree". Once I've specified "myproj" and "myprojfree" flavors and "release" and "debug" buildtypes, Android Studio produces four variants in the list: myprojDebug, myprojfreeDebug, myprojfreeRelease, and