Skip to content

Instantly share code, notes, and snippets.

@gringoh
gringoh / starting_library_project_AS.md
Created January 4, 2016 13:23 — forked from daniellevass/starting_library_project_AS.md
Getting Started with a library project in Android Studio

Getting Started with a library project in Android Studio

So we're working on creating Android Material Awesome, a library which will hopefully incorperate the benefits of Material Design, Twitter's Bootstrap, and FontAwesome. What we really wanted is a project other people can easily include into their projects using gradle dependencies. To do this we needed to create a standalone library project so we could make it as lightweight as possible for including as a dependency, and a sample app that would use it for testing. These are the steps we took to get started in Android Studio (version 1.1).

Create Projects

The first thing we needed to do was to create two new projects, with all the default settings (Blank Activity etc). One for our sample app, and one for our library. We added both of ours into the same GitHub repo, however you can save them wherever you like.

Fix Up Library Project

@gringoh
gringoh / gitignore-android-studio-list
Last active May 14, 2021 14:43 — forked from vtanathip/gitignore-android-studio-list
[Git Ignore files list that should use in Android Studio Projects] #git
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class