gradlew

How I can display Log files,System.out.println(), In Android test?

大兔子大兔子 提交于 2019-12-12 08:06:14
问题 I did search a lot but unfortunately couldn't get it to work. Based on my search I found that I need to add following code into build.gradle file. However, Gradle seems doesn't recognize it and always says Geadle DSL method not found: test() test { testLogging.showStandardStreams = true testLogging.events("passed", "skipped", "failed", "standardOut", "standardError") afterTest { desc, result -> println "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}" } }

Error while compiling React-native duplicate entry: javax/inject/Inject.class

回眸只為那壹抹淺笑 提交于 2019-12-12 04:33:16
问题 I downloaded a React-native project from the web called react-native-obd2. Before I got started I just wanted to run the example that was already given in the repo but while running react-native run-android I am getting stuck at an error. :app:transformClassesWithJarMergingForDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip

Android Studio Gradle build error :app:mergeDebugResources, Crunching Cruncher loader.png failed

别来无恙 提交于 2019-12-12 04:05:18
问题 I am trying to integrate Google Signin in my Android App. I am facing issue with building apk when I include Google Services Dependencies. Below are my gradle files and error log. The google services lib is also prompting me to use gradle-wrapper 2.10 and not 2.8 PROJECT LEVEL GRADLE FILE: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0'

Ionic (+cordova,android.sdk,gradlew) Execution failed for task <task_name>

徘徊边缘 提交于 2019-12-12 03:16:46
问题 (my problem was related to ionic, and it is common problem here, it is caused by using cordova and android.sdk, so I am adding these flags too) I had problem running [ ionic run android [-lc] , ionic build android ] (if you got it in ios or other commands, and it is solved by this answer - comment please) Execution failed for task ':processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Android_SDK\build-tools

Gradle wrapper ignores already installed distribution?

我的未来我决定 提交于 2019-12-12 02:25:02
问题 The gradle wrapper distributions are located on my machine under: C:\Users\Ruperto.gradle\wrapper\dists\gradle-2.10-all In this folder I already had 2 folder with long names (78v82fsf226usgvgh7q2ptcvif, a4w5fzrkeut1ox71xslb49gst) and now after running gradlew in the command line of Windows it downloaded the same version again and added a new folder to the above path, all of the 3 folders now have the same gradle version inside, same size also, why is this happening? 回答1: Gradle Wrapper is

com.android.build.api.transform.TransformException: Error while generating the main dex list

眉间皱痕 提交于 2019-12-11 06:18:08
问题 I'm implementing react-native-firebase notifications lib in a react native project. here is my android gradle.build buildscript { repositories { google() jcenter() maven { url 'https://maven.google.com/' name 'Google' } maven { url 'https://maven.fabric.io/public' } flatDir { dirs 'libs' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' classpath 'com.android.tools.build:gradle:3.1.4' classpath 'com.google.gms:google-services:4.0.1' // NOTE: Do not place your application dependencies

Kafka performance test not available

只谈情不闲聊 提交于 2019-12-11 05:06:54
问题 I'm a newbie for Kafka, using the version of kafka_2.8.0-0.8.1.1 . After build Kafka brokers and test it by producer and consumer that work fine, I decide to make some performance test for Kafka. I found Kafka Benchmark by search kafka performance test and try it by execute ./bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196 but got Error: Could not

Why do I have multiple gradle wrapper distributions downloaded (of the same version)?

吃可爱长大的小学妹 提交于 2019-12-10 21:27:27
问题 I'm looking around in my ~/.gradle folder (relocated to P:\caches\gradle , which doesn't affect this behaviour) and I found some strange folders. In the past I have updated multiple projects from 2.0 to 2.1 via running gradle wrapper which updated project\gradle\wrapper\gradle-wrapper.properties I just found out that for some reason the exact same distributionUrl zip file was downloaded multiple times. As you can see they all have the same size and I did a binary diff, they're the same bit by

Android Studio : Could not create plugin of type 'AppPlugin'

a 夏天 提交于 2019-12-10 14:18:20
问题 I know that there are a lot of similar questions, but no one answer works for me. Android Studio 0.8.0 dependencies { classpath 'com.android.tools.build:gradle:0.12.+' (the minimum supported version - from tip) } Gradle 1.4 ------------------------------------------------------------ Groovy: 1.8.6 Ant: Apache Ant(TM) version 1.9.3 compiled on April 8 2014 Ivy: non official version JVM: 1.7.0_55 (Oracle Corporation 24.51-b03) OS: Linux 3.13.0-29-generic i386 What went wrong: A problem occurred

How to use if else condition in Gradle

为君一笑 提交于 2019-12-10 13:52:10
问题 Can someone tell me how could I write the if else condition in the gradle script I mean i have two different types of zip files one is LiceseGenerator-4.0.0.58 and other one is CLI-4.0.0.60.My deployment script is working fine but I am using the shell script to do this and I want everything in gradle instead of doing it in the shell script.I want when I am deploying the LicenseGenerator it should deploy in differnet way and if it is CLI then it should deploy in other way.Currently deployall