Error : Missing Ionic App ID


#1

Hi
When i run ionic package build android command , i receive the following error :

F:\Programming\Mobile Programming\IDE\ionic\Projects\Test>ionic package build android

Error: Missing Ionic App ID.
    at Object.IonicTask.run (C:\Users\Shell Programmer\AppData\Roaming\npm\node_
modules\ionic\lib\ionic\package.js:41:13)
    at Object.run (C:\Users\Shell Programmer\AppData\Roaming\npm\node_modules\io
nic\lib\cli.js:96:32)
    at Object.<anonymous> (C:\Users\Shell Programmer\AppData\Roaming\npm\node_mo
dules\ionic\bin\ionic:9:10)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:457:10)
    at startup (node.js:136:18)
    at node.js:972:3

Missing Ionic App ID. (CLI v1.7.7)

Your system information:

Cordova CLI: 5.3.3
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.7
Ionic App Lib Version: 0.6.3
OS: Windows 8.1
Node Version: v5.0.0

Could anyone help me please.
Thanks.


#2

try to run ionic build android


#3

You should maybe try this command:

   $ionic link <appid>

from here


#5

You need to initialize the ionic io.

Here:
ionic io init


#6

Thank you. It works fine.


#7

Facing same problem

  1. ionic io init
    login fails even after correct password

this is what i tried…

ionic io init
No previous login existed. Attempting to log in now.

To continue, please login to your Ionic account.
Don’t have one? Create one at: https://apps.ionic.io/signup

Email: jain.nikhil781@gmail.com
Password:
Email or Password incorrect. Please visit https://apps.ionic.io for help.
Initializing app with ionic.io
Error initializing app: TypeError: Cannot read property ‘map’ of undefined

F:\MyIonic2Project>ionic package build android --profile nikhiljain

Error: Missing Ionic App ID.
at Object.run (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\lib\ionic\package.js:62:13)
at Promise.apply (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:1078:26)
at Promise.promise.promiseDispatch (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:741:41)
at C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:1304:14
at flush (C:\Users\Nikhil\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:592:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)

Missing Ionic App ID. (CLI v2.0.0)

Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
OS:
Node Version: v6.5.0


#8

Exact same situation here. Seems to be a problem since long ago. Can’t find any answer!


#9

Thanks., It worked for me…