Gradle no longer working after upgrade from IntelliJ version 2017.1.1 to version 2019.1

Answered

On my original workstation, I was using IntelliJ version 2017.1.1, JDK 1.8 and Gradle version 4.10.3. I moved to a new workstation and installed IntelliJ version 2019.1, JDK 1.8 and Gradle version 5.3. 

When I run a clean build Gradle task, I see this in my run log console:

11:00:43 AM: Executing tasks 'clean build'...

Unknown host 'services.gradle.org'. You may need to adjust the proxy settings in Gradle.
Enable Gradle 'offline mode' and sync project
Learn about configuring HTTP proxies in Gradle
11:00:43 AM: Tasks execution finished 'clean build'.

When I click on the Enable Gradle offline mode error message, I get a pop up window asking me to provide the path to the Android SDK. My project is a strictly Java project, I'm not using Android at all.

For some reason IntelliJ keeps thinking I'm working on an Android project, when in fact my project is a strictly Java project.It relentlessly asks me to specify an Android SDK. 


Any ideas?

Thanks, Joe

1
3 comments

Does it help if you disable Android plug-in?

0
Avatar
Permanently deleted user

I checked under File / Settings / Plugins but I have no plugins installed. 

0

Please sign in to leave a comment.