codenamejupiterx
codenamejupiterx

Reputation: 1619

Creating a project from the terminal

I am experimenting with creating an Android project from the terminal and I have ran into an error, that I dont understand.
Using the Android development website I navigated to the android/tools directory and entered:

 android create project \    
 > target 2 \
 > name terminalTest \
 > path ./terminalTest \
 > activity terminalTestActivity \

But when I enter the next line:

> package com.android.terminalTest

I receive this error:

 Error: Argument 'com.android.terminalTest' is not recognized.

Compared to the information on the android development site:

  android create project \
  --target 1 \
  --name MyAndroidApp \
  --path ./MyAndroidAppProject \
  --activity MyAndroidAppActivity \
  --package com.example.myandroid

They look identical(except for the target of course), what am I doing wrong?

Upvotes: 2

Views: 2177

Answers (1)

Rastaban
Rastaban

Reputation: 901

You probably don't have the tools directory or the current directory in your path. You could try ./android from the tools directory or jusr add it to your path.

Upvotes: 2

Related Questions