国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁 > news >正文

新公司注冊工商核名系統(tǒng)網(wǎng)站優(yōu)化外包

新公司注冊工商核名系統(tǒng),網(wǎng)站優(yōu)化外包,網(wǎng)站自然排名這么做,wordpress修改主題文章目錄 配置下載AS編譯源碼依賴導(dǎo)入玩一下andorid.iml 注意: 有些時候發(fā)現(xiàn)為啥自己編譯就這么難呢?不是卡死就無數(shù)次重啟虛擬機,一切的原罪在配置過低,換句話說就是窮。關(guān)于導(dǎo)入源碼的下載參考 Android Studio for Platform (AS…

文章目錄

          • 配置
          • 下載AS
          • 編譯
          • 源碼依賴導(dǎo)入
          • 玩一下andorid.iml

注意:

  1. 有些時候發(fā)現(xiàn)為啥自己編譯就這么難呢?不是卡死就無數(shù)次重啟虛擬機,一切的原罪在配置過低,換句話說就是
  2. 關(guān)于導(dǎo)入源碼的下載參考 Android Studio for Platform (ASfP) 使用教程
  3. 內(nèi)存消耗非常驚人!!! 建議編譯內(nèi)存在32G,避免出現(xiàn)卡頓甚至卡死,因為即使有交換內(nèi)存仍然會卡頓,如下一共使用到11+8≈20G內(nèi)存之多,加上Ubuntun本地內(nèi)存高達7G左右,如果是虛擬機開發(fā),建議直接上64G內(nèi)存。
    在這里插入圖片描述
    在這里插入圖片描述
配置

1. 選擇android.ipr導(dǎo)入源碼
2. 建立一個空的jdk, 并設(shè)置為工程依賴的jdk
3. 刪除所有的依賴庫
4. 將
frameworks
external目錄作為依賴,并調(diào)整依賴優(yōu)先級
5. 將
out/target/common/R/設(shè)置為依賴
6. 將不需要的目錄從索引中刪除,提高檢索速度
**

下載AS

下載

  1. https://developer.android.com/studio/install?hl=zh-tw#linux
  2. 在這里插入圖片描述
    3.雙擊解壓到 :/opt/android-studio

創(chuàng)建快捷方式
/usr/share/applications/android-studio.desktop

[Desktop Entry]
Encoding=UTF-8
Name=RealAndroidStudio                                     
Comment=RealAndroidStudio                                  
Exec=/opt/android-studio/bin/studio.sh
Icon=/opt/android-studio/bin/studio.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
編譯

soruce build/envsetup.sh
lunch sdk_phone_x86_64
make -j8
mmm development/tools/idegen/
. development/tools/idegen/idegen.shsudo chmod 777 android.iml
sudo chmod 777 android.ipr
  • android.ipr:通常是保存工程相關(guān)的設(shè)置,比如編譯器配置,入口,相關(guān)的libraries等
  • android.iml:則是主要是描述了modules,比如modules的路徑,依賴關(guān)系等.
  • android.iws:則主要是包含了一些個人工作區(qū)的設(shè)置.

在這里插入圖片描述

在這里插入圖片描述
修改 iml 內(nèi)容
gedit /data/android-11.0.0_r9/android.iml

  1. 源碼只需要external(第三方依賴),frameworks(框架)
    <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/external" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/frameworks" isTestSource="false" /><excludeFolder url="file://$MODULE_DIR$/.repo" /><excludeFolder url="file://$MODULE_DIR$/abi" /><excludeFolder url="file://$MODULE_DIR$/art" /><excludeFolder url="file://$MODULE_DIR$/bionic" /><excludeFolder url="file://$MODULE_DIR$/bootable" /><excludeFolder url="file://$MODULE_DIR$/build" /><excludeFolder url="file://$MODULE_DIR$/cts" /><excludeFolder url="file://$MODULE_DIR$/dalvik" /><excludeFolder url="file://$MODULE_DIR$/developers" /><excludeFolder url="file://$MODULE_DIR$/development" /><excludeFolder url="file://$MODULE_DIR$/device" /><excludeFolder url="file://$MODULE_DIR$/docs" /><excludeFolder url="file://$MODULE_DIR$/frameworks/base/docs" /><excludeFolder url="file://$MODULE_DIR$/hardware" /><excludeFolder url="file://$MODULE_DIR$/kernel" /><excludeFolder url="file://$MODULE_DIR$/libcore" /><excludeFolder url="file://$MODULE_DIR$/libnativehelper" /><excludeFolder url="file://$MODULE_DIR$/ndk" /><excludeFolder url="file://$MODULE_DIR$/out" /><excludeFolder url="file://$MODULE_DIR$/pdk" /><excludeFolder url="file://$MODULE_DIR$/platform_testing" /><excludeFolder url="file://$MODULE_DIR$/prebuilt" /><excludeFolder url="file://$MODULE_DIR$/prebuilts" /><excludeFolder url="file://$MODULE_DIR$/rc_projects" /><excludeFolder url="file://$MODULE_DIR$/sdk" /><excludeFolder url="file://$MODULE_DIR$/system" /><excludeFolder url="file://$MODULE_DIR$/tools" /><excludeFolder url="file://$MODULE_DIR$/trusty" /></content>

完成之后,按照上面說的步驟,使用Android Studio選中"android.ipr"打開項目即可。
在這里插入圖片描述

源碼依賴導(dǎo)入

如果之前沒有刪除orderEntry* 會出現(xiàn)很多依賴項,直接刪除,然后導(dǎo)入frameworksexternal源碼依賴*

在這里插入圖片描述

導(dǎo)入后提示如下
在這里插入圖片描述

玩一下andorid.iml

1. 我們刪除整個項目
在這里插入圖片描述
2. 打開iml 發(fā)現(xiàn)sourceFolder直接消失了,只剩下orderEntry 依賴
在這里插入圖片描述
3.重新打開Project Structure
在這里插入圖片描述
4.選擇frameworkpackages 發(fā)現(xiàn)右邊多了些Source Folders的源文件
在這里插入圖片描述

https://blog.csdn.net/ChaoLi_Chen/article/details/121947970
https://juejin.cn/post/6859181913232375815
https://juejin.cn/post/7216495812577427517
https://www.jianshu.com/p/30a628335114
https://blog.csdn.net/qq_20330595/article/details/133764506

http://aloenet.com.cn/news/31096.html

相關(guān)文章:

  • 高端用戶群瀏覽網(wǎng)站石家莊網(wǎng)站seo
  • 西安手機網(wǎng)站建設(shè)公司排名查關(guān)鍵詞熱度的網(wǎng)站
  • 怎樣建立一個營銷的公司網(wǎng)站抖音seo搜索優(yōu)化
  • 卓越 網(wǎng)站建設(shè) 深圳西鄉(xiāng)競價托管
  • 電子商務(wù)網(wǎng)站規(guī)劃的原則是什么seo技術(shù)博客
  • 全國網(wǎng)站制作公司石家莊seo外包公司
  • 網(wǎng)站開發(fā)周期石家莊關(guān)鍵詞排名提升
  • 海淀網(wǎng)站建設(shè)公司廣告推廣賺錢
  • 佛山優(yōu)化網(wǎng)站排名收費關(guān)鍵詞推廣優(yōu)化外包
  • 騰寧網(wǎng)絡(luò)做網(wǎng)站抖音seo怎么收費
  • 學(xué)網(wǎng)絡(luò)推廣哪個培訓(xùn)機構(gòu)好windows優(yōu)化大師官方免費下載
  • 用asp做網(wǎng)站怎么美觀seo網(wǎng)站關(guān)鍵詞快速排名
  • 國際交友網(wǎng)站做英文客服seo項目分析
  • 網(wǎng)站建設(shè)如何做報價會計培訓(xùn)班有用嗎
  • 外貿(mào)網(wǎng)站怎么做網(wǎng)站關(guān)鍵詞推廣
  • 用一段話來解釋網(wǎng)站建設(shè)常用網(wǎng)站推廣方法及資源
  • 世界上前端做的最好的網(wǎng)站營銷模式有幾種
  • 做室內(nèi)設(shè)計兼職的網(wǎng)站營銷渠道的概念
  • 網(wǎng)站免費建站276人vs猛龍
  • 做網(wǎng)站 客戶一直要求改杭州網(wǎng)絡(luò)推廣有限公司
  • 租房寧波seo網(wǎng)絡(luò)推廣多少錢
  • 個人網(wǎng)站建設(shè)方案書 范文百度免費推廣網(wǎng)站
  • 做娛樂新聞的網(wǎng)站有哪些市場調(diào)研報告范文
  • wp怎么做雙語網(wǎng)站百度快速收錄入口
  • 網(wǎng)站空間支持什么程序邯鄲百度推廣公司
  • mvc5 web網(wǎng)站開發(fā)實戰(zhàn)廣州百度seo優(yōu)化排名
  • 貴金屬網(wǎng)站模板網(wǎng)站收錄提交入口網(wǎng)址
  • dw如何用表格做網(wǎng)站免費網(wǎng)頁制作平臺
  • 代理服務(wù)器地址怎么找搜狗排名優(yōu)化工具
  • b2c商城網(wǎng)站建設(shè)目的網(wǎng)頁關(guān)鍵詞優(yōu)化軟件