Error validating package name. Must look like: `com.company.Name`. Currently is: `xxxx`

当输入命令“cordova platform add android”时,我收到此错误:

 添加android项目。 .. 

d:\QLWork\QL.App\ql.app.caipiao>cordova platform add android
Using cordova-fetch for cordova-android@^8.0.0
Adding android project...
Error validating package name. Must look like: `com.company.Name`. Currently is: `caipiao`

错误如下:

Error validating package name. Must look like: `com.company.Name`. Currently is: `xxxx`

 

解决方案:

修改config.xml文件,修改程序ID:

该名称可在ID属性中找到并且在下面的示例配置中是“com.mydomainhere.appnamehere”:

 <?xml version ='1.0'coding = 'UTF-8' >?; 
< widget id =“com.mydomainhere.appnamehere”version =“0.0.1”xmlns =“http://www.w3.org/ns/widgets”xmlns:cdv =“http:// cordova .apache.org / NS / 1.0\" > 
< name>很棒的应用< / name> 
< description> 
世界上最棒的应用
< / description> 
< author email =“[email protected]”href =“http://www.anurlhere.com”> 
作者姓

你可能感兴趣的:(Apache,Cordova,Error,validating,package,name.,Must,look,like:,`com.company.N,Currently,is:,`xxxx`)