在真实设备上安装我的Ionic2应用程序后,它变得缓慢 - 这不是在开发过程中在浏览器上进行测试。 然后我遇到了Crollwalk,这是一款工具/插件,用于增强设备上的混合应用性能。
然后,我生成了一个.apk文件,并试图在真实设备上安装,只是为了得到“ 该应用程序与您的手机不兼容 ”的错误。
经过几次Bing / Google搜索后,我了解到该项目最后在Crosswalk项目官方网站的Cordova 6.3上支持WebView。
我的开发环境是Cordova:6.5.0,Ionic:2.2.3
如何将科尔多瓦降级为支持的Crosswalk版本,而不会影响Ionic及其自身的项目?
感谢您的平常帮助。
After installing my Ionic2 app on real device, it became slow - which wasn't while testing on browser during development. Then I came across Crollwalk, a tool/plugin to enhance Hybrid app performance on device.
I then generated an .apk and attempted to install on real-device, only to get the error "This app isn't compatible with your phone".
After few Bing/Google searches, I got to know that the project was last supported for WebView on Cordova 6.3 at the Crosswalk Project official website.
My dev env is Cordova: 6.5.0, Ionic: 2.2.3
How do I downgrade Cordova to the supported version of Crosswalk without affecting Ionic and the project it self?
Thanks for your usual assistance.
最满意答案
最后,我散步了!
我必须创建build-extras.gradle文件并将cdvBuildMultipleApks=false添加到它。 现在生成了一个未签名的apk文件(而不是分别为armv7和x86 ),我签了名并且能够启动该应用程序!
在此之前,我曾经签署了android-x86-release-unsigned.apk 。
多亏了building-combined-armv7-x86-apk-after-crosswalk-integrated-in-an-ion-project
Finally, I got a walk-around!
I had to create build-extras.gradle file and added cdvBuildMultipleApks=false to it. That now generated a single unsigned apk file (instead of armv7 and x86 respectively) which I signed & was able to launch the app!
Before then, I used to sign the android-x86-release-unsigned.apk.
Thanks to building-combined-armv7-x86-apk-after-crosswalk-integration-in-an-ionic-project
更多推荐
发布评论