Gradle refreshing every time I make project

已回答

Every time I make or rebuild my project IDEA starts "Refreshing Gradle Project", which takes some considerable time and slows down workflow.
I am not changing the gradle build script so I see no reason why the project needs to be refreshed on every build.

Is this expected behaviour and can I turn it off somehow?

PS. I also frequently get multiple gradle refresh processes running concurrently when making project.
Gradle version 1.2, Mac OSX 10.8.2, happens in both IDEA 11 and Leda
Similar to http://youtrack.jetbrains.com/issue/IDEA-92954

0

Hello,

Linked gradle project is expected to be refreshed only when build.gradle or IDE project structure is changed. Just tried to reproduce the problem with gradle refresh on project make but had no luck. Please create dedicated ticket and ideally attach a sample project to it (I tried 'samples/java/multiproject' from gradle distribution).

Regarding the IDEA-92954 - it's expected to be fixed prior to v.12 release.

Denis

0

My build.gradle is not changing and I've checked the timestamp just to be sure. Which other files would need to change in order for IDEA to think that the project structure had changed?

I shall create a ticket but I've not been able to replicate this on a small scale project. I have 2 reasonably large projects that exhibit this behaviour.

0

Auto refresh is triggered by build.gradle or IJ config files (*.ipr, *.iml or files from .idea folder) change.

Is your project public? Can I download it and check the processing at local environment?

Denis

0

It's an in-house project so I wouldn't be able to supply the source code but I could supply the build script and IDEA files if that's any help?

Further info - it only seems to happen after running my gradle build outside IDEA then returning to the ide and making the project, or even sometimes spontaneously when returning to the ide without running the make. Consecutive project makes within IDEA do not trigger the gradle refresh.
The only files that change are .idea/workspace.xml, my 'build' dir and SCM files in .hg.

0

