---
title: "Discussion on \"Android 开发的思考\" | Hashnode"
description: "Discussion on \"Android 开发的思考\". Android 开发，对数据库的操作不是很大，绝大多数场景都可以用 SharedPreference，DataStore 都可以解决，数据库会给 Android App 带来复杂度，虽然大家现在用 Room ，减少了很多工作量。造成这个的原因，很多可能现在的 App 不联网不让用，并且本地数据很容易造成和服务器的不一致，最后到要在服务器上获取，那还要本地数据库干啥呢？\n\n尽量使用 Jetpack 里的组件，这些是官方推荐的。无论在各个系统上的兼容性都是很好的。比如数据库用 Room，音视频使用 ..."
url: "https://hashnode.com/posts/android/657284e483525754d2d0eb3d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Android 开发的思考](https://serendipitymatthew.hashnode.dev/android?utm_source=hashnode&utm_medium=feed)

Android 开发，对数据库的操作不是很大，绝大多数场景都可以用 SharedPreference，DataStore 都可以解决，数据库会给 Android App 带来复杂度，虽然大家现在用 Room ，减少了很多工作量。造成这个的原因，很多可能现在的 App 不联网不让用，并且本地数据很容易造成和服务器的不一致，最后到要在服务器上获取，那还要本地数据库干啥呢？ 尽量使用 Jetpack 里的组件，这些是官方推荐的。无论在各个系统上的兼容性都是很好的。比如数据库用 Room，音视频使用 ...

Dec 8, 2023 · 1 min read · serendipitymatthew.hashnode.dev  
Read the article

-   [#android-app-development](https://hashnode.com/tag/android-app-development)
-   [#android](https://hashnode.com/tag/android)

## Written by

[Matthew](https://hashnode.com/@MatthewInchoate)

@MatthewInchoate · Tokyo, Japan

  
[View profile](https://hashnode.com/@MatthewInchoate)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
