简体   繁体   English

OnePlus One上的签名构建安装失败

[英]signed build installation failed on OnePlus One

I created a signed build of my application which is working fine in every device but fails to install in OnePlus One device with device error as App not installed . 我创建了我的应用程序的已签名版本,该版本在每种设备上均可正常运行,但无法在OnePlus中安装,但由于App not installed出现设备错误。 I tried to check the logcat and it resulted into Installation error code: -7 . 我试图检查logcat,并导致Installation error code: -7 I looked for it on Google but found nothing helpful. 我在Google上寻找它,但没有发现任何帮助。

This happened when I changed the package name of my project. 这是在我更改项目的程序包名称时发生的。

Please check this page for errorcodes. 请检查此页面的错误代码。

Installation return code: this is passed to the IPackageInstallObserver by installPackage(android.net.Uri,android.content.pm.IPackageInstallObserver,int,java.lang.String) if a previously installed package of the same name has a different signature than the new package (and the old package's data was not removed). 安装返回码:如果先前安装的同名程序包具有与签名不同的签名,则安装返回码将通过installPackage(android.net.Uri,android.content.pm.IPackageInstallObserver,int,java.lang.String)传递给IPackageInstallObserver。新软件包(并且旧软件包的数据未删除)。

Obviously, check the signatures. 显然,检查签名。 If it is your phone only, remove the application from your phone before installing the new apk. 如果仅是手机,请在安装新apk之前从手机中删除该应用程序。

Please check sometimes in android devices if your have multiple users enabled. 有时请检查android设备中是否启用了多个用户。 Or guest account enabled then some of the times apps gets installed for all users. 或启用来宾帐户,然后有时会为所有用户安装应用程序。

Check as below 检查如下

  1. If app launcher is not showing app installed, then check under device settings->apps 如果应用启动器未显示已安装应用,请在设备设置->应用下进行检查

And try to find app 并尝试找到应用

  1. If you find app listed in their tap to open app info page. 如果您发现他们的水龙头中列出了应用,则可以打开应用信息页面。 Now open menu and select uninstall for all users. 现在打开菜单,然后为所有用户选择卸载。

Above steps will remove app from all users accounts. 以上步骤将从所有用户帐户中删除该应用。 And then you would be able to install app again. 然后,您将能够再次安装应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM