Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App not installed #417

Closed
mukswilly opened this issue May 24, 2020 · 20 comments
Closed

App not installed #417

mukswilly opened this issue May 24, 2020 · 20 comments

Comments

@mukswilly
Copy link

Screenshot_20200525-011013_1590358347858

There's a problem with the tool. when I compile my app release with Android studio without using the Andresguard tool, my app installs well on devices. however, when I use andResguard, I can't install the app on the same devices. the "App not installed" message shows up even after uninstalling the app previously.

@simpleton
Copy link
Collaborator

what kinda error you get during adb installing?

@mukswilly
Copy link
Author

well, I am not using adb to push the app to the device. rather, I obtain the generated signed apk by Andresguard and install it manually. ie sending the app to my phone via mtp and then installing it. however, I think the problem is with signing because when I use android studio and sign my app with v1 or v2 not both, I encounter the same scenario, it's only after signing with both v1 and v2 that my app can then be installed. My thinking is that during the signing process, andResguard uses only one signing version ie v2 or v1 but not both thus reproducing the same error. Is there a way andResguard can be configured to use both v1 and v2 at the same time. thanks for your reply.

@mukswilly
Copy link
Author

UPDATE:
I have experimented with the signing. it seems not to be the problem, either v1 or v2 works perfectly. However now when it comes to using Andresguard, I don't know the cause of the problem. Any ideas please

@zhaobozhen
Copy link

Same problem after upgrading AGP to 4.0.0 and AndResGuard to 1.2.18.

@whoze
Copy link

whoze commented Jun 2, 2020

Same problem after upgrading AGP to 4.0.0 and AndResGuard to 1.2.18.

+1

@simpleton
Copy link
Collaborator

can you guys share a sample apk that could reproduce this issue?

@zhaobozhen
Copy link

can you guys share a sample apk that could reproduce this issue?

App1 This is my app built with v1 and v2 signature.
App2 This is my app built with AndResGuard.

@fengxin0210fx
Copy link

我也是啊

@fengxin0210fx
Copy link

提示: 1:安装包无效或不完整 2:该安装包与操作系统不兼容。 华为手机上安装的。

@xDragonZ
Copy link

:/ $ su
:/ # pm install -R /sdcard/test.apk

Failure [-124: Failed parse during installPackageLI: Targeting R+ (version 30 and above) requires the resources.arsc of installed APKs to be stored uncompressed and aligned on a 4-byte boundary]

@xDragonZ
Copy link

xDragonZ commented Aug 6, 2020

@shwenzhang @simpleton any update on this to support android SDK target 30?

@1794208519
Copy link

android 11使用v1和v2签名必现无法安装。

@simpleton
Copy link
Collaborator

Addressed Android R+ issue in a6a955b

@yj82871002
Copy link

使用as 4.0.1新建一个工程集成AndResGuard后,minSdkVersion 如果小于等于22则生成的APK可正常安装。如果minSdkVersion大于等于23则安装失败。这该如何解决?

@simpleton
Copy link
Collaborator

使用as 4.0.1新建一个工程集成AndResGuard后,minSdkVersion 如果小于等于22则生成的APK可正常安装。如果minSdkVersion大于等于23则安装失败。这该如何解决?

你使用的什么版本?

@zhaobozhen
Copy link

使用as 4.0.1新建一个工程集成AndResGuard后,minSdkVersion 如果小于等于22则生成的APK可正常安装。如果minSdkVersion大于等于23则安装失败。这该如何解决?

你使用的什么版本?

我使用 1.2.18 版本,也存在这个问题

@yj82871002
Copy link

使用as 4.0.1新建一个工程集成AndResGuard后,minSdkVersion如果小于等于22则生成的APK可正常安装。如果minSdkVersion大于等于23则安装失败。这该如何解决?

你使用的什么版本?

1.2.18

@simpleton
Copy link
Collaborator

simpleton commented Sep 15, 2020 via email

@yj82871002
Copy link

target sdk是多少呢?可否试下1.2.19?

On Mon, Sep 14, 2020 at 10:39 PM yj82871002 @.***> wrote: 使用as 4.0.1新建一个工程集成AndResGuard后,minSdkVersion如果小于等于22则生成的APK可正常安装。如果minSdkVersion大于等于23则安装失败。这该如何解决? 你使用的什么版本? 1.2.18 — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#417 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADO6YTTVOLLQ4SPLBSW5WDSF342BANCNFSM4NJCFWFA .

我试了最新版1.2.19 依然存在同样的问题
buildToolsVersion "30.0.2"
targetSdkVersion 30

@lwj1994
Copy link

lwj1994 commented Feb 10, 2021

1.2.20 has same bug,minsdk 23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants