ionic3打包安卓时遇见的问题

来源:互联网 发布:unix 网络数据库 编辑:程序博客网 时间:2024/06/08 03:20

*安卓打包遇到的问题:

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 


原创粉丝点击