常见问题 及 解决方案 (重点)

问题一:Error: C:\Users\Administrator\Desktop\myApp is not a vaild project <AndroidManifest.xml not found>

解决方案:项目文件夹 -- platforms -- android -- 在此文件夹下执行 android update project -p .

问题二:BUILD FAILED

F:\adt\sdk\tools\ant\build.xml:597: ...\build.xml

解决方案:复制android文件夹下 的 local.properties 改名为 ant.properties

问题三:Error: No emulator images (avds) found.

解决方案:开启手机开发者模式 和 USB调试功能

问题四:Error: Cannot find module 'xml2js/lib/processors'

解决方案:npm install xml2js

问题五:项目中的package.json 插件数据 与 config.xml 插件数据不一致(plugin数据无法添加到config.xml中)

解决方案:

问题六:cordova 安装插件以后 插件数据没有 同步到 config.xml 上

解决方案:

问题七:Ionic bug: Error: Source path does not exist: resources/iOS/icon/icon-40@3x.png

原因 :缺少相应的icon

解决方案: ionic resources

问题八:执行 命令: ionic platform add ios 或 ionic platform add Android 时报Error: spawn EACCES错误

原因:新创建的app没有添加hooks文件夹

解决方案: 执行命令进行添加 ionic hooks add

问题九:Error:Error code 65 for command:xcodebuild with args

解决方案: ionic platform remove ios ionic platform add ios 或 cordova platform update ios

问题十:ipa 上传Appstore时审核失败,提示:Missing Info.plist key(上传安装包后提示:此构建无效)
We have discovered one or more issues with your recent delivery for "米饭公社". To process your delivery, the following issues must be corrected:
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

解决方案:在Info.plist文件中添加相应权限,
<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>

问题十一:xcode 打包时用到的 签名证书

解决方案:info 导入

问题十二:ionic plugin list 时,显示 bash: ionic: command not found (由于系统PATH设置问题,PATH没有设置对,系统就无法找到精确命令了)

解决方案:1.sudo npm cache clear

npm install -g cordova

2.npm install -g cordova ionic

问题十三:Unable to generate images due to an error Failed to upload source image: Error: connect ETIMEDOUT 104.20.6.16:80

解决方案:ionic resources icon (去掉icon前面的 '--' 居然就可以了)

 

posted @ 2017-02-13 21:57  每天都要进步一点点  阅读(624)  评论(0编辑  收藏  举报