Is it the case that that external gradle build touches IDE project files (modifies timestamp but doesn't change content)? Do you have 'idea' plugin defined at your build.gradle?

Denis

0

The timestamps do not change for any of the project files except the workspace.xml.

Unfortunately I can't use the idea plugin as it's not compatible with the .idea project structure; I wish it was as it would eliminate all the problems associated with keeping the depenedencies for Gradle and IDEA separate an in-sync and simply manage everything from gradle.

I'm just guessing here but could it be anything to do with the gradle daemon picking up on changes in the artifact cache?
I see that the timestamps on some files in the .gradle/caches/ do change after runnung the external gradle build.

0

Just checked the code and yes, the only reasons for auto-refresh are:

  • IDE project structure changes (*.iml, *.ipr, module and project config files from .idea dir);
  • opening project with linked gradle project;


I.e. there is no auto-refresh even on build.gradle modification.

I can add logging to the JetGradle plugin but ideally we'd like to get a sample gradle project which illustrates the problem (I understand that you were not able to repoduce it at the sample project so far).

Denis

0

Ok thanks Denis, I've double-checked and there are definitely no modifications/timestamp updates to the project files.

I will keep trying to replicate this on a simpler project and log an issue.

0

I am also getting this strange behavior even when I have turned off Auto-Import in Gradle Settings.

If there is any change in a Gradle related file.
After finishing a Gradle task the IDE automatically starts a Gradle Sync which makes IDE sluggish and non responsive.
Changes like commenting in a Gradle related file or just changing gradle.properties parameters that are only used from command line Gradle build, causes IntelliJ IDEA to resync the project which I wanted to delay as I know there is no logical change.

Here are some logs:

2018-02-19 16:19:07,816 [263467361]   INFO - idea.run.AndroidProcessHandler - Adding device xyz-OC4086K00530 to monitor for launched app: com.xyz.android.abc.def.ghi 
2018-02-19 16:19:14,715 [263474260]   INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-02-19 16:19:14,876 [263474421]   INFO - a.gradle.run.MakeBeforeRunTask - Gradle invocation complete, success = true
2018-02-19 16:19:15,017 [263474562]   INFO - ild.invoker.GradleBuildInvoker - About to execute Gradle tasks: [:ABC Android.app1:assembleDebug]
2018-02-19 16:19:15,023 [263474568]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_144
2018-02-19 16:19:15,023 [263474568]   INFO - util.EmbeddedDistributionPaths - Looking for embedded Maven repo at 'C:\Program Files\prebuilts\tools\common\offline-m2'
2018-02-19 16:19:15,023 [263474568]   INFO - ild.invoker.GradleBuildInvoker - Build command line options: [--configure-on-demand, --parallel, -Pandroid.injected.invoked.from.ide=true, -Pandroid.injected.build.api=18, -Pandroid.injected.build.density=mdpi, -Pandroid.injected.build.abi=armeabi-v7a,armeabi]
2018-02-19 16:19:15,031 [263474576]   INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --configure-on-demand --parallel -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.api=18 -Pandroid.injected.build.density=mdpi -Pandroid.injected.build.abi=armeabi-v7a,armeabi --offline
2018-02-19 16:19:15,125 [263474670]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 101ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-19 16:19:15,190 [263474735]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 65ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-19 16:19:28,555 [263488100]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 2ms
2018-02-19 16:19:28,555 [263488100]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 2ms
2018-02-19 16:19:52,810 [263512355]   INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-02-19 16:19:53,215 [263512760]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 4 to update, calculated in 0ms
2018-02-19 16:19:53,216 [263512761]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:19:56,987 [263516532]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:20:00,175 [263519720]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 25ms
2018-02-19 16:20:00,622 [263520167]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:20:00,782 [263520327]   INFO - .diagnostic.PerformanceWatcher - Reindexing refreshed files took 7567ms; general responsiveness: ok; EDT responsiveness: 1/7 sluggish, 6/7 very slow
2018-02-19 16:20:00,942 [263520487]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 101ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-19 16:20:01,047 [263520592]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 105ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-19 16:20:01,325 [263520870]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:20:41,628 [263561173]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:20:41,689 [263561234]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:20:45,520 [263565065]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 11ms
2018-02-19 16:20:45,523 [263565068]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 1 to update, calculated in 1ms
2018-02-19 16:20:47,632 [263567177]   INFO - .diagnostic.PerformanceWatcher - Reindexing refreshed files took 2109ms; general responsiveness: ok; EDT responsiveness: 0/2 sluggish, 1/2 very slow
2018-02-19 16:20:57,361 [263576906]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 6ms
2018-02-19 16:20:57,361 [263576906]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 6ms
2018-02-19 16:20:58,231 [263577776]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:20:58,233 [263577778]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:20:58,946 [263578491]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:20:58,946 [263578491]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:20:59,736 [263579281]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:20:59,742 [263579287]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 5ms
2018-02-19 16:21:01,444 [263580989]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:21:01,464 [263581009]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:03,106 [263582651]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:03,106 [263582651]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:05,796 [263585341]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:05,807 [263585352]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:07,680 [263587225]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 14ms
2018-02-19 16:21:07,680 [263587225]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 15ms
2018-02-19 16:21:09,249 [263588794]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:09,267 [263588812]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 9ms
2018-02-19 16:21:10,957 [263590502]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 9ms
2018-02-19 16:21:10,958 [263590503]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 2ms
2018-02-19 16:21:12,904 [263592449]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:12,928 [263592473]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 10ms
2018-02-19 16:21:14,174 [263593719]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:21:14,183 [263593728]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 9ms
2018-02-19 16:21:16,467 [263596012]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 2ms
2018-02-19 16:21:16,496 [263596041]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 20ms
2018-02-19 16:21:17,717 [263597262]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:17,718 [263597263]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:18,700 [263598245]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:21:18,751 [263598296]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:19,696 [263599241]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:19,708 [263599253]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:21:21,784 [263601329]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:21:21,785 [263601330]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:21:44,605 [263624150]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:21:44,605 [263624150]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:22:03,340 [263642885]   INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-02-19 16:22:06,552 [263646097]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 5 to update, calculated in 0ms
2018-02-19 16:22:06,595 [263646140]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 1ms
2018-02-19 16:22:07,230 [263646775]   INFO - .diagnostic.PerformanceWatcher - Reindexing refreshed files took 678ms; general responsiveness: ok; EDT responsiveness: 1/1 sluggish
2018-02-19 16:22:07,489 [263647034]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 207ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-19 16:22:07,616 [263647161]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 127ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-19 16:22:21,319 [263660864]   INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-02-19 16:22:21,537 [263661082]   INFO - a.gradle.run.MakeBeforeRunTask - Gradle invocation complete, success = true
2018-02-19 16:22:21,684 [263661229]   INFO - e.project.sync.GradleSyncState - Started sync with Gradle for project 'ABC'.
2018-02-19 16:22:21,684 [263661229]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 54ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-19 16:22:21,725 [263661270]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_144
2018-02-19 16:22:21,726 [263661271]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_144
2018-02-19 16:22:21,796 [263661341]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 112ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-19 16:22:21,801 [263661346]   INFO - util.EmbeddedDistributionPaths - Looking for embedded Maven repo at 'C:\Program Files\prebuilts\tools\common\offline-m2'
2018-02-19 16:22:21,816 [263661361]   INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: -Didea.version=2017.3.4 -Djava.awt.headless=true -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.advanced=true -Pandroid.injected.invoked.from.ide=true --init-script C:\Users\vij.MICRODOC\AppData\Local\Temp\ijinit.gradle --offline
2018-02-19 16:22:21,967 [263661512]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:22:22,059 [263661604]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-19 16:22:22,268 [263661813]   INFO -                    #InstantRun - Using legacy/main APK deploy task
2018-02-19 16:22:22,268 [263661813]   WARN - ols.idea.run.GradleApkProvider - Android model is null. Sync might have failed
0

Do you face this issue with Android projects only?

0

@Yaroslav Bedrov: No, unfortunately it happens fafter completion of any Gardle task, on non-Android projects as well.
I rechecked this by putting empty line in gradle.properties and running assemble task for a Java Sub-Module.
The build for this module just took few secs and then it triggered the Gradle Sync.


Event Log in IDE:

14:37    Executing tasks: [jar]
14:37    Gradle build finished in 2s 274ms
14:37    Gradle sync started
14:42    Gradle sync completed

idea.logs


2018-02-20 14:37:17,781 [343757326]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_144
2018-02-20 14:37:17,782 [343757327]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_144
2018-02-20 14:37:17,782 [343757327]   INFO - ild.invoker.GradleBuildInvoker - About to execute Gradle tasks: [jar]
2018-02-20 14:37:17,870 [343757415]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_144
2018-02-20 14:37:17,886 [343757431]   INFO - util.EmbeddedDistributionPaths - Looking for embedded Maven repo at 'C:\Program Files\prebuilts\tools\common\offline-m2'
2018-02-20 14:37:17,886 [343757431]   INFO - ild.invoker.GradleBuildInvoker - Build command line options: [--configure-on-demand, --parallel, -Pandroid.injected.invoked.from.ide=true]
2018-02-20 14:37:17,901 [343757446]   INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --configure-on-demand --parallel -Pandroid.injected.invoked.from.ide=true --offline
2018-02-20 14:37:20,267 [343759812]   INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-02-20 14:37:20,491 [343760036]   INFO - e.project.sync.GradleSyncState - Started sync with Gradle for project 'DCFAP'.
2018-02-20 14:37:20,531 [343760076]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_144
2018-02-20 14:37:20,532 [343760077]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_144
2018-02-20 14:37:20,581 [343760126]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 106ms; general responsiveness: ok; EDT responsiveness: ok


 

0

Could you please try to check the issue with IDEA 2018.1 EAP: https://www.jetbrains.com/idea/nextversion/ ?

 It seems to work fine on my machine.

0

Hi @Yaroslav Bedrov,
The problem persists even with IDEA 2018.1 EAP.
I get pretty much same logs

idea.logs

2018-02-22 16:21:57,971 [3482539]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk1.8.0_144 
2018-02-22 16:21:57,971 [3482539]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk1.8.0_144
2018-02-22 16:21:57,986 [3482554]   INFO - ild.invoker.GradleBuildInvoker - About to execute Gradle tasks: [jar]
2018-02-22 16:21:58,064 [3482632]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk1.8.0_144
2018-02-22 16:21:58,080 [3482648]   INFO - util.EmbeddedDistributionPaths - Looking for embedded Maven repo at 'C:\Program Files\prebuilts\tools\common\offline-m2'
2018-02-22 16:21:58,080 [3482648]   INFO - ild.invoker.GradleBuildInvoker - Build command line options: [--configure-on-demand, -Pandroid.injected.invoked.from.ide=true]
2018-02-22 16:21:58,111 [3482679]   INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --configure-on-demand -Pandroid.injected.invoked.from.ide=true --offline
2018-02-22 16:22:55,068 [3539636]   INFO - ild.invoker.GradleBuildInvoker - Gradle build finished with 16 warnings(s) in 56s 976ms
2018-02-22 16:22:55,115 [3539683]   INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-02-22 16:22:55,614 [3540182]   INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-02-22 16:22:55,895 [3540463]   INFO - e.project.sync.GradleSyncState - Started sync with Gradle for project 'DCFAP'.
2018-02-22 16:22:56,191 [3540759]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk1.8.0_144
2018-02-22 16:22:56,207 [3540775]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk1.8.0_144
2018-02-22 16:22:56,222 [3540790]   INFO - util.EmbeddedDistributionPaths - Looking for embedded Maven repo at 'C:\Program Files\prebuilts\tools\common\offline-m2'
2018-02-22 16:22:56,253 [3540821]   INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: -Didea.version=2018.1 -Djava.awt.headless=true -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.advanced=true -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.model.only.versioned=3 --init-script C:\Users\vij.MICRODOC\AppData\Local\Temp\ijinit.gradle --offline
2018-02-22 16:22:59,997 [3544565]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 3884ms; general responsiveness: ok; EDT responsiveness: 0/1 sluggish, 1/1 very slow
2018-02-22 16:23:00,871 [3545439]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 874ms; general responsiveness: ok; EDT responsiveness: 1/4 sluggish, 3/4 very slow
2018-02-22 16:23:00,871 [3545439]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 3170 files to update
2018-02-22 16:23:03,071 [3547639]   INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 2200ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-22 16:23:03,071 [3547639]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms
2018-02-22 16:23:10,014 [3554582]   INFO - ide.actions.ShowFilePathAction -
Exit code 1
2018-02-22 16:25:51,267 [3715835]   INFO - util.EmbeddedDistributionPaths - Looking for embedded Maven repo at 'C:\Program Files\prebuilts\tools\common\offline-m2'
2018-02-22 16:25:51,267 [3715835]   INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: -Didea.version=2018.1 -Djava.awt.headless=true -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.advanced=true -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.model.only.versioned=3 --init-script C:\Users\vij.MICRODOC\AppData\Local\Temp\ijinit.gradle --offline -Didea.version=2018.1 -Djava.awt.headless=true -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.advanced=true -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.model.only.versioned=3 --init-script C:\Users\vij.MICRODOC\AppData\Local\Temp\ijinit6.gradle --offline
2018-02-22 16:25:52,343 [3716911]   INFO - e.project.sync.GradleSyncState - Started setup of project 'DCFAP'.

Here is what i get in Event Log


0

Could you please share full idea.log after restarting IDE and reproducing the issue? "I rechecked this by putting empty line in gradle.properties and running assemble task for a Java Sub-Module."  - was it a pure java project or there were android sub-modules? Will the issue occure if you create new sample Gradle project from the scratch?

0

请先登录再写评论。