在Android建筑应用流星科尔多瓦

问题描述:

你好,我想测试我的手机我的应用程序。我这样做:

Hi I am trying to test my app on my phone. I did this:

meteor build <bundle path> --server <host>:<port>

我把aligned.apk从build文件夹,并把它放在我的手机,但它给了一个错误,当我尝试安装。

I took the aligned.apk from the build folder and put it on my phone but it gave an error when I tried to 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.