Module :
官方說明 : A module is a collection of source files and build settings that allow you to divide your project into discrete units of functionality.
Android Studio 提供的 Module 有 :
- Android app module
- Phone & Tablet Module
- Android Wear Module
- Android TV Module
- Glass Module
- Library module
- Android Library
- Java Library
- Google Cloud module
在 Android View 中, Android app module 分為三個子目錄 :
- manifests
- Contains the AndroidManifest.xml file.
- java
- Contains the Java source code files, separated by package names, including JUnit test code.
- res
- Contains all non-code resources, such as XML layouts, UI strings, and bitmap images, divided into corresponding sub-directories.
Library Module
- Android Library Module : 和 Android APP 的架構相同,可以編譯成 AAR,但不能編譯成 APK。
- Java Library Module : 建立一個 JAR。
- Android Studio - 創建 Android Library - 壹讀
[ 刪除 Module ]
- 正常情況下,在 Module 上按滑鼠右鍵找不到 Delete。
- 按滑鼠右鍵,可找到 Open Module Settings,裡面可以將 Module 從 Project 移除,
之後回到 Project View,在 Module 上點右鍵就可看到 Delete 選項。 - Android Studio如何刪除module - 壹讀
請先 登入 以發表留言。