Ubuntu16.04编译Android 4.4

Ubuntu16.04编译Android 4.4

参考:https://nosemaj.org/howto-build-android-kitkat-nexus-5

问题:Can’t use ‘defined(@array)’ (Maybe you should just omit the defined()?) at kernel/timeconst.pl
答案:https://blog.csdn.net/wsclinux/article/details/77162244

问题:
frameworks/base/media/jni
frameworks/base/media/jni/android_mtp_MtpDatabase.cpp:40:19: fatal error: jhead.h: No such file or directory

添加一行:

LOCAL_C_INCLUDES += \
    external/jhead \

你可能感兴趣的:(Linux设备驱动,Linux,应用程序编程,Android)