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

本文是小编为大家收集整理的关于Visual Studio 2013 update 4 cordova,如何导出Android apk文件在PlayStore发布的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

通常我在Eclipse ADT中开发了原生Android应用程序,现在我尝试了新的Visual Studio Cordova插件(更新4 ),但我没有找到导出的方法和签署APK文件 - 就像在Eclipse中(导出Android Implicatin),也许有人可以在这里写在这里通过步骤Proccess使用Visual Studio 2013导出和签署APK文件.

谢谢,Dima.

推荐答案

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

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

2.)创建密钥库并签名APK -

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

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

3.)构建项目

4.)将APK发布到Android商店.可以找到关于将应用程序发布到Google Play的详细信息在这里.

本文地址:https://www.itbaoku.cn/post/1937919.html

问题描述

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.

Thank you, Dima.

推荐答案

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

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.) Create keystore and Sign the apk --

  • a.) You can use signtool to create Keystore, run the command on cmd (command prompt) like keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 More detail on this can be found here

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

3.) Build the project

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