- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我在 android 中做了一个小应用程序,我想在市场上发布它。
所以首先如何从 Eclipse 中导出最终的 APK 和第二,要在 AndroidManifest 文件中设置哪些参数?
请帮帮我
最佳答案
1) 提取签名包
引自 here :
Compiling and signing with Eclipse ADT When using Eclipse with ADT, you can use the Export Wizard to export a signed .apk (and even create a new keystore, if necessary). The Export Wizard performs all the interaction with the Keytool and Jarsigner for you, which allows you to perform signing via a graphical interface instead of the command-line. Because the Export Wizard uses both Keytool and Jarsigner, you should ensure that they are accessible on your computer, as described above in the Basic Setup for Signing.
To create a signed .apk, right-click the project in the Package Explorer and select Android Tools > Export Signed Application Package. (Alternatively, open your AndroidManifest.xml file in Eclipse, open the Overview tab, and click Use the Export Wizard.) The window that appears will display any errors found while attempting to export your application. If no errors are found, continue with the Export Wizard, which will guide you through the process of signing your application, including steps for selecting the private key with which to sign the .apk, or creating a new keystore and private key.
When you complete the Export Wizard, you'll have a signed .apk that's ready for distribution.
2) list list 文件中有很多参数。你需要的主要是: list 标签参数:
package="com.yourcompany.yourapppackage"
是你项目的包名。我假设您已经拥有它。
android:versionCode="4" android:versionName="1.0.3"
这两个描述了你的软件版本的代号和名称。版本代码应该始终是一个整数,版本名称可以是您喜欢的任何字符串。上传更新时,不要忘记增加版本代码。
嵌套标签 <uses-sdk android:minSdkVersion="3" />
是一个标签,它指定您的应用程序使用的最低 api 级别。
嵌套标签 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
仅当您需要一些应用程序权限时才需要。
阅读更多关于 list 文件的信息 here .
关于android - 如何为发布方式导出准备好 APK 文件?以及要设置的参数是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5459140/
我是一名优秀的程序员,十分优秀!