'Android Studio unable to Git Push -- I can through terminal

I am no longer able to push to github via Android Studio. Everytime I try I now get this error message:

The operation couldn't be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java. error: failed to push some refs to 'github.com:xxxxxxxxxx'

Not sure what caused the issue, just started happening one morning (although it was after updating Android Studio to Bumblebee).

I can use the terminal to push just fine, but would really like to get this issue fixed as it's just an easier workflow.



Solution 1:[1]

Enable -> Use credential helper

Android Studio Settings

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kyriakos Georgiopoulos