在Android建筑应用程序的流星cordova [英] Meteor cordova on Android building app
本文介绍了在Android建筑应用程序的流星cordova的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的手机上测试我的应用程式。我这样做:
I am trying to test my app on my phone. I did this:
meteor build <bundle path> --server <host>:<port>
我把 aligned.apk
我试过 brew install android-sdk
并下载了最新的apk,但仍然没有工作。
I tried brew install android-sdk
and downloaded the latest apk, but that still didn't work.
我不知道我应该做什么。请帮助。
I am not sure what I am supposed to do. Please help.
推荐答案
好吧,再深入一点,这对我有用。在这里查看android:
https://github.com/meteor/meteor/wiki/How-to-submit-your-Android-app-to-Play-Store
Ok, dug a little deeper, here's what worked for me. See here for android: https://github.com/meteor/meteor/wiki/How-to-submit-your-Android-app-to-Play-Store
具体为:
keytool -genkey -alias your-app-name -keyalg RSA -keysize 2048 -validity 10000
cd ~/build-output-directory/android/
jarsigner -digestalg SHA1 unaligned.apk your-app-name
~/.meteor/android_bundle/android-sdk/build-tools/20.0.0/zipalign 4 unaligned.apk production.apk
然后安装 production.apk到您的设备。
Then install the "production.apk" to your device.
这篇关于在Android建筑应用程序的流星cordova的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文