crosswalk-lite in ionic cli v1.4.4 does not reduce apk size

有些话、适合烂在心里 提交于 2019-12-06 11:33:41

问题


Tried many times, the apk file size does not change.

ionic revert android;
ionic browser add crosswalk-lite
ionic build android

I also tried remove android platform and do from scratch, but never suceeded.

Your system information:

Cordova CLI: 5.0.0
Gulp version:  CLI version 3.8.11
Gulp local:   Local version 3.8.11
Ionic CLI Version: 1.4.4
Ionic App Lib Version: 0.0.20
OS: Distributor ID:     Ubuntu Description:     Ubuntu 12.04.5 LTS 
Node Version: v0.12.3

回答1:


Same here. I guess crosswalk-lite is so new that ionic still doesn't quite cope with it. Or it did, but things have changed now.

When I run:

ionic browser remove crosswalk
ionic browser remove crosswalk-lite
ionic browser add crosswalk-lite

I get this ionic.projectfile:

{                                  
  "name": "chapter5",              
  "app_id": "27fa0870",            
  "browsers": [                    
    {                              
      "platform": "android",       
      "browser": "crosswalk-lite", 
      "version": "12.41.296.5"     
    }                              
  ]                                
}

ionic info output:

Cordova CLI: 4.2.0                                               
Gulp version:  CLI version 3.8.11                                
Gulp local:                                                      
Ionic Version: 1.0.0-rc.0                                        
Ionic CLI Version: 1.4.5                                         
Ionic App Lib Version: 0.0.22                                    
OS: Distributor ID:     Fedora Description:     Fedora release 21
 (Twenty One)                                                    
Node Version: v0.10.36                                           

Also, take notice of your cordova-android version, when you run browser add:

Android project created with cordova-android@4.0.0-dev

And your cordova-crosswalk-engine. Mine says: c0.7.1

Those are all inter-related and may lead to weird errors.



来源:https://stackoverflow.com/questions/30347470/crosswalk-lite-in-ionic-cli-v1-4-4-does-not-reduce-apk-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!