[Android] 01 - Trivial knowledge of Android
源码编译
1. Android 7.1.1 source: 下载地址
2. 使用了移动硬盘100G。记得修改挂载后的硬盘权限,即添加运行权限。

3. Java jdk 8安装后,要restart pc哦,确保是openJDK 8。
$ sudo update-alternatives --config java $ sudo update-alternatives --config javac
4. conda python版本修改。
$ conda create -n py35 python=3.5 anaconda $ conda create -n py27 python=2.7 anaconda
source activate py35
source deactivate py35
source activate py27
source deactivate py27
5. Compile。
source build/envsetup.sh lunch aosp_x86_64-eng
make -j4 <-- 要老老实实按部就班!
6. Do you have 16GB memory? If not, please give up.
7. Android SDK:
lolo@lolo-UX303UB$ ls ./system-images/android-25/google_apis/x86_64/
build.prop NOTICE.txt source.properties
kernel-qemu package.xml system.img
kernel-ranchu ramdisk.img userdata.img
在实体设备上运行您的应用
https://developer.android.com/training/basics/firstapp/running-app.html
在模拟器上运行您的应用
https://developer.android.com/training/basics/firstapp/running-app.html
在settings中的插件安装Genymotion即可。

适应性,多样性,鲁棒性
Supporting Different Languages
Learn how to support multiple languages with alternative string resources.
Learn how to optimize the user experience for different screen sizes and densities.
Supporting Different Platform Versions
Learn how to use APIs available in new versions of Android while continuing to support older versions of Android.
Debug方法论
常用快捷键列表:你需要掌握的Debug技巧


浙公网安备 33010602011771号