
ionic
文章平均质量分 95
郭郭的小郭郭
初来乍到
展开
-
ionic3 常见问题
安卓1、如果在64位系统出现如下错误请安装64位jdkUnable to start the daemon process.2、如果在fat32格式的磁盘上面执行cnpm install会报错,必须在ntfs格式的磁盘上执行3、如果出现如下错误:You have not accepted the license agreements of the following SDK com...原创 2021-07-30 17:51:27 · 269 阅读 · 0 评论 -
ionic 打包成apk后,所有网络请求404
修改 config.xml<allow-navigation href="http://*/*" /> <allow-intent href="*" /> <access origin="*" />如果不生效继续先卸载白名单插件,再安装一遍cordova plugin remove cordova-plugin-whitelistcordova plugin add cordova-plugin-whitelist如果还不生效 ..原创 2020-12-31 16:55:20 · 406 阅读 · 1 评论 -
ionic3 返回菜单 返回不刷新
ionic3 导航栏返回按钮事件设置export class Page { @ViewChild(Navbar) navBar: Navbar; //获取navBar 的组件 ionViewDidLoad() { //在初始化方法中 为backbutton设置事件 this.navBar.backButtonClick = this.backButtonClic...原创 2019-10-24 09:50:42 · 253 阅读 · 0 评论 -
ionic A problem occurred configuring root project 'android'.
A problem occurred configuring root project 'android'.> Could not resolve all files for configuration ':classpath'. > Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-refle...原创 2019-10-21 17:30:19 · 3525 阅读 · 0 评论 -
ionic4 打包报错 An error occured while running cordova build android
1.报错的原因 可能是 环境变量中的jdk版本和 IDEA中的jdk版本不一致环境变量idea中的jdk需要修改idea中的jdk 版本idea==>help==>输入 switch Boot JDK回车===然后选择 jdk1.8==>点击save and restart 重启idea即可修改 idea中的jdk 的版本号1.2....原创 2019-08-30 15:14:27 · 735 阅读 · 0 评论 -
ionic4 创建项目失败 If you are behind a firewall and need to configure proxy settings
If you are behind a firewall and need to configure proxy settings, see: https://ion.link/cli-proxy-docsionic4 创建项目报错时,不需要设置代理如果设置了代理 npm config set proxy=https://registry.npm.taobao.org ...原创 2019-05-05 17:47:39 · 1211 阅读 · 4 评论 -
ionic3 打包sdk 需要的环境
1.node.js 环境 (前端js编译基本都是基于node环境的 比如 vue也是)如果电脑中没有node环境 详见 https://blog.youkuaiyun.com/qq_35899070/article/details/81739118进行安装2.ionic3 后台程序如果是基于java 需要安装jdk 环境 下载官网jdk 选择合适的版本 现在基本就是jdk8 建议是解压版,有时候...原创 2018-11-06 21:33:19 · 488 阅读 · 0 评论 -
ionic3 成功启动 刷新报错
新建的ionic3项目,在ionic serve跑起来后,如果刷新页面,服务器就会自动关闭是ws模块自身的bug。ws 版本太低了删除node_modules/ws目录,然后在项目目录启动命令行,输入:npm install ws@3.3.2 然后再重新启动服务器,就可以了!...原创 2018-10-11 14:10:04 · 492 阅读 · 0 评论 -
ionic 报错处理
各种卸载 各种 重装 然后 如果还不行的话] npm uninstall -g ionic 执行这个语句 更新一下 版本 npm install -g ionic ionic@3.1.1原创 2018-09-20 16:36:04 · 166 阅读 · 0 评论 -
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: want
D:\ionic_demo\demo4> npm uninstall -D @ionic/cli-plugin-ionic-angularnpm WARN @ionic-native/app-version@4.14.0 requires a peer of @ionic-native/core@^4.11.0 but none is installed. You must insta...原创 2018-09-25 17:08:36 · 20195 阅读 · 2 评论 -
ionic3 常用指令
npm install(安装依赖)npm install -g cnpm –registry=https://registry.npm.taobao.org(npm镜像源指向淘宝)cnpm install -g cordova ionic(安装cordova ionic)cnpm update -g cordova ionic(更新cordova ionic)ionic -help...原创 2018-09-25 11:59:19 · 239 阅读 · 1 评论