One demon for all

🇺🇦 Eugen Martynov
2 min readJul 1, 2019

--

(☝It is intentional misspelling from daemon)

You probably read a great article from Svyatoslav Chatchenko about how to use the same daemon from Android Studio and console.

However, if you started using Android Studio 3.5, after some mixed runs of the project from Android Studio and from the console, you might see the following log if you run ./gradlew — status:

Congratulations, you still don’t share them. The problem is again the JDK location.

The fix!

If you downloaded and installed JDK upfront and specified JAVA_HOME environment variable:

  • Find yours JAVA_HOME destination by running echo $JAVA_HOME
  • Copy printed destination
  • Open project structure:
  • And put destination to JDK location:

If you always used embedded JDK from Android Studio:

  • Open project structure
  • Select, if needed, and copy embedded JDK location
  • Define JAVA_HOMEenvironment variable and point it to embedded JDK (Google it for your operating system)

Enjoy one shared gradle daemon from now! Best wishes!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

🇺🇦 Eugen Martynov
🇺🇦 Eugen Martynov

Written by 🇺🇦 Eugen Martynov

Stand with Ukraine! The loving XP husband and freelance Android/Kotlin engineer.

No responses yet

Write a response