ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

asfp导入framework搭建环境

asfp导入framework搭建环境

修改大内存,必须要32GB及以上

先关闭正在使用的 swapfile

# 查看当前挂载的交换分区/文件
sudo swapon --show# 若显示有 /swapfile,执行以下命令关闭
sudo swapoff /swapfile# 创建新的 swapfile(以 16GB 为例,根据需要调整 count 值)
sudo dd if=/dev/zero of=/swapfile bs=1G count=16# 设置权限(仅 root 可访问)
sudo chmod 600 /swapfile# 格式化为交换文件系统
sudo mkswap /swapfile# 启用交换文件
sudo swapon /swapfile# 验证是否生效
free -h  # 查看 Swap 行是否有数值

确保 Android Studio 能识别新生成的依赖:

make idegen
development/tools/idegen/idegen.sh

git管理

git init

添加 .gitignore

/cts/
/platform_testing/
/tools/
/system/
/external/
/libcore/
/art/
/bionic/
/bootable/
/build/
/compatibility/
/dalvik/
/developers/
/development/
/device/
/external/
/hardware/
/kernel/
/libnativehelper/
/out/
/pdk/
/prebuilts/
/sdk/
/toolchain/
/test/

添加忽略

git add .gitignore
git commit -m "Add .gitignore file"
**移除老的缓存(不必)
git rm --cached 文件名git add frameworksgit commit -m "add frameworks track"

将framework导入asfp平台

image

image

image

返回列表