gpt4 book ai didi

android - Android Jetpack 到底是什么?

转载 作者:IT王子 更新时间:2023-10-29 00:06:05 25 4
gpt4 key购买 nike

我看过 Google I/O 2018 的开发者主题演讲,也看过 Android 开发者网站上的 jetpack 主页,但我无法理解它到底是什么。对我来说,这似乎只是我们已经使用的一堆 API 的新名称。 IDE 是否会为我们做一些事情或在编码时会有所帮助? Jetpack 中的所有组件都指向其原始的 Android 文档,并且实际上与以前没有任何区别。有人可以简单地解释一下 Jetpack 对我作为开发人员的实际作用,除了在网页上加入俱乐部文档吗?

最佳答案

在其官方网站上,它说:

Android Jetpack is a set of libraries, tools and architectural guidance to help make it quick and easy to build great Android apps. It provides common infrastructure code so you can focus on what makes your app unique

从技术上讲,它是将支持库、android-ktx 和 Android 架构组件重新命名为单个模块化“实体”。

这就是为什么所有非Android扩展库如support等都重新打包到androidx.**

Quote from Alan Viverette (from Android Framework Team):

Jetpack is a larger-scoped effort to improve developer experience, but AndroidX forms the technical foundation. From a technical perspective, it's still the same libraries you'd have seen under Support Library and Architecture Components.

As best practices change, you may also see libraries in the androidx.* package that are not included in Jetpack.

https://developer.android.com/topic/libraries/support-library/refactor了解更多信息。

关于android - Android Jetpack 到底是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50251658/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com