Android Studio & Gradle: Cannot run gradlew. Permission denied.

If you are getting the “permission denied” error message while trying to run ./gradlew clean or ./gradlew build manually in your project: -bash: ./gradlew: Permission denied</div> You have to make the gradlew file executable. Open a terminal, navigate to the folder where your gradlew file is, and set execute permissions: chmod +x gradlew  It is also a good idea to close the project in Android Studio while working with the gradle wrapper from the terminal.

» Read more

Where to place the assets folder in Android Studio

If you are having problems with asset files not being included in your compiled apk file, it may be because your assets folder is placed in the wrong directory. The assets folder should usually be inside the following folder: <project>/src/main/. That is the default, but make sure to check the asset folder configuration setting in your projects .iml file, to be sure which folder it really is: <option name=”ASSETS_FOLDER_RELATIVE_PATH” value=”/src/

» Read more