Speed up Android project build time in IntelliJ IDEA

前端 未结 4 1825
失恋的感觉
失恋的感觉 2020-12-08 07:37

I am wondering, if there is any way, how to set skip packaging and dexing in IntelliJ IDEA like in Eclipse and ADT. There is Additional VM Options

4条回答
  •  抹茶落季
    2020-12-08 07:45

    Sometimes when I add large external JARs to my (Eclipse) project it seems to slow down the build process significantly.

    I have, however, noticed that instead of adding the jars as usual (Project -> Properties -> Java Build Path -> Libraries -> Add External JARs...) one can add a user library instead (Project -> Properties -> Java Build Path -> Libraries -> Add Library... -> User Library) and add the external JARs to this library instead.

    This have so far always solved my large-JARs-build-time-issues. Some smart guys have also explained to me why this is so, but unfortunately I don't really remember the explanation. I have no experience in IntelliJ - I don't know if this is at all applicable in your case, nevertheless, you might get further ideas from here...

提交回复
热议问题