gradle

How to fix “Missing Gradle project configuration file” issue in Buildship?

末鹿安然 提交于 2020-03-17 05:10:37
问题 As an Eclipse user, I always liked the Gradle IDE. However, this plugin is now deprecated in favor of the new Buildship plugin. After setting up a fresh Eclipse IDE with Buildship installed, I'm faced with the following error in all my Gradle projects: missing gradle project configuration file: .settings/org.eclipse.buildship.core.prefs There are several pages on google that deal with this issue, but all of them seem pretty outdated. There is also an entry in the bugtracker of the plugin

how to debug spring application with gradle

核能气质少年 提交于 2020-03-17 04:09:36
问题 I am working on spring app and need to step through a controller method to see how it works. I am working in eclipse and building my app with gradle bootRun command. How to run it in debug mode? i tried gradle bootRun --debug but it's just debug log, not debug mode i tried gradle help --task bootRun -- this gives me info about task there i saw --debug-jvm option but when i run gradle bootRun --debug-jvm application doesn't start 回答1: After you run gradle bootRun --debug-jvm the application is

how to debug spring application with gradle

拟墨画扇 提交于 2020-03-17 04:08:07
问题 I am working on spring app and need to step through a controller method to see how it works. I am working in eclipse and building my app with gradle bootRun command. How to run it in debug mode? i tried gradle bootRun --debug but it's just debug log, not debug mode i tried gradle help --task bootRun -- this gives me info about task there i saw --debug-jvm option but when i run gradle bootRun --debug-jvm application doesn't start 回答1: After you run gradle bootRun --debug-jvm the application is

How to resolve java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain error?

左心房为你撑大大i 提交于 2020-03-16 19:33:52
问题 we are trying to deploy code to a FRC robot with VScode, but we keep getting the error: Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain The terminal process terminated with exit code: 1 we have found that other people have also gotten similar errors, but none of their solutions have helped us. We would really appreciate any help resolving this error Thanks 回答1: I assume you are

No Cached Version Gradle Plugin Available for offline mode

。_饼干妹妹 提交于 2020-03-16 07:41:11
问题 I haven't used Android Studio in a while, but decided to update everything and create a new project and I get the above error, if I go to Preferences -> Build, Execution, Deployment -> Gradle. There's no option to 'Work Offline' as suggested here among other places No cached version of gradle available for offline mode I've also used the 'Command Shift A' and searched for 'Offline' and I get nothing. Anyway to disable this? 回答1: As per the Android Studio 3.6 release notes: To enable or

AS 根目录结构说明

馋奶兔 提交于 2020-03-15 20:40:53
1、.gradle gradle运行时生成文件存放目录; 2、.idea IntelliJ IDEA运行时生成文件存放目录; 3. app (module)目录 Android项目中module相当于Eclipse中的Project,存放项目代码和资源文件、配置目录; 4. build目录 编译时生成的文件,不需要进行修改; 5. gradle目录 这个目录是项目gradle的配置文件,配置文件可以配置gradle-wrapper.jar的网络路径,会自动根据本地缓存来决定是否需要联网下载gradle; Android Studio默认没有启动gradle wrapper的方式,File->Setting->Build,Execution,Deployment->Gradle进行配置 6. .gitignore文件 git对项目文件管理的配置文件,添加你不希望发布到git管理的文件; 7. AndroidStudio.iml 编译项目的时候生成的文件,命名为“项目名.iml”,iml文件是AndroidStudio识别项目的配置文件; 8. build.gradle 项目自动编译环境配置文件,Gardle主要的配置文件,是对Project进行配置Gardle进行配置;每个Module中也有一个build.gradle文件对Module的Gradle进行配置

为什么使用Gradle代替Ant或Maven? [关闭]

