gradlew

Difference between using gradlew and gradle

送分小仙女□ 提交于 2019-12-29 02:18:59
问题 What is the difference between using gradlew and gradle or are they the same? 回答1: The difference lies in the fact that ./gradlew indicates you are using a gradle wrapper. The wrapper is generally part of a project and it facilitates installation of gradle. If you were using gradle without the wrapper you would have to manually install it - for example, on a mac brew install gradle and then invoke gradle using the gradle command. In both cases you are using gradle, but the former is more

Gradle: Could not determine java version from '11.0.2'

邮差的信 提交于 2019-12-28 09:33:13
问题 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 --------------------------------------

Could not find method include() for arguments [:app] on root project 'myProject'

倖福魔咒の 提交于 2019-12-25 09:04:38
问题 I'm trying to create my first project in android studio, I'm on a mac, FYI. When I build settings.gradle, I get a failed build. Note: Please don't mark this as a duplicate, see below I have links to two other SO questions that didn't fix the problem. My settings.gradle file contents: include ':app' , but I've also tried include 'app' based on the advise here, with no difference in result. The Gradle Console ends with BUILD SUCCESSFUL , but the debug window shows BUILD FAILED : /Library/Java

Task 'assembleRelease' not found in root project 'android'

点点圈 提交于 2019-12-23 07:49:46
问题 I'm using Reactnative 0.54.0 and react-native-cli 2.0.1 along side gradle 4.8.1 I have created a react-native project using create-react-native-app myProjectName When I created the project, it doesn't include android and ios folders, so I added them manually. I also installed gradle using choco and then created a wrapper for it using gradle wrapper --gradle-version 4.8.1 --distribution-type all so I am developing react-native using microsoft vsCode and then see my application in action using

org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'

久未见 提交于 2019-12-23 07:41:39
问题 I'm unable to build the project after updating android studio to 3.4. can anyone please help me. Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle

org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'

有些话、适合烂在心里 提交于 2019-12-23 07:40:23
问题 I'm unable to build the project after updating android studio to 3.4. can anyone please help me. Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle

Blu R1 HD Phone - Android Failed to install: Unknown failure ([CDS]close[0])

戏子无情 提交于 2019-12-23 05:59:28
问题 Among all the android devices I use in the device farm lab, the Blu R1 HD always crashes when I do ./gradlew cDDAT Min api 16 and max api is 25. Log: Installing APK 'app-qa-debug.apk' on 'BLU Advance 5.0 - 5.1' for app:qaDebug 10:02:53 E/740494441: Error while uploading app-qa-debug.apk : Unknown failure ([CDS]close[0]) Unable to install /Users/repos/mobile-android/app/build/outputs/apk/app-qa-debug.apk com.android.ddmlib.InstallException: Failed to install all at com.android.ddmlib

Blu R1 HD Phone - Android Failed to install: Unknown failure ([CDS]close[0])

﹥>﹥吖頭↗ 提交于 2019-12-23 05:58:24
问题 Among all the android devices I use in the device farm lab, the Blu R1 HD always crashes when I do ./gradlew cDDAT Min api 16 and max api is 25. Log: Installing APK 'app-qa-debug.apk' on 'BLU Advance 5.0 - 5.1' for app:qaDebug 10:02:53 E/740494441: Error while uploading app-qa-debug.apk : Unknown failure ([CDS]close[0]) Unable to install /Users/repos/mobile-android/app/build/outputs/apk/app-qa-debug.apk com.android.ddmlib.InstallException: Failed to install all at com.android.ddmlib

Poor performance of javafx ported app

余生颓废 提交于 2019-12-22 09:49:07
问题 I just ported using gradlew into android a sample netbeans javafx project called "PuzzlePieces". The app has got soo poor performance, what can cause that? My device: LG E975, 4.4 kitkat 回答1: This question contains some possible reasons why performance on an Android device could be poor in terms of what one could expect based on how the app runs on desktop. Anyway, there is a quick win in "PuzzlePieces", and it is related to the CSS point mentioned in that question. The Desk class adds this

Slow gradle build in Docker. Caching gradle build

我的未来我决定 提交于 2019-12-21 14:26:20
问题 I am doing university project where we need to run multiple Spring Boot applications at once. I had already configured multi-stage build with gradle docker image and then run app in openjdk:jre image. Here is my Dockerfile: FROM gradle:5.3.0-jdk11-slim as builder USER root WORKDIR /usr/src/java-code COPY . /usr/src/java-code/ RUN gradle bootJar FROM openjdk:11-jre-slim EXPOSE 8080 WORKDIR /usr/src/java-app COPY --from=builder /usr/src/java-code/build/libs/*.jar ./app.jar ENTRYPOINT ["java", "