I am confused about the Assets folder. It doesn't come auto-created in Android Studio, and almost all the forums in which this is discussed talk about Eclipse.
How can the Assets directory be configured in Android Studio?
In a typical Android Studio project, you will have an
app/ module, with a
main/ sourceset (
app/src/main/ off of the project root), and so your primary assets would go in
If you need assets specific to a build, such as
release, you can create sourcesets for those roles (e.g,.
Your product flavors can also have sourcesets with assets (e.g.,
Your instrumentation tests can have an
androidTest sourceset with custom assets (e.g.,
app/src/androidTest/assets/), though be sure to ask the
getTargetContext(), to access those assets