天涯浪子 提交于 2020-03-13 14:39:34
另一个针对Java的构建工具到底能给我带来什么? 如果您在其他工具上使用Gradle,为什么? #1楼 Gradle将乐趣重新投入了构建/组装软件。 我在整个职业生涯中都使用ant来构建软件,并且我一直认为开发工作中实际的“ buildit”部分是必不可少的。 几个月前,我们公司对不使用二进制存储库(也就是将罐子检入vcs)感到厌倦,因此我承担了调查此事的任务。 从常春藤开始,因为它可以用螺栓固定在蚂蚁上,所以运气不佳就可以像我想要的那样发布我的内置文物了。 我去了maven,用xml破解了,为一些简单的辅助库工作了出色的工作,但是在尝试捆绑准备部署的应用程序时遇到了严重的问题。 花费了相当长的时间搜索谷歌插件和阅读论坛,并且为我难以使用的各种插件下载了数万亿个支持罐。 最终,我获得了胜利(这时变得非常痛苦,并烦恼“这不应该那么难!”) 但是从第一天起,我的情绪开始好转。 我要去某个地方。 我花了两个小时才能迁移我的第一个ant模块,而构建文件基本上什么也没有。 轻松安装一个屏幕。 最大的“哇”是:用xml构建 脚本 ,这有多愚蠢? 声明一个依赖项需要一行的事实对我很有吸引力->您可以轻松地在一页上看到某个项目的所有依赖项。 从那时起,我始终如一地前进,对于迄今为止我遇到的每个问题,都有一个简单而优雅的解决方案。 我认为这些是原因: groovy对于Java开发人员而言非常直观

idea新建springboot项目

对着背影说爱祢 提交于 2020-03-12 15:44:59
不多说废话,直接进入正题,按照下面的步骤创建一个springboot项目一般不会出错,当然不排除可能会有一些脸黑的,不过应该问题不大。 第一步,如果你是在已有的项目里面,新建一个springboot项目 如果你们是在idea打开后没有项目打开创建项目,那就比较简单了,当然你也可以这样回退到选择打开项目的主页面 然后你看到的就是这样子的 点击它,你就进入到创建项目的页面这就正式进入第二步了,你会发现有很多的项目模板,看接下来的操作: 说明一下,那个jdk可以选择自己电脑的,不会安装的网上有很多教程的,这里就不说了,直接点击next,进入第三步 这里其实可以选择maven,或者是gradle,如果是maven,你可以直接点next,如果是gradle项目,后面需要继续操作一番,先来看看maven,不管是选择maven还是gradle,都会进入这个页面,他会让你选择依赖,这里我们就只选择web里面的spring web依赖,作为测试,毕竟依赖有时需要下载很久。 点击next, 你可以修改项目的名称,但是这里不建议修改,在第三步哪里有修改项目名称的地方,到这里修改后,他会生成两个运行文件,但是可以修改项目的所在地址,一般情况下还是不要放在C盘下面,我就放在了D盘里面,点击next,这样就创建好了一个maven项目,当然需要下载一些依赖才能运行。 接下来我们看看gradle项目的创建 其实

Android gradle multiproject dependency resolution

*爱你&永不变心* 提交于 2020-03-12 06:03:56
问题 In my Android project I have a task for copying the build dependencies to an external directory as below: task copyBuildDependencies(type: Copy) { delete "$buildDir/dependencies" afterEvaluate { from configurations.releaseCompileClasspath into "$buildDir/dependencies" doLast { FileTree files = fileTree("$buildDir/dependencies") files.forEach { file -> if (file.isFile() && file.name.endsWith(".aar")) { copy { from zipTree(file).matching { include "*.jar" } into "$buildDir/dependencies"

Unresolved reference: DrawImage

筅森魡賤 提交于 2020-03-12 05:34:28
问题 I'm trying call DrawImage() on my code, I'm following this tutorial Jetpack Tutorial, But I'm getting this error.: Unresolved reference: DrawImage I tried implement on build.gradle, this lib.: implementation 'androidx.ui:ui-foundation:0.1.0-dev04' But I getting this error.: Executing tasks: [clean, :app:assembleDebug] in project C:\Users\samue\Desktop\Projetos Kotlin\first-jetpack Task :clean Task :app:clean Task :app:preBuild UP-TO-DATE Task :app:preDebugBuild UP-TO-DATE Task :app