修改android framework/base后编译注意的地方

来源:互联网 发布:淘宝网书籍非常爸爸 编辑:程序博客网 时间:2024/05/16 13:40

Adding new source to Android framework/base

By rogerdesm

If you are adding a source to the folder framework/base, do not forget to add this folder path to the file “build/core/pathmap.mk” above the line:

#
# A list of all source roots under frameworks/base, which will be
# built into the android.jar.
#
FRAMEWORKS_BASE_SUBDIRS := \
$(addsuffix /java, \
core \
graphics \
location \
media \
opengl \
sax \
telephony \
ethernet \
wifi \
vpn \
keystore \
)

If you do not do this, this error can happen:

frameworks/base/ethernet/java/android/net/ethernet/IEthernetManager.aidl:2: couldn’t find import for class android.net.ethernet.EthernetDevInfo
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/ethernet/java/android/net/ethernet/IEthernetManager.java] Error 1

Regards,

Rogerio

This entry was posted

原创粉丝点击