-
Right-click then Properties of your HelloCordova-CordovaLib project: in the "Android" tab, check that the "IsLibrary" checkbox is checked
-
Right-click then Properties of your HelloCordova project: in "Android" tab, "IsLibrary" must not be checked and your CordovaLib must be listed in the array under this checkbox + in "Java Build Path" tab", under "Projects", the "HelloCordova-CordovaLib" project must not be referenced.
转载于:https://www.cnblogs.com/xzhi/p/4056248.html