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

E/AndroidRuntime﹕ FATAL EXCEPTION: main

You’re calling findViewById() too early when initializing an activity settings object, likely a member variable. The code you posted doesn’t show that. You can call activity functions really only in onCreate() or later. Also put the findViewById() after setContentView() so it can actually return something other than null.

Expiring Daemon because JVM heap space is exhausted

This can be fixed by increasing the configured max heap size for the project. Through IDE: Add the below lines into the gradle.properties file. Below memory size can be configured based on the RAM availability Through GUI: In the Settings, search for ‘Memory Settings’ and increase the IDE max heap size and Daemon max heap … Read more