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?

chubao
  • 5,871
  • 6
  • 39
  • 64
Serban Stoenescu
  • 3,136
  • 3
  • 22
  • 41

2 Answers2

3

I got same issue, I restarted IDE. It started working fine after that.

Muhammad Adil
  • 4,358
  • 3
  • 32
  • 36
1

Personally, I have updated the version of the Gradle Wrapper to the latest.

Open the file gradle-wrapper.properties.

Change the url of distributionUrl.

Example:

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

Refresh the Gragle project and you should be good to go.

JCVGégé
  • 11
  • 3