28 Kasım 2013 Perşembe

Solve&Fix "Package name must look like" error in Phonegap 3

You may get "Package name must look like..." error if you create a phonegap 3 project as below:

cordova create ./hello-world HelloWorld
cordova platform add android

When you run above code, you get below error:

Checking Android requirements...
Creating android project...
[Error: An error occured during creation of android sub-project. 
Package name must look like: com.company.Name

You get error because you are missing --id and --name options. The correct way to add Android support into your Phonegap application would be as follows:

phonegap create ./hello-world --id com.example.hello --name HelloWorld
cd hello-world
cordova platform add android

Hiç yorum yok: