apk

How to zip Align APK file in android?

橙三吉。 提交于 2019-12-29 11:45:23
问题 I am uploading my first APK file to google play but I am getting following error. You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again. Can any one tell me how to zip align my apk file ? Please tell me steps for that ? 回答1: Read the documentation from Google itself The steps should be simple to follow. Please follow this doc from google for complete publishing details In short,complete steps in a nutshell(I am assuming you use

What is .build-deps for apk add --virtual command?

人盡茶涼 提交于 2019-12-29 11:31:02
问题 What is .build-deps in the following command? I can't find an explanation in the Alpine docs. Is this a file that is predefined? Is see this referenced in many Dockerfiles. RUN apk add --no-cache --virtual .build-deps \ gcc \ freetype-dev \ musl-dev RUN pip install --no-cache-dir <packages_that_require_gcc...> \ RUN apk del .build-deps 回答1: If you see the documentation -t, --virtual NAME Instead of adding all the packages to 'world', create a new virtual package with the listed dependencies

64-bit Eclipse won't install .apk on Android emulator

给你一囗甜甜゛ 提交于 2019-12-29 08:08:25
问题 On Windows 7 64-bit, running Eclipse 3.6 64-bit, JDK (jdk1.6.0_23) 64-bit and Android 2.3 (bitness?), running a program via Eclipse's Run|Run (Ctrl+F11) invokes the android emulator, but won't install .apk on the emulator (and certainly won't run it). (update, answering @Computerish's question) All I am getting at Eclipse's Console is: [2010-12-16 10:23:33 - HelloAndroid] ------------------------------ [2010-12-16 10:23:33 - HelloAndroid] Android Launch! [2010-12-16 10:23:33 - HelloAndroid]

How to share current app's APK (or of other installed apps) using the new FileProvider?

♀尐吖头ヾ 提交于 2019-12-29 08:07:51
问题 Background In the past, it was easy to share an APK file with any app you wanted, using a simple command: startActivity(new Intent(Intent.ACTION_SEND,Uri.fromFile(filePath)).setType("*/*")); The problem If your app targets Android API 24 (Android Nougat) or above, the above code will cause a crash, caused by FileUriExposedException (written about it here, and an example solution for opening an APK file can be found here) . This actually worked for me fine, using below code: File apkFile = new

Google maps only a grey background as APK

≯℡__Kan透↙ 提交于 2019-12-29 07:11:26
问题 I develop locally with android-studio and a Galaxy S3 android phone connected via USB. On my local development environment, when I fire up the run configuration to deploy on the S3, everything works fine - the map shows up just fine. But when I deploy as signed APK to our server, and install via Internet (I am trying on another android phone to keep things clearly separated), the map tiles don't load, I see the Google sign to the lower left and the GPS location icon on the upper right corner.

Error : Parsing the package while installing APK [closed]

你说的曾经没有我的故事 提交于 2019-12-29 05:45:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm trying to install my app by running Package Installer from the email attachment in Yahoo. My phone is on version 4.1 (Jellybean), so this should work, right? However, I get an error saying that there was a problem parsing the package despite the fact that my AndroidManifest specifies a minSdkVersion of 1,

How to sign an apk through command line

三世轮回 提交于 2019-12-29 04:28:29
问题 Be informed that we have created an apk file through command line with the help of Android SDK. Now since uploading it to google play store needs the apk to be signed. How shall we do this. 回答1: Step 1 First you need to generate a private signing key keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 This command will prompt you for a password for your keystore and key (also for some additional fields). Please remember to keep

What is the <module>/release/output.json generated by Android Studio

╄→гoц情女王★ 提交于 2019-12-29 03:24:57
问题 I recently noticed a new file generated at <module>/release/output.json by Android Studio 3 Canary 1 each time I run Build -> Generate Signed APK... , which has contents that look like following. Can anyone confirm seeing this behavior as well? Or is it due to some local configuration on my laptop? And can anyone explain the purpose of this file? Is it safe to add to .gitignore ? [{ "outputType": { "type": "APK" }, "apkInfo": { "type": "MAIN", "splits": [], "versionCode": 32 }, "outputFile":

Android Studio: how to generate signed apk using Gradle?

回眸只為那壹抹淺笑 提交于 2019-12-28 07:36:09
问题 I've searched on Google and SO but cannot find my answer. This is the first time I'm working with the gradle system and I am now at the point of generating a signed APK to upload to google play (Project is imported from eclipse). Now I've read the part here http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Building-and-Tasks that you should add signingConfigs to your build.gradle I've added these lines and now I saw that you need to run ./gradlew assembleRelease but running

adb 常用命令

拥有回忆 提交于 2019-12-28 05:23:39
adb 常用命令 adb 操作文件 //安装APK,adb install 用此命令安装的软件位于 data/app 目录,为user application adb install D:\app.apk //强制安装 adb install -r /Users/test/test.apk //卸载某应用 adb uninstall com.xxx.xxx //传APK文件到Android系统目录 adb push D:\app.apk /system/app/ //把手机目录传入到PC中 adb pull /sdcard/record/ D:\audio adb shell //进入系统中的根目录,获得系统权限 adb root //重新挂载系统分区,使系统分区重新可写 adb remount //进入系统 adb shell //重启设备 adb reboot //查看链接的设备 adb devices //删除系统目录APK adb shell rm /system/app/XXX.apk adb shell rm /sdcard/1.0.apk //包名/类名 启动应用 adb shell am start com.xxx.xxx //列出目录下所有文件 adb shell ls /system/app/ //列出所有的包名 adb shell pm list