Wednesday, March 5, 2014

Restore/Setup Android project without IDE

Sometimes when the Android project directory is broken, you can restore the structure using the android executable in the Android "tools" directory.
android update project -p <path_to_project_directory> -n <project_name> -t <android_sdk_version>
You can also create a new project with:
android create project -p <path_to_project_directory> -n <project_name> -k <package_name> -a <activity_name> -t <android_sdk_version>
The android version parameter looks like this: "android-18".