简体   繁体   English

Android .apk安装-未安装应用程序

[英]Android .apk installation - Application not installed

I've installed the appropriate .apk file, however when trying to install it the app it gives me the error 'Application not installed'. 我已经安装了适当的.apk文件,但是在尝试安装该应用程序时,它给我错误消息“未安装应用程序”。 I've tried to put a simple Hello World .apk file on there and I receive the same message. 我试图将一个简单的Hello World .apk文件放在那里,并且收到相同的消息。

Here's what I have tried: 这是我尝试过的:
1. Adding the following to Application Manifest 1.将以下内容添加到“应用程序清单”中

android:debuggable="true"  

2. I have installed multiple File Managers including Astro, Android File Manager and ES File Explorer 2.我安装了多个文件管理器,包括Astro,Android文件管理器和ES文件资源管理器
3. I have enabled all of the correct settings on the Sony Xperia U (running Android 2.3.7) 3.我已经在Sony Xperia U(运行Android 2.3.7)上启用了所有正确的设置。
4. Tried installation whilst the device is plugged in, and whilst it isn't 4.在插入设备和未插入设备的情况下尝试安装

I'm using a Unsigned Android Application. 我正在使用未签名的 Android应用程序。 Everything runs accordingly on the Eclipse emulator 一切都相应地在Eclipse仿真器上运行

Logcat is reporting the following: Logcat报告以下内容:

在此处输入图片说明

This is displayed even when my device is connected via USB. 即使通过USB连接我的设备,也会显示该信息。

Locate your myapp.apk file on your hard drive: 在硬盘上找到myapp.apk文件:

Install it via command line: 通过命令行安装:

C:\android\android-sdk\platform-tools\adb.exe install myapp.apk

List of connected devices: 连接的设备列表:

adb devices

Connecting a device (if its number is 5554): 连接设备(如果其编号为5554):

adb connect 127.0.0.1:5554 

Restarting ADB: 重新启动亚行:

adb kill-server
adb start-server

Your APK is having an expired or mis-configured certificate. 您的APK的证书已过期或配置错误。

You need to resign the apk using the following tools. 您需要使用以下工具辞职。

https://play.google.com/store/apps/details?id=kellinwood.zipsigner2&hl=en https://play.google.com/store/apps/details?id=kellinwood.zipsigner2&hl=en

or 要么

https://code.google.com/p/apk-signer/ https://code.google.com/p/apk-signer/

Sign the APK with output filename as HelloWorld_signed.apk 使用输出文件名HelloWorld_signed.apk签名APK

Then go to my files you Will see your signed apk. 然后转到我的文件,您将看到已签名的apk。

Install HelloWorld_signed.apk. 安装HelloWorld_signed.apk。

The app Will install successfully.. 该应用程序将成功安装。

I believe there is a constraint of permission to prevent you to do so, I have worked around and find a simple solution for my Sony Xperia 1, OS version 5.1.1 我相信有一个权限限制来阻止您这样做,我已经设法找到了适用于我的Sony Xperia 1 OS版本5.1.1的简单解决方案。

Go through these steps: 完成以下步骤:

  1. Settings 设置
  2. Apps 应用
  3. Download Tab 下载标签
  4. Scroll down to find your app there 向下滚动以在此处找到您的应用
  5. Press the menu and select Uninstall for all users 按菜单,然后为所有用户选择“ 卸载”

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

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