apk

“The package appears to be corrupt” while installing APK on Galaxy S7

自闭症网瘾萝莉.ら 提交于 2019-12-24 19:27:54
问题 I made an Android project on Android Studio. When I ran it on test Android device which was plugged to my system using a USB cable, it ran successfully. However, then I generated the APK and uploaded in Diawi website. When I tried to install this APK, I got following error: App not installed. The package appears to be corrupt. APK file however is not corrupt at all since when I installed it manually after copying it from build folder, it was successfully installed on the Galaxy S7. How to fix

How to get APK signing signature?

谁说胖子不能爱 提交于 2019-12-24 18:23:25
问题 Is there a way to retrieve the signature of the key used to sign an APK? I signed my APK with my key from my keystore. How can I retrieve it programmatically? 回答1: You can access the APK's signing signature like this using the PackageManager class http://developer.android.com/reference/android/content/pm/PackageManager.html Signature[] sigs = context.getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_SIGNATURES).signatures; for (Signature sig : sigs) { Trace.i(

Two Packages in Same APK possible?

狂风中的少年 提交于 2019-12-24 16:53:31
问题 I am trying to implement this great technique of sharing preferences across two different applications while still MODE_PRIVATE. My problem is that the first application cannot assume that the first application is installed (and vice versa) and so: Context c = createPackageContext("com.app.first", MODE_PRIVATE); Must be replaced by: Context c = createPackageContext("com.app.shared", MODE_PRIVATE); But that mandates adding that com.app.shared for real, which translates into a second APK? In

Change .apk asset file from outside

让人想犯罪 __ 提交于 2019-12-24 16:28:39
问题 I have apk file that will be distributed between a lot of users. The file is same for all but I need to specify ID for each one that will be used in code (ideally it should be done automatically by php script). For now I tried to put ID to text file in Assets and then open apk as archive in Windows, update value in text file then save (update archive). As result my application cannot be installed anymore. Why it doesn't work? Or may be there another way to set ID for each apk without

Apache Cordova - Visual Studio 2015 - Unable to build signed apk

落花浮王杯 提交于 2019-12-24 15:44:09
问题 Error Android packages must be signed when debugging using the Release configuration. To configure Android signing, follow instructions at http://go.microsoft.com/fwlink/?LinkID=613579 BlankCordovaApp4 key.store=E:\key.keystore key.alias=asdfgh key.store.password=asdfgh key.alias.password=asdfgh This are the following values i have given in the ant.properties files. keytool -genkey -v -keystore E:\key.keystore -alias asdfgh -keyalg RSA -keysize 2048 -validity 1000 I tried to add another slash

aapt dump badging error while trying to publish an Android apk on Google Play

天涯浪子 提交于 2019-12-24 14:03:17
问题 I am getting this problem when publishing android apk file on Google Play. This is my AndroidManifast.xml code: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="xx.com" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Apk Deployment Error

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 12:08:50
问题 I'm getting the error when trying to upload my apk file: 'dump failed because no androidmanifest.xml found' Does the package name in the AndroidManifest have to be the same as the deployed apk name? Also, does the apk name have to be in the form: com.xxxx.xxxx? Or should, say, TestPro.apk be ok? Regards...Andrew 回答1: Use Winzip or zip reader to open your APK file to check whether AndroidManifest.xml exists inside your package. 回答2: After having the exact same problem (and losing about 4 hours

Android app installed is double the size of the apk

独自空忆成欢 提交于 2019-12-24 10:46:51
问题 I upgraded my Eclipse ADT tools to r20 (from r17 or so) and now the applications installed on the devices use twice the size of the apk. The app itself is running fine. This happens for both the release and the debug versions, and whether I generate the apk with ant (and install thru usb) or launch the app from eclipse. I tried with various target versions but it's always the same thing. For info - I do not use "copy protection" nor licensing, this is direct install, not thru the play store.

How to remove extra native dependencies from Android app

♀尐吖头ヾ 提交于 2019-12-24 09:02:41
问题 I am using arcgis in my app and it bundles native dependencies that are large in size. I don't want to include the x86 dependency if it means reducing the size of the apk. how do I tell gradle to automatically exclude the x86 native library. I tried removing it manually during the build. but it shows up again after rebuild. 回答1: how do I tell gradle to automatically exclude the x86 native library Use splits: android { // other good stuff here splits { abi { enable true reset() include

ERROR: unsatisfiable constraints: while installing package in alpine

烂漫一生 提交于 2019-12-24 08:52:52
问题 I am trying to build a docker image based on Alpine and I need to install few packages in it. Here is exactly what I am trying to do: FROM alpine:latest RUN apk --no-cache add ca-certificates=20161130-r2 openssl=1.0.2k-r0 But when I run docker build, here is the error I get: RUN apk --no-cache add ca-certificates=20161130-r2 openssl=1.0.2k-r0 ---> Running in a061dcd5071e fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.7