编译andorid时使用ccache

ccache可加速c/c++代码编译过程,主要是头文件预处理过程,

在编译android时要使用ccache

export USE_CCACHE=1

export CCACHE_DIR=/path to ccache dir/  默认是home目录下的.ccache

ccache -M 20G 配置缓存最大小,这个参数保存在CCACHE_DIR所在的目录

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
package AndroidDLoader; import h; import j; import java.util.ArrayList; import l; import m; import n; public final class ReqDownSoftPack extends m { static ArrayList cache_listDownSoftItems; public ArrayList listDownSoftItems = null; public int nGUID = null; public String sQUA = ""; static { if (!ReqDownSoftPack.class.desiredAssertionStatus()); while (true) { boolean bool = $assertionsDisabled; return; } } public ReqDownSoftPack() { String str = this.sQUA; setSQUA(str); int i = this.nGUID; setNGUID(i); ArrayList localArrayList = this.listDownSoftItems; setListDownSoftItems(localArrayList); } public ReqDownSoftPack(String paramString, int paramInt, ArrayList paramArrayList) { setSQUA(paramString); setNGUID(paramInt); setListDownSoftItems(paramArrayList); } public String className() { return "AndroidDLoader.ReqDownSoftPack"; } public Object clone() { int i = 0; try { Object localObject = super.clone(); return localObject; } catch (CloneNotSupportedException localCloneNotSupportedException) { $assertionsDisabled = localCloneNotSupportedException; if (localCloneNotSupportedException == null); throw new AssertionError(); } } public void display(StringBuilder paramStringBuilder, int paramInt) { h localh = new h(paramStringBuilder, paramInt); String str = this.sQUA; localh.a(str, "sQUA"); int i = this.nGUID; localh.a(i, "nGUID"); ArrayList localArrayList = this.listDownSoftItems; localh.a(localArrayList, "listDownSoftItems"); } public boolean equals(Object paramObject) { paramObject = (ReqDownSoftPack)paramObject; Object localObject1 = this.sQUA; String str = paramObject.sQUA; localObject1 = n.a(localObject1, str); int j; if (localObject1 != 0) { int i = this.nGUID; int k = paramObject.nGUID; boolean bool = n.a(i, k); if (bool) { Object localObject2 = this.listDownSoftItems; ArrayList localArrayList = paramObject.listDownSoftItems; localObject2 = n.a(localObject2, localArrayList); if (localObject2 != 0) j = 1; } } while (true) { return j; Object localObject3 = null; } } public ArrayList getListDownSoftItems() { return this.listDownSoftItems; } public int getNGUID() { return this.nGUID; } public String getSQUA() { return this.sQUA; } public void readFrom(j paramj) { int i = 1; String str = paramj.a(0, i); setSQUA(str); int j = this.nGUID; int k = paramj.a(j, i, i); setNGUID(k); if (cache_listDownSoftItems == null) { cache_listDownSoftItems = new ArrayList(); DownSoft localDownSoft = new DownSoft(); cache_listDownSoftItems.add(localDownSoft); } ArrayList localArrayList1 = cache_listDownSoftItems; ArrayList localArrayList2 = (ArrayList)paramj.a(localArrayList1, 2, i); setListDownSoftItems(localArrayList2); } public void setListDownSoftItems(ArrayList paramArrayList) { this.listDownSoftItems = paramArrayList; } public void setNGUID(int paramInt) { this.nGUID = paramInt; } public void setSQUA(String paramString) { this.sQUA = paramString; } public void writeTo(l paraml) { String str = this.sQUA; paraml.a(str, 0); int i = this.nGUID; paraml.a(i, 1); ArrayList localArrayList = this.listDownSoftItems; paraml.a(localArrayList, 2); } }
Android Studio的缓存是指在项目中导入的AAR和库的缓存文件,它可以加快编译间。在Android Studio 2.2版本中引入了编译缓存功能,而在2.3版本上进一步优化,并默认开启了这个功能。 缓存文件通常以jar包的形式存在于项目的依赖路径下的"external libraries"文件夹中。当你在编译过程中遇到问题,可以检查这个文件夹中的缓存文件,以确定对应的库是否存在。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Android Studio已经配置好的项目Zygisk-Il2CppDumper 相关依赖自动更新完之后,直接运行就可以生成](https://download.csdn.net/download/hexinbo/88227729)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [Android Studio 编译缓存(Build Cache)](https://blog.csdn.net/CYL926/article/details/60877009)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [Android studio终极清缓存](https://blog.csdn.net/c_he_n/article/details/105855883)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值