我正在尝试构建一个jar文件。基本上就是想让我的项目停靠起来。但是我无法创建jar文件。我得到了一个错误。当我运行./gradlew build时,我得到了这个错误: l (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x7fd2416f 所以,我运行了gradle --stacktrace,然后显示了以下错误原因: e=log4j-api, version=2.14.1}] on object of type o
所以我切换到了flutter测试版,最近flutter 1.26.0 - 17.6.pre,我已经做了一个运行正常的web项目,所以最近我尝试做了一个移动应用项目,它是第一次构建的,之后我一直从gradle那里得到这个错误日志。
[+155045 ms] FAILURE: Build failed with an exception.
[ +55 ms] * What went wrong:
[ ] org/apache/http/pool/AbstractConnPool
[ ] * Try:
[ ] Run with --stacktrace o
我试图将我的原生反应连接到firebase,但它给了我一个错误。对于此错误,可能的解决方案是什么。当我发出react-native run-android命令时,会出现以下错误 info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 960 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
in
我一直在寻找这个问题的解决方案,但大多数地方都有与android studio相关的答案。
在我当前的场景中,我尝试在Intellij中设置一个Spring Boot应用程序。在我的Ubuntu系统中安装了Gradle 6.0.1,当我尝试运行该应用程序时,我得到了以下错误消息:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
因此,我试图找到一种方法将gradle版本降级到5,但我找不到任何方法。请注意,在我的系统中安装了gradle,并且我尝试从终端运行应
最近,我将Android更新为AndroidStudio3.1。当我尝试构建我的项目时,我会得到这个与Gradle相关的错误。不知道为什么会出现这个错误,因为我的android项目在以前版本的Android上构建得很好。我的升级版是用Android更新的。以下是我试图构建该项目时获得的信息:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
at org.gradle.api.internal.tasks
当我在android中运行一个java文件时,会发生以下错误:
Could not find com.android.tools.build:aapt2:4.0.0-6051327.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/tools/build/aapt2/4.0.0-6051327/aapt2-4.0.0-6051327.pom
If the artifact you are trying to retrieve can be found in the reposito
我已经安装了AndroidStudio3.6金丝雀12,我想使用viewBinding功能
根据文档,我将这段代码放在我的build.gradle (应用程序模块)中
android {
...
viewBinding.enabled = true
...
}
但我知道这个错误
A problem occurred evaluating project ':app'.
> Could not get unknown property 'viewBinding' for object of type com.android.build.gr
每当我打开android工作室时,Gradle同步都会失败。这是我的gradle.build文件。谁能告诉我怎么解决这个问题吗?我安装了7.2级。但我不知道是什么导致了这个问题..。我甚至尝试过allowInsecureProtocol = true
gradle.build/android
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion =
我正在开发一个颤振应用程序。
我找到了一个样本颤音项目所以民间它。但这个项目..。生成失败,下面的日志消息。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'androidx.core:core' has different version for the compile (1.0.0) and runtime (1.0.1) classpath
为什么在这个最新版本的Android中没有默认启用kotlin扩展呢?事实上,据我所知,我必须手动在gradle文件中添加插件。任何解决办法,以便我可以添加插件,并在每次创建新项目时自动启用它?谢谢你之前。
ICYMI,这是需要添加以启用kotlin-android的代码。
plugins {
id 'com.android.application'
id 'kotlin-android'
// add kotlin-android-extensions
id 'kotlin-android-extensions'
我正在使用sms: ^0.2.4包构建一个flutter应用程序,该应用程序在调试模式下工作得很好,但是当我尝试使用flutter build apk --split-per-abi构建apk文件时,我得到了如下异常:
Note: C:\Users\Dheeraj\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sms-0.2.4\android\src\main\java\com\babariviere\sms\telephony\TelephonyManager.java uses or overrides a deprecated AP
我有一个利用Gradle进行测试和构建的java项目。我最近不得不将我的JVM更新到1.7.0_75将Maven用于另一个项目进行工作。 现在,我返回到Gradle项目,发现Gradle -v返回的命令未找到,并且在使用brew安装gradle后,我的构建脚本返回以下错误: * Where:
Build file '/Users/adamhardie/Documents/Workspace/sagepay-stub/build.gradle' line: 27
* What went wrong:
A problem occurred evaluating root pro
我试着使用上的最新版本来执行指令
切换到顶层目录并发出命令:
./梯度建筑
但失败了
* What went wrong:
Execution failed for task ':src:dist:buildPrintableDoc'.
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'stylesheets/site_printable.vsl'
* Try:
Run with --stacktrace option to ge
今早在我的gradle build中收到了这个警告,并试图找出如何解决它
Adding a Configuration as a dependency is a confusing behavior
which isn't recommended. This behaviour has been deprecated
and is scheduled to be removed in Gradle 8.0. If you're
interested in inheriting the dependencies from the
Configuration you are
这是一个典型的场景,“有一天你醒来,意识到以前工作的东西因为未知的原因而停止工作。”
我有一个运行Gradle命令的Jenkins作业。现在,在成功构建之后,下面的代码将抛出异常。
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html.
FAILURE: Build failed with an exception.
* Wha
尝试在我的Eclipse中创建简单的Gradle Java项目。我正在使用LOG4J库,所以我的build.gradle看起来:
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java-library'
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
我是jenkins服务器的新手,我想问一些帮助和方向,我目前有一个应用程序正在工作,并与firebase应用程序分发功能正确构建它在本地工作,可以分发我的应用程序我遵循了他们的设置与此。
问题是,我想在jenkins中自动分发我的应用程序,我已经成功地使用jenkins构建了一个apk,但当我将任务appDistributionUpload放在Gradle Wrapper任务上时,出现了这个错误。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:ap