Android Studio Gradle Error Error:Cause: net.rubyg

2019-07-07 07:22发布

问题:

I am using android studio and after my most recent launch of the IDE i get a gradle error when I try to run the project. This is the error.

Error:Cause: net.rubygrapefruit.platform.internal.jni.PosixProcessFunctions.getPid()I

I have made no changes from my code as of the last run, and for some reason this is now happening. Any help is much appreciated.

回答1:

I restarted the IDE and it appears to work now. Still no idea as to the cause of the problem, however a quick restart seemed to work for now.



回答2:

After update/install new plugin in IntelliJ sometimes Gradle plugin crushes. Just do in IntelliJ Flie -> Invalidate caches/Restart.



回答3:

For me, I just modify gradle-wrapper.properies file.

distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

=> distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip