1

I just installed Android Studio, I installed the recommended packages from the SDK Manager, now I am trying to build a sample app. I got this error message:

Failed to complete Gradle execution:
Cause:
net.rubygrapefruit.platform.internal.jni.PosixProcessFunctions.getPid()

Any ideas how to solve this?

4

2 回答 2

3

我遇到了同样的问题,我重新启动了IDE。之后它开始正常工作。

于 2015-05-15T07:42:58.683 回答
1

就个人而言,我已将 Gradle Wrapper 的版本更新到最新版本。

打开文件 gradle-wrapper.properties。

更改distributionUrl的 url 。

例子:

distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-bin.zip

刷新 Gragle 项目,您应该一切顺利。

于 2017-03-28T20:24:50.517 回答