Jar 库与 Android 库。有什么区别?

Jar library vs Android Library. Which is the difference?

我有疑问: Jar 库与 Android 库

有什么区别?

jar库中不能使用Android的方法,只能使用java的函数;正确的 ? (例如,我不能对 Json 使用 android 的方法)

编辑: 我已经阅读了下面的答案并且我知道我可以在 JAR 文件中使用 Android SDK。 问题是 : 如何在 JAR 文件中使用来自 Android SDK 的方法?

因此,如果我想使用库的功能在我的 webview 上书写,我认为使用 Android 库会更好。是对还是我的推理有误?

Which is the difference ?

引用 the documentation,并添加强调:

An Android library module is a development module that holds shared Android source code and resources.

Android 库模块(以前称为 Android 库项目)也支持打包资产、NDK 库和清单条目,而普通 JAR 则不支持。

In jar library I can't use Android's methods, but I can only use java's functions; right ?

不,您可以创建一个使用 类 和 Android SDK 方法的 JAR。