Visual Studio 2013 update 4 cordova,如何导出Android apk文件发布到PlayStore [英] Visual Studio 2013 update 4 cordova, how to export Android apk file to publish in PlayStore

查看:47
本文介绍了Visual Studio 2013 update 4 cordova,如何导出Android apk文件发布到PlayStore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常我在 eclipse ADT 中开发原生 android 应用程序,现在我尝试新的 Visual Studio cordova 插件(update 4),但我没有找到导出和签署 APK 文件的方法 - 就像在 eclipse (Export Android Applicatoin) 中一样,也许有人可以在这里写下步骤使用 Visual Studio 2013 导出和签署 apk 文件的分步过程.

Usually i develop the native android apps in eclipse ADT, and now i trying the new Visual Studio cordova plugin (update 4), but i didnt find the way to export and sign the APK file - like in eclipse (Export Android Applicatoin), maybe somebody can write here the step by step proccess to export and sign the apk file using Visual Studio 2013.

谢谢你,迪玛.

推荐答案

您需要执行以下操作来创建、签名并将 apk 发布到 Google Play 或任何其他 Android 商店.

You need to do following to create, sign and publish the apk to Google Play or any other Android store.

1.) 创建apk,项目构建时创建apk.在发布配置中构建包(推荐),或者您也可以构建调试版本的 apk.当目标是模拟器或设备时构建 apk.apk 位置是 bin\Android\Release 或 bin\Android\Debug

1.) Create the apk, apk is created when project is build. Build the package in Release configuration (recommended) or you can also build debug version of apk. apk is built when target is either emulator or device. apk location is bin\Android\Release or bin\Android\Debug

2.) 创建密钥库并签署 apk --

2.) Create keystore and Sign the apk --

  • a.) 您可以使用 signtool 创建密钥库,在 cmd(命令提示符)上运行命令,如 keytool -genkey -v -keystore my-release-key.keystore-alias alias_name -keyalg RSA -keysize 2048 -validity 10000 可以在此处找到更多详细信息

b.) 打开 res\native\android\ant.properties 文件,然后输入有关密钥库和别名的信息.更多详情这里

b.) Open the res\native\android\ant.properties file, and enter information about the keystore and the alias. More detail here

3.) 构建项目

4.) 将 apk 发布到 Android 商店.可以在此处找到有关将应用发布到 Google Play 的更多详细信息.

4.) Publish the apk to Android store. More detail on publishing app to Google Play can be found here.

这篇关于Visual Studio 2013 update 4 cordova,如何导出Android apk文件发布到PlayStore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