I just updated android studio in latest version and here is a new directory named Generated Java, can anyone explain what is it and any effect on projects if I delete this directory from root directory of project.
Please let me know if you know anything about it.
Thanks
The OpenJDK (Java Development Kit) is bundled with Android Studio. The installation is similar for all platforms.
In an open Android Studio project, click File > New Module. Click More Modules > Java Library > Next, then fill in whatever you prefer for the names. A new module will appear as a folder on the same level as your "app" folder in the Project Structure. Open it and open the new Java class file.
Android Studio is the official integrated development environment (IDE) for Android application development. It is based on the IntelliJ IDEA, a Java integrated development environment for software, and incorporates its code editing and developer tools.
This folder has already been in your project, only now it is highlighted in the Android
view mode of the project explorer. Its location is actually build/generated/source/r/<current flavor>/<current build type>/
.
The classes you can find here are all the classes the project will be built from, including the libraries. Inspecting these could be useful when you are having issues with generated code, such as annotation processors. For example, the databinding library, ButterKnife, or Dagger 2 all generate java classes based on your annotations, which you can see in this directory.
If you delete the directory, it will make the next build slower, because it needs to regenerate these files again, instead of reusing them. Which means they will reappear anyways, so there's no point in doing that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With