首页 \ 问答 \ 从Android Studio调试时,Gradle无法使用JAVA_HOME(Gradle can't user JAVA_HOME while debugging from Android Studio)

从Android Studio调试时,Gradle无法使用JAVA_HOME(Gradle can't user JAVA_HOME while debugging from Android Studio)

我正在尝试在android studio中编译一个项目,它给出了

无法使用Gradle分发' http://services.gradle.org/distributions/gradle-1.6-bin.zip '执行构建。

我已经红了以收集我应该使用的更多信息:

gradlew compileDebug --stacktrace

从主文件夹,但当我这样做,我得到了错误:

JAVA_HOME设置为无效目录:C:\ Program Files(x86)\ Java \ Jre7 \ bin \ java.exe;

请注意,我试图在JAVA_HOME路径中使用64位版本的jre。

有人可以给我一些帮助吗?

提前致谢


I'm trying to compile a project in android studio and it gives the

Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.

I've already red that to gather more information i should use:

gradlew compileDebug --stacktrace

from the main folder, but when i do that i get that error:

JAVA_HOME is set toan invalid directory: C:\Program Files (x86)\Java\Jre7\bin\java.exe;

Please note that i tried to use a 64 bit version of the jre too in the JAVA_HOME path.

Anyone can give me some help ?

Thanks in advance


原文:
更新时间:2022-07-21 07:07

最满意答案

Braintree很有帮助,并且通常在~12小时内回复,给他们一个机会:

support@braintreepayments.com

过去几个月我一直在和他们打交道。 向他们发送帖子文本的副本。 我发现你不必非常正式。


Braintree are helpful and respond within ~12 hours normally, give them a shot:

support@braintreepayments.com

I've been dealing with them for the last few months. Send them a copy of your posts' text. I find you don't have to be very formal with them.

相关问答

更多
  • 在iOS集成上,是的,它受到支持。 目前,Drop-in选项在iOS和Android上以18种语言提供,但仅在网络上以英文(US)显示。 以下是iOS本地化软件包中的SDK详细信息 On an iOS integration, yes it's supported. Currently, the Drop-in option is available in 18 languages on iOS and Android, but only in English (US) on the web. Here's ...
  • 完全披露:我在Braintree工作。 如果您有任何其他问题,请随时联系[支持] [支持]。 无法在Drop-In UI中更改文本或访问字段。 为了更好地控制界面, 客户端支付处理的开发人员文档提供了有关如何在没有Drop-In UI的情况下对支付信息进行标记的说明。 Full disclosure: I work at Braintree. If you have any further questions, feel free to contact [support][support]. There i ...
  • 完全披露:我在Braintree工作。 如果您有任何其他问题,请随时联系支持 。 Braintree的javascript SDK会生成新的payment_method_nonce ,但它不会自动将其发送到您的服务器。 这个过程的一部分由你决定。 您可以通过实现onPaymentMethodReceived回调来访问和使用新的nonce: