The JDK version was upgraded from JDK6 to JDK7 due to a requirement;But after signing the APK, there was a install_parse_failed_no_certificates error;Workaround:When signing, add a parameter -digestalg sha1-sigalg md5withrsaJarsigner-digestalg sha1-sigalg md5withrsa-keystore $keystore-storepass $storepass-signedjar $signed _apk $unsign _apk $alias _name $alias _pwdView CodeOK, problem solved:Resources:[1]ht
Android uses Ant to build. The tools/ant below the Android SDK Build.xml is the entire process of build.The build parameter can be override in the Ant.properties file. You can also customize the build script yourself.Using ant build is very simple1) Install Ant and add it to the system path variable2) Generate Build.xml for the projectAndroid Update project-p.3) Generate Debug versionAnt Debug4) If you want
This is a constant demand, I just often forget, the key does not understand AH.Again and again look at the Android makefile. It's too complicated. Take it slow. Hey. Work for 10 years. I don't know anything. What's the whole? ## Copyright (C) The Android Open Source Project## Licensed under the Apache License, Version 2.0 (the "License");# You are not a use of t
I. As long as you run as Android Application, you can find the APK file with the same name as the project in the bin folder of the working directory.
II,
A. Right-click the project, right-click the project, and choose = quot; andoid tools = quot; export unsigned application package. Save the package directly without a signature.
B. Right-click the project and select "andoid tools =" Export signed appli
): ... OneMore
If the device is running Android 6.0 (API level 23) or a later version , and the app targetsdkversion is 23 or later, the app requests permissions at run time for the user. Users can invoke permissions at any time, so the app needs to check whether it has the required permissions each time it runs
If the device is running Android
The Android program must have a signature to run. Usually we use the debug version is the debug signature, without our concern. When we publish the program ourselves, we need our own signature. In fact, no matter which IDE is used, the Keytool and Jarsigner are the only two Java tools to complete the signature task (in the Bin directory of the JDK). Where Keytool is used to generate KeyStore (certificates),
Use awk to re-sign the android apk in linux and install a one-stop operation to create an apksign file. sh. /apksign xx.apk. The signature is automatically completed, and the tool in linux is installed by adb. the longer the time used, the more accumulated the data. In Windows, you need to learn new things for each upgrade, and the old knowledge is obsolete. There are often some things out of the box.Valid
Android listens to APK uninstallation, replacement, broadcast completion, androidapk
ACTION_PACKAGE_ADDED a new application package has been installed on the device, and the data includes the package name (this broadcast cannot be received by the latest package Program)ACTION_PACKAGE_REPLACED install a new version of the application to the device and replace the
Android program version Update-notification bar update download and installation, android program version
After the Android app checks for version updates, download the updated version
command line, input the android-h and ADB commands separately, show that the Android SDK environment variable is already configured. Briefly talk about the main features of the ADB tool in the Platform-tools directory:
Shell running the device (command line)
Manage port mappings for emulators or devices
Upload/download files between your computer and your device
Install the local
the Platform-tools directory:
Shell running the device (command line)
Manage port mappings for emulators or devices
Upload/download files between your computer and your device
Install the local APK software to the emulator or Android device
Iv. SummaryThe above is to build the latest version of the
main features of the ADB tool in the Platform-tools directory:
Shell running the device (command line)
Manage port mappings for emulators or devices
Upload/download files between your computer and your device
Install the local APK software to the emulator or Android device
Iv. SummaryThe above is to build the latest version of the
main features of the ADB tool in the Platform-tools directory:
Shell running the device (command line)
Manage port mappings for emulators or devices
Upload/download files between your computer and your device
Install the local APK software to the emulator or Android device
Iv. SummaryThe above is to build the latest version of the
importance is also described in the narrative, a new version of the application of the Versioncode can not be less than the previous version of the Versioncode value, or replace the update upgrade error. The system prompts you not to install. Of course. This is not mandatory, it is simply a question that must be considered when the application is officially published.Versionname------This is a property wit
Approximate process: The Android client accesses an XML file on the server that encapsulates information such as the version number, compares the version on the server to the current version,If it is lower than the server version, download the new
side platform, which can be said to beVersioncodeexplanation and description. The general format can be:1.1.2(Major.minor.point) in the form of. Here is an example of a manifest.xml file:The above code indicates that the current . APK is the second version, with the versionname value 1.1 to see that this version is in the 1.0
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.