Graille Sync with no-Android Project

Answered

It seems that Gradle project are not automatically synced if the project is a gradle project but not an Android project.

For example, adding dependency to build.grade does not sync in IntelliJ project and I have to manually reimport project.

 

Is there any workaround for that ?

0
6 comments

Did you try to Refresh the project in the Gradle Projects tool window?

0

Actually I did not found the icon you are showing in your screen show.. How can I display it ?

And with Android project, it's done automatically...

0

If your project was imported from Gradle, you will have Gradle Projects tool window, see https://www.jetbrains.com/idea/help/gradle-tool-window.html for details.

In case you don't see it, delete .idea directory and open build.gradle file to reimport the project.

0

Okay  : I got it.

 

Thanks.

But should sync be made manually ?

 

0

No, if you have Use auto-import enabled:

0

ok, works fine.

 

Thanks

0

Please sign in to leave a comment.