Android Studio:src/androidTest 和 src/main 文件夹之间的区别? [英] Android Studio : difference between src/androidTest and src/main folders?
问题描述
我是 Android Studio 的新手.
I am new to Android Studio.
我的问题是:
- src/androidTest 和 src/main 文件夹有什么区别?
- 应该把我所有的课程放在哪里?
推荐答案
Android Studio 的每个实例都包含一个包含一个或多个应用程序模块的项目.每个应用程序模块文件夹都包含该模块的完整源集,包括 src/main/
和 src/androidTest/
目录.大多数情况下,您需要修改每个模块的 src/main/
目录下的文件以进行源代码更新、构建规范的 gradle.build 文件和 src/androidTest 下的文件/
用于创建测试用例的目录.
Each instance of Android Studio contains a project with one or more application modules. Each application module folder contains the complete source sets for that module, including src/main/
and src/androidTest/
directories. For the most part, you will need to modify the files under each module's src/main/
directory for source code updates, the gradle.build file for build specification and the files under src/androidTest/
directory for test case creation.
这篇关于Android Studio:src/androidTest 和 src/main 文件夹之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!