Where to place the ‘assets’ folder in Android Studio?

Since Android Studio uses the new Gradle-based build system, you should be putting assets/ inside of the source sets (e.g., src/main/assets/). 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 app/src/main/assets/. However: If you need assets specific to a build type, such as debug versus release, you can create … Read more

Android Studio is slow (how to speed up)?

I recently upgraded from Eclipse to Android Studio and I’m not really liking the experience. I’m comparing them both on a Windows 7 64 bit ultimate with 16GB of ram and Intel i7 4770 running NVidia Geforce 780 with the latest NVidia drivers if it matters and I’m running the latest JDK and the latest … Read more

How to add an image to the “drawable” folder in Android Studio?

For Android Studio 1.5: Right click on res -> new -> Image Asset On Asset type choose Action Bar and Tab Icons Choose the image path Give your image a name in Resource name Next->Finish Update for Android Studio 2.2: Right click on res -> new -> Image Asset On Icon Type choose Action Bar and Tab Icons On Asset type choose Image On Path choose your image path Next->Finish The … Read more

Rename package in Android Studio

In Android Studio, you can do this: For example, if you want to change com.example.app to my.awesome.game, then: In your Project pane, click on the little gear icon (  ) Uncheck the Compact Empty Middle Packages option Your package directory will now be broken up into individual directories Individually select each directory you want to rename, and: Right-click it Select Refactor Click on Rename … Read more