gradlew

gradlew.bat (and gradlew) SSLHandShakeException

ぐ巨炮叔叔 提交于 2019-11-29 16:33:01
问题 I'm new to Gradle and was going through this Spring Tutorial found here: http://spring.io/guides/gs/gradle/ I get to the part where it tells me to add this task: task wrapper(type: Wrapper) { gradleVersion = '2.3' } I run gradle wrapper which creates the gradlew and gradlew.bat files. Trying to run both of this I get this exception: Downloading https://services.gradle.org/distributions/gradle-2.3-bin.zip Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.val idator

Publish jar library to bintray using gradle

百般思念 提交于 2019-11-29 12:13:23
I'm trying to publish a jar library to bintray using Gradle. I have a package on my project which is "com.github.instagram". What I am trying to achieve is to build the jar file of this package and upload it to bintray. here are my configurations uploadArchives { repositories { bintrayMavenDeployer { username 'xxx' apiKey 'xxx' repoOwner 'xxx' repoName 'xxx' packageName 'xxx' description 'This is an example to simplifying bintray publishing' descUrl 'https://github.com/ysb33r/Gradle/blob/master/bintray/README.md' tags 'gradle','bintray' } } } but when i execute gradlew uploadArchives, it

Gradle build-info.xml not found for module app in Android Studio

一曲冷凌霜 提交于 2019-11-29 00:33:53
问题 Gradle build-info.xml not found for module app. Please make sure that you are using gradle plugin gradle:2.0.0-alpha or greater I'm using the gradle plug in gradle:2.0.0-beta2. I randomly get this warning and after this very often either the app is not updated or it crashes. It is enough to clean and rebuild to fix the issue. Is there any better way to fix it? 回答1: For me it happens on the Mac, but on Windows it works fine all the time. Ever since I updated Android Studio to version 2.0 beta,

Gradle: Could not determine java version from '11.0.2'

我只是一个虾纸丫 提交于 2019-11-28 22:16:52
I ran the following comment: ./gradlew app:installDebug only to be met with the log: FAILURE: Build failed with an exception. * What went wrong: Could not determine java version from '11.0.2'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org My version of gradle is 5.1.1: ------------------------------------------------------------ Gradle 5.1.1 ------------------------------------------------------------ Build time: 2019-01-10 23:05:02 UTC Revision:

Error with gradlew: /usr/bin/env: bash: No such file or directory

房东的猫 提交于 2019-11-28 20:06:59
After committing my project's gradlew file from my Windows machine to the remote repo using Git, invoking gradlew on my Linux server failed with this message: /usr/bin/env: bash: No such file or directory What happened? The problem's cause was that Git on Windows converted the line endings of gradlew from Unix style (LF) to Windows style (CRLF). You can turn off that automatic conversion using git config core.autocrlf false . Setting the line endings of gradlew back to Unix style fixed the problem. In Vim this is done using set fileformat=unix . Justin Rhoades This is because the gradlew file

Why are my Gradle builds dying with exit-code 137?

那年仲夏 提交于 2019-11-28 20:04:42
I've been trying to compile and test a large project to use Gradle. The test run fine until they die unexpectedly. I dug around and resources said that this is due to a memory issue. If I reduce the number of tests in the suite, it runs fine. I increased the memory by 4x increased the debugging level but I still don't follow what causes this. Here's the horribly cryptic stacktrace. The last line (scroll right) shows the memory settings that I've defined. ... ... ... 1125 tests completed, 30 failed, 9 skipped :test FAILED :test (Thread[Daemon worker,5,main]) completed. Took 8 mins 39.684 secs.

Difference between clean, gradlew clean

£可爱£侵袭症+ 提交于 2019-11-28 16:40:54
What is the difference between the following statements when issued from a Android Studio Project's terminal : Android_Studio_Project_Path: ./gradlew clean Android_Studio_Project_Path: ./gradlew clean assembleDebug Android_Studio_Project_Path: ./gradlew clean :assembleDebug and normal Android Studio --> Build --> Clean. What would be the difference in the internal process. kevinmm ./gradlew clean Uses your project's gradle wrapper to execute your project's clean task. Usually, this just means the deletion of the build directory. ./gradlew clean assembleDebug Again, uses your project's gradle

Gradle error: Write access is allowed from event dispatch thread only in Android Studio

二次信任 提交于 2019-11-28 16:08:16
After updating Android Studio to version 2.2 (on Windows 10) and somehow next morning I received such error when gradle built on any project: Write access is allowed from event dispatch thread only Despite that gradlew -build command worked and completed successfully. I tried typical Android dev's of WTF repairing set: clean build, invalidate caches, removing build folders, removing .gradle folder, tried different gradle settings, even reinstalling Android Studio and nothing helped. I've created this question only to share my experience with community, because I wasted two hours on it. Beloo

gradlew: Permission Denied

淺唱寂寞╮ 提交于 2019-11-28 15:09:14
I am attempting to run gradlew from my command line, but am constantly facing the following error. Brendas-MacBook-Pro:appx_android brendalogy$ ./gradlew compileDebug --stacktrace -bash: ./gradlew: Permission denied I am already running this command from my project directory. Need to run this command as I am facing the same (nondescriptive) error on Android Studio 0.2.x as encountered here: Android studio and gradle build error Am I doing something wrong and how do I get around this? Try to set the execution flag on your gradlew file: chmod +x gradlew Could also be fixed with git update-index

Why there are multiple copies for the same version of gradle

给你一囗甜甜゛ 提交于 2019-11-28 07:05:52
I have an android studio project, with the file gradle/wrapper/gradle-wrapper.properties configured as following. #Wed Apr 10 15:27:10 PDT 2013 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip And I have the 2.2.1-all version installed in my home directory. .gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1-all.zip When I invoke ./gradlew command to build the project. I should use the gradle-2.2.1-all.zip to build.