Android application project template files for both Android Studio and Eclipse.
-
Download this project.
-
Rename the root directory(
ProjectTemplate
) to your project name. -
Add
local.properties
.
If you don't have appropriate one, execute this in the project directory:android update project -p .
-
Edit
.project
and modify<name>
tag which has name of the Eclipse project.<name>ProjectTemplate</name>
-
Edit
build.xml
and modify<project>
tag. This will be used for APK file name when building by Ant.<project name="ProjectTemplate" default="help">
-
Import your project according to the following guides.
- In Eclipse, select File > Import
- General > Existing Projects into Workspace
- Select the project directory.
Just select File > Import Project... in Android Studio.
If you git clone
d this project for your own projects,
remove .git
directory and git init
at first to track your own project.
For debug:
- Select project in Package Explorer.
- Select Run > Run from the menu.
- Select build types from
Build Variants
view. - Select Run > Run 'ProjectTemplate' from the menu.
For debug:
ant debug
For release:
ant release
For debug:
./gradlew assembleDebug
For test(staging):
./gradlew assembleStaging
For release:
./gradlew assembleRelease
For all build types:
./gradlew assemble
Developed and tested under the following conditions.
Software | Version |
---|---|
OS X | 10.9.2 |
Android SDK Tools | 22.6 |
Android SDK Platform-tools | 19.0.1 |
Android SDK Build-tools | 19.0.3 |
Android SDK Platform | API level 19 Rev.3 |
Android Developer Tools (ADT) | v22.3 |
Android Studio (Preview) | 0.5.1 |
Android Support Library | 19.0.1 |
Gradle | 1.11 |
Android Gradle Plugin | 0.9.0 |
Git | 1.8.3.4 |
Copyright 2014 Soichiro Kashima
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.