I updated the studio to version 3.2. Now, when creating a new project, the "generatedJava" folder is automatically generated with empty R.java classes:

enter image description here

What is it for and how can I use the R-classes nested in it?

And also in the manifest file I saw the following:

enter image description here

What does he need? Thank.

    1 answer 1

    1.This folder (generatedJava) was already in your project, only now it is highlighted, in the "Android" view mode, of your project. Its actual location is build/generated/source/r/<current flavor>/<current build type>/ .

    The classes that you can find here are all the classes from which the project will be built, including libraries. Checking them can be useful when problems arise with the generated code, for example, with annotation handlers. For example, a data binding library, ButterKnife, or Dagger2 generates Java classes based on your annotations, which you can see in this directory.

    If you delete the directory, it will be slower to perform the next build, because it needs to restore these files again, and not reuse them. This means that they will appear anyway, so there is no point in doing this.

    2. Vorning in the manifest recommends the use of deep links . "So that Google can scan the content of your application and allow users to display your application in search results."

    • 2. That is, if I am not going to distribute the application, can this recommendation be ignored? Can it be disabled for the current project? - Alexey Efimov
    • Roughly speaking, yes. If you do not want to open the application by url, for example, you can score on it - RomanK.
    • Everything, removed the "jaundice" in the manifest in the tag <application ... tools: ignore = "GoogleAppIndexingWarning" ... </ application> - Alexey Efimov