what is generated and intermediates folders in build directory and why outputs folder is missing

前端 未结 1 2037
眼角桃花
眼角桃花 2021-02-12 18:55

I\'m building application with Android Studio and Gradle. When the build is finished the build folder contains the following folders:

- assets
- Cor         


        
相关标签:
1条回答
  • 2021-02-12 19:29

    The "generated" folder contains java code generated by Android Studio for the module. The primary file here is "R.java" which assigns symbolic names to each of the items in the "res" directory so they can be referenced in java source code.

    The "intermediates" folder contains individual files that are created during the build process and which are eventually combined to produce the "apk" file.

    The output folder is missing because the module ".iml" file explicitly excludes it with the following statement:

    <excludeFolder url="file://$MODULE_DIR$/build/outputs" />

    Remove that line and the "output" directory will appear under build.

    0 讨论(0)
提交回复
热议问题