我想从命令行编译我的应用程序,而不是从Android编译。当我从Android启动到我的设备/模拟器时,我的应用程序工作得很好,但是当我尝试这样做的时候:
gradlew build
我得到:
> Task :app:kaptGenerateStubsReleaseKotlin FAILED
Caught an exception trying to connect to Kotlin Daemon
org.gradle.api.GradleException: Kotlin could not find the required JDK tools in the Java instal
我真的试过了我能想到的一切。当运行颤振运行时,我得到:
Kotlin could not find the required JDK tools in the Java installation '/usr/lib/jvm/java-8-openjdk-amd64/jre' used by Gradle. Make sure Gradle is running on a JDK, not JRE.
我试过在航站楼设置我的路径:
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
echo $JAVA_HOME给了我以下内容:
/
所以我在用我的JRE设置bouncy castle,编辑文件'java.security‘。现在,当我运行gradle命令时,我接收到:
C:\temp>gradle
Error: Could not find or load main class security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider
我已经完全卸载/删除了JDK、JRE、Gradle用户主页和Gradle安装/目录。我安装了JDK和JRE的较新版本,与Gradle的版本相同,但位于不同的目录中。但我还是得到了:
C:\tem
在我正在工作的项目中,我得到了以下错误,我不知道如何在Android Studio上从JRE更改为JDK。
.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jre8\1.2.20\f77d7863695e17041b50ebe5e2f87e5314a2c812\kotlin-stdlib-jre8-1.2.20.jar: kotlin-stdlib-jre8 is deprecated. Please use kotlin-stdlib-jdk8 instead
我是Android的新手,我安装了AndroidStudio-1.2.1.1,我安装了jdk1.7.0_40,我面临着gradle构建的问题。作为参考,您可以检查
我正在收到消息中的以下错误
Error:The newly created daemon process has a different context than expected.
Java home is different.
Expecting: 'C:\Program Files\Java\jdk1.7.0_40' but was: 'C:\Program Files\Java\jdk1.7.0_40
在升级到AndroidStudio2.3之后,我还无法使用嵌入式JDK。当我试图构建这个项目时,我会遇到这样的错误:
Error:The newly created daemon process has a different context than expected.
Java home is different.
Expecting: 'D:\Development\IDE\AndroidStudio\jre' but was: 'C:\Program Files\Java\jre1.8.0_121'.
Please configure the JDK t
我去看了医生。我克隆了存储库,签出了主库,并试图通过执行
$ ./gradlew build
但我错了
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/5.6.4/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Task :s
我下载了适用于Mac的Idea EAP 2017.3旗舰版,以及一个捆绑的jre。
一旦我克隆了我的gradle项目,我试图同步,但它抱怨没有项目SDK。
我试图将捆绑的jre添加到/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home下,但它总是抱怨它不是有效的JDK home。
所以我下载了jre 9并安装了。
将其添加为Project SDK,现在我得到了:
The newly created daemon process has a different context than expected.
It won't
我首先创建了一个新的flutter项目。
但是我得到了这个错误:
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Kotlin could not find the required JDK tools in the Java installation 'C:\Program Files\Java\jre1.8.0_261' used by Gradle. Make sure Gradle is running on a JDK, not JRE.
* T
Android Studio is using the following JDK location when running Gradle:
E:\Android\Android Studio\jre
Using different JDK locations on different processes might cause Gradle to
spawn multiple daemons, for example, by executing Gradle tasks from a terminal
while using
出现以下错误,并且我的android项目都没有与gradle同步。当我打开android studio时,这是自然而然发生的。我的JAVA_HOME用户变量被设置为'C:\Program Files\Javajdk1.8.0144bin‘。此外,JDK在android studio中的位置不会从F:\Softwares\jre更改为任何内容,因为当我尝试更改它时,它会变回原来的位置。
The newly created daemon process has a different context than expected.
Java home is differnt.
Expect
我使用unity 2020.3.13,我开始使用android游戏。我尝试使用从Android Studio获得的JDK来设置JDK,但得到以下错误: Incompatible Java version '16'
Android development requires JDK 8(1.8)64-bit. Having Java Runtime Environment(JRE) installed is not sufficient. 我很困惑,因为我的JDK版本高于8,但仍然不能。我必须安装确切的JDK版本8吗?使用Unity提供的JDK、SDK、NDK和Gradle和An
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 936 file(s) to forward-jetify. Using 12 workers...
info JS server already running.
info Installing the app...
> Task :react-native-gradle-plugin:compileKotlin FAILED
'
我可以从命令行运行gradle来查看它的版本。
我可以在IntelliJ中运行、编译和调试grails应用程序( 10.0版或10.2版)
我安装了IntelliJ Gradle插件。
每当我试图从Intellij内部使用gradle做任何事情时,我都会得到如下错误:
Executing command: "tasks"
Failed to connect to gradle process for command 'tasks'
ERROR: JAVA_HOME is set to an invalid directory: C:\Pro
我想用IntelliJ IDEA 15代替Android,但我在建筑方面遇到了问题。我得到以下错误:
Gradle sync failed: The newly created daemon process has a different context than expected.
It won't be possible to reconnect to this daemon. Context mismatch:
Java home is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=C:\Program Fi