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 ?

6 comments
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

Okay  : I got it.

 

Thanks.

But should sync be made manually ?

 

0
Comment actions Permalink

No, if you have Use auto-import enabled:

0
Comment actions Permalink

ok, works fine.

 

Thanks

0

Please sign in to leave a comment.