博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
eclipse中Build Path-Add to Build Path对应到androidstud
阅读量:6993 次
发布时间:2019-06-27

本文共 935 字,大约阅读时间需要 3 分钟。

hot3.png

有些时候并不需要添加lib库进行编译,例如在使用xposed的jar包时,只需要在eclipse里Build Path-Add to Build Path即可,如果作为lib库添加进去反而会出现异常。

以下是引用的原文:

--------------------------------------

Next, make the XposedBridge API known to the project. You can downloadXposedBridgeApi-<version>.jar from the first post of . 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 asxposedminversion 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”。

转载于:https://my.oschina.net/lhjtianji/blog/518212

你可能感兴趣的文章
swift-UserDefaults控制账号和密码
查看>>
(一)html之基本结构
查看>>
bootstrop
查看>>
文字过长隐藏
查看>>
02 用户注册通过发送邮箱激活
查看>>
通过XDocument方式把List写入Xml文件
查看>>
zTree根节点默认打开
查看>>
【BZOJ5306】 [Haoi2018]染色
查看>>
linux操作系统不重启添加raid0步骤
查看>>
C#判断程序是由Windows服务启动还是用户启动
查看>>
【BZOJ1123】 [POI2008]BLO (tarjan)
查看>>
Django中的CSRF
查看>>
跨年错月查询数据
查看>>
PHP安装时踩坑
查看>>
确定对象被使用前已经被初始化
查看>>
Java中的Filter过滤器
查看>>
jquery实现下拉框多选
查看>>
套接字超时
查看>>
sql server存储过程
查看>>
常见的HTTP返回码如4xx, 5xx
查看>>