Android Instant Apps 文档在受限功能部分指出它不能:
我不完全理解上述声明,但在我看来它可能不接受任何第三方软件或除 SDK/NDK
中给出的库以外的任何 native 库/强>.
谁能帮忙详细说明一下?
最佳答案
这个声明:
Prepare your app > Restricted features
Run unverified software, run arbitrary native code, or load code dynamically other than the code provided by the Instant Apps runtime.
指的是旁加载的 APK、库或代码,而不是打包在原始 apk 中。
未经验证的软件
- 换句话说,只允许签名的 apk 及其内容。
任意 native 代码
- 一切都必须从您的 apk 运行或由框架提供。
动态加载代码
- 例如使用 DexClassLoader 检索尚未与 apk 打包的内容。
关于Android 即时应用程序 - 不能 "Run unverified software, run arbitrary native code"。仅即时应用程序运行时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44484877/