Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我们在android项目中导入外部库时,应该在android清单文件中添加什么权限?
假设我将一个名为“axis.jar”的库导入到我的项目中。我向我的 android 项目添加了以下权限。
仍然应用程序是强制关闭!
感谢和问候 穆罕默德丹麦人
您无需添加任何权限即可在您的 Android 项目中包含 .jar 库。
但是,请确保将 jar 放在 project/libs 文件夹中(如果项目中不存在“libs”文件夹,请创建它)
Eclipse ADT 插件(假设您使用的是 Eclipse)将库中的 Jar 位置自动包含在您的 Android APK 中,以便在运行时可以访问 jar 中的代码。