ubuntu 18.04 android 系统 5.1.1系统
make 版本默认
jdk:open-jdk7 如果在同一个系统中系统多个 版本时,最好手动导入如:
export CLASSPATH=/home/haidragon/Desktop/java-7-openjdk-amd64/lib
export JAVA_HOME=/home/haidragon/Desktop/java-7-openjdk-amd64
export PATH=$PATH:/home/haidragon/Desktop/java-7-openjdk-amd64/bin
可能也要导入:
export LC_ALL=C
同时最好更新下api :
make update-api
编译的时候就是老报一个错:
AttributeError: 'JNIFromJavaP' object has no attribute 'fully_qualified_class'
解决是输入:
unset CLASSPATH 去掉变量 (好吧)
同时你应该已经安装各种依赖项目。看:https://blog.51cto.com/haidragon/2399947
报这个错如下:
解决是:
https://www.cnblogs.com/pngcui/p/5810956.html
但是我是cp 拷贝的。
haidragondeMacBook-Air:androidbuild haidragon$ adb devices
List of devices attached
047e3631ce95b902 device
haidragondeMacBook-Air:androidbuild haidragon$ adb shell
shell@mako:/ $ exit
haidragondeMacBook-Air:androidbuild haidragon$ adb shell
shell@mako:/ $ exit
haidragondeMacBook-Air:androidbuild haidragon$ export ANDROID_PRODUCT_OUT=/Users/haidragon/Desktop/androidbuild/mako
haidragondeMacBook-Air:androidbuild haidragon$ echo $ANDROID_PRODUCT_OUT
/Users/haidragon/Desktop/androidbuild/mako
haidragondeMacBook-Air:androidbuild haidragon$ adb reboot bootloader
haidragondeMacBook-Air:androidbuild haidragon$ fastboot flashall -w
--------------------------------------------
Bootloader Version...: MAKOZ30d
Baseband Version.....: M9615A-CEFWMAZM-2.0.1701.03
Serial Number........: 047e3631ce95b902
--------------------------------------------
Checking 'product' OKAY [ 0.000s]
Sending 'boot' (6402 KB) OKAY [ 0.206s]
Writing 'boot' OKAY [ 0.358s]
Sending 'recovery' (6962 KB) OKAY [ 0.238s]
Writing 'recovery' OKAY [ 0.405s]
Sending 'system' (349069 KB) OKAY [ 12.357s]
Writing 'system' OKAY [ 22.412s]
Erasing 'userdata' OKAY [ 0.807s]
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 3449600 4k blocks and 863264 inodes
Filesystem UUID: 5229afe4-350b-4ae3-a775-aef6a4a9c153
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
Sending 'userdata' (3496 KB) OKAY [ 0.112s]
Writing 'userdata' OKAY [ 0.189s]
Erasing 'cache' OKAY [ 0.040s]
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 143360 4k blocks and 35840 inodes
Filesystem UUID: 97729b31-4548-408c-96e7-79f6d7990d84
Superblock backups stored on blocks:
32768, 98304
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
Sending 'cache' (208 KB) OKAY [ 0.009s]
Writing 'cache' OKAY [ 0.019s]
Rebooting OKAY [ 0.002s]
Finished. Total time: 37.932s
haidragondeMacBook-Air:androidbuild haidragon$
有可能进不去,一直循环google等,双清下,或者重新刷机。
转载于:https://blog.51cto.com/haidragon/2403128