gradle

Gradle 'error: package com.google.common.collect does not exist'

强颜欢笑 提交于 2021-01-27 14:44:16
问题 I am following a little test script and providing it with the first piece of code to make it green. The code is java and the testing is gradle with java. Java is version "1.8.0_60" on Mac OSX "El Capitan". gradle is version 2.8. After using gradle build , here is the error shown: $ gradle build :compileJava /Users/rsalazar/exercism/java/etl/src/main/java/Etl.java:1: error: package com.google.common.collect does not exist import com.google.common.collect.ImmutableMap; ^ /Users/rsalazar

Gradle cannot find JDK

最后都变了- 提交于 2021-01-27 13:51:26
问题 I've created a gradle project with the following configuration: group '...' version '0.0' apply plugin: 'java' sourceCompatibility = 1.8 repositories { mavenCentral() } test { useTestNG() beforeTest { descriptor -> logger.lifecycle("Running test: " + descriptor) } } When I execute "gradle build" I have the following error message: Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according

Update to React 0.60.4 breaks Android build (error cannot find symbol)

牧云@^-^@ 提交于 2021-01-27 13:47:31
问题 I have recently updated to React Native@0.60.4 . The app compiles and works fine on iOS and xcode. However, when I try and run the new android code I face the following error: /redacted/MainApplication.java:6: error: cannot find symbol import com.facebook.react.PackageList; ^ symbol: class PackageList location: package com.facebook.react /redacted/MainApplication.java:28: error: cannot find symbol List<ReactPackage> packages = new PackageList(this).getPackages(); ^ symbol: class PackageList 2

How do I install grails in a Docker image?

三世轮回 提交于 2021-01-27 13:15:11
问题 I'm working on containerizing an existing application built on grails. I've been able to successfully build the project within a debian:stretch image (yes, I know that's old, but the project was originally built with old versions of just about everything) with gradle , maven , and default-jdk installed. However I'm unsure if that means I don't need grails. When I try grails --version from a command line prompt within the container it says "bash: grails: command not found". There does not

intellij idea gradle plugin unable to use relative paths specified in gradle.properties

妖精的绣舞 提交于 2021-01-27 12:50:05
问题 I have a Gradle project perfectly running (from the command line), configured to use a JDK specified with a relative path. For this, I added a gradle.properties file to my project, containing: org.gradle.java.home = jdk/ But when I try to run the build from Intellij Idea (14.0.3), I get: Java home supplied via 'org.gradle.java.home' is invalid. Invalid directory: jdk/ Using absolute paths solves the issue. Do I misuse the gradle.properties or I just have to report a bug to Jetbrains, related

AndroidStudio的ImageView使用网络图片

隐身守侯 提交于 2021-01-27 12:20:35
关于AndroidStudio的ImageView使用网络上的图片的方法 1.新建一个Activity名为 ImageActivity 2.在layout下的activity_img_view.xml下新建ImageView < ImageView android: id = " @+id/imgv01 " android: layout_marginTop = " 10dp " android: layout_width = " 200dp " android: layout_height = " 100dp " android: scaleType = " fitCenter " /> 3.打开GitHub 链接: GitHub . 4.输入glide 5.找到第一个 6.找到使用Gradle的方法 要将这一串代码粘到AndroidStudio中 repositories { google ( ) jcenter ( ) } dependencies { implementation 'com.github.bumptech.glide:glide:4.11.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' } 7.找到AndroidStudio的build.gradle

How to remove single module from the jar file in gradle Android Studio

╄→гoц情女王★ 提交于 2021-01-27 11:39:52
问题 How can i remove the single package from the jar file. I have two SDK's from diffent vendors and both the SDK's have google.gson package included in the jar files, because this causing me the issue in running a build in android studio it shows the error in image below i know how to exclude the modules from the repository like this: compile('com.android.support:design:23.1.1') { exclude module: 'support-v4' } but i don't know how to exclude some package from the jar file that i need in my

Gradle - one project, multiple packages, multiple jars

佐手、 提交于 2021-01-27 10:30:31
问题 I'm asking you about a very basic question but I hope you can find the time to help me: I'm trying to realise a java-project, that can spit out several different programs which partially have dependencies on other projects of mine. In order to keep it simple, I want to have all the code in one project, run by Gradle, so if I make changes to a central library (the database connector for example) all the child-programs automatically recieve the changes. An example could look like this: project:

Gradle - one project, multiple packages, multiple jars

邮差的信 提交于 2021-01-27 10:29:18
问题 I'm asking you about a very basic question but I hope you can find the time to help me: I'm trying to realise a java-project, that can spit out several different programs which partially have dependencies on other projects of mine. In order to keep it simple, I want to have all the code in one project, run by Gradle, so if I make changes to a central library (the database connector for example) all the child-programs automatically recieve the changes. An example could look like this: project:

Gradle - one project, multiple packages, multiple jars

╄→гoц情女王★ 提交于 2021-01-27 10:26:49
问题 I'm asking you about a very basic question but I hope you can find the time to help me: I'm trying to realise a java-project, that can spit out several different programs which partially have dependencies on other projects of mine. In order to keep it simple, I want to have all the code in one project, run by Gradle, so if I make changes to a central library (the database connector for example) all the child-programs automatically recieve the changes. An example could look like this: project: