ionic3打包安卓时遇见的问题

*安卓打包遇到的问题:

Erroroccurred during initialization of VM
Could not reserve enough space for 2097152KBobject heap

 

解决:

项目中platforms\android\cordova\lib\builders\GradleBuilder.js

改为args.push('-Dorg.gradle.jvmargs=-Xmx512m');


*安卓打包遇到的问题:

* What went wrong:
A problem occurred configuring root project'android'.

> You have not accepted the licenseagreements of the following SDK components:
[Android SDK Platform 25].
Before building your project, you need to acceptthe license agreements and complete the installation of the missing componentsusing the Android Studio SDK Manager.


解决:

不知道该安装什么就把SDK Manager.里安卓7.0一上的SDK Platform都安装了,就好使了


Cordova某个插件不能安装:

提示为Probably this is either a connection problem, or plugin spec isincorrect.

Check yourconnection and plugin name/version/URL.

或者Version of installed plugin: "cordova-plugin-compat@1.0.0"does not satisfy

dependencyplugin requirement "cordova-plugin-compat@^1.1.0". Try --force to useinstalled

解决:

可能月底就有点卡

也可能是compat版本升级问题,重新安装就好了

1.  cordova plugin remove --force cordova-plugin-compat  

2.  cordova plugin add cordova-plugin-compat  

3.  cordova plugin add cordova-plugin-camera 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值