標籤:android style blog http io color os ar 使用
有些時候並不需要添加lib庫進行編譯,例如在使用xposed的jar包時,只需要在eclipse裡Build Path-Add to Build Path即可,如果作為lib庫添加進去反而會出現異常。
以下是引用的原文:
--------------------------------------
Next, make the XposedBridge API known to the project. You can download
XposedBridgeApi-<version>.jar from the first post of this XDA thread. Copy it into a subfolder called
lib. Then right-click on it and select Build Path => Add to Build Path. The
<version> from the file name is the one you insert as
xposedminversion in the manifest.
Make sure that the API classes are not included (but only referenced) in your compiled APK, otherwise you will get an IllegalAccessError. Files in thelibs (with "s") folder are automatically included by Eclipse, so don‘t put the API file there.
--------------------------------------
在androidstudio對應的設定方法為:
F4開啟工程結構,選擇Modules-當前項目-Dependencies-+-選擇“Jar or directiories”,
選擇jar包後,在“Scope”欄選擇“Provided”,不要選擇“Complie”。
eclipse中Build Path-Add to Build Path對應到androidstudio的設定