问题描述
我有一个项目正在为Android浏览器工作.有没有办法生成apk文件?
另外,在生成apk文件之前,我是否知道有什么?
推荐答案
您可以使用meteor build命令构建APK文件.
在文档中阅读有关它的更多信息:完整/流星建筑或通过在您的终端中键入meteor help build.
其他推荐答案
为了从流星应用程序生成Android应用程序文件(.apk),有几个步骤要遵循:
- meteor install-sdk android
- 您的项目root中有mobile-config.js文件( Mobile-config.js/a>)
- meteor add-platform android
- meteor build ~/your-output-dir --server=yourapp.meteor.com
然后,您将在~/your-output-dir/android/unaligned.apk
中拥有您的.apk文件如果您想继续前进并提交Google Play商店,请参见以下步骤: https://guide.meteor.com/mobile.html#submitting-and-android
希望这会有所帮助!
其他推荐答案
从流星1.2开始,已删除了捆绑的Android工具,并且现在需要全系统安装Android SDK.这应该使保持开发工具链保持最新状态变得更加容易,并有助于避免难以诊断失败.流星安装-SDK命令不再尝试为您下载和安装Android工具(已弃用,只需将您指向这些说明).
问题描述
I have a project is working for android browser. Is there a way to generate the apk file?
Also, are there anything that I shoud know before generating the apk file?
推荐答案
You can build an APK file with meteor build command.
Read more about it in the docs: http://docs.meteor.com/#/full/meteorbuild or by typing meteor help build in your terminal.
其他推荐答案
There are a few steps to follow in order to generate the Android application file (.apk) from a meteor app:
- meteor install-sdk android
- Have the mobile-config.js file in your project root (mobile-config.js example)
- meteor add-platform android
- meteor build ~/your-output-dir --server=yourapp.meteor.com
Then you will have your .apk file in ~/your-output-dir/android/unaligned.apk
If you want to proceed and submit to Google Play Store, here are the steps to follow: https://guide.meteor.com/mobile.html#submitting-android
Hope this helps!
其他推荐答案
Starting with Meteor 1.2, the bundled Android tools have been removed and a system-wide install of the Android SDK is now required. This should make it easier to keep the development toolchain up to date and helps avoid some difficult to diagnose failures. The meteor install-sdk command no longer attempts to download and install the Android tools for you (it has been deprecated and just points you to these instructions).