编译错误trouble writing output: Too many methods: 65544; max is 65536.

问题描述:在Framework上新增本地接口后,报出错误:
trouble writing output: Too many methods: 65544; max is 65536. By package: 
...
...

该问题是由于Framework下无法容纳超过65536个接口导致的
解决方法:
修改frameworks\base\Android.mk, 将新增接口的aidl加入到Framework2下面:
SECONDARY_SRC_FILES += \
    core/java/android/os/DynamicPManager.java \
    core/java/android/os/IDynamicPManager.aidl \
    core/java/android/wifidisplay/IWifiDisplayManager.aidl \
    core/java/android/wifidisplay/IWifiDisplayThread.aidl \
    core/java/android/content/pm/ResolveListenerBase.java \
    core/java/android/app/TimePickerDialog.java \
    l ocation/java/android/location/IUartMcuManager.aidl \
    ethernet/java/android/net/ethernet/IEthernetManager.aidl

你可能感兴趣的:(framework,编译错误)