【发布时间】:2017-05-18 09:56:37
【问题描述】:
我在我的手机和其他手机上安装我的应用程序时遇到了问题,它是 APK。当我通过 ADB 从 Android Studio 的运行按钮加载应用程序时,它安装得很好,没有任何问题,但是当我生成一个签名的 APK 并将其侧载到我的设备上(调试和发布)时,它会抛出一个错误,提示“应用程序未安装。”
我真的到处寻找这个问题的答案,但我找不到任何东西,以前有没有其他人遇到过这个问题?
这是问题的视频https://www.youtube.com/watch?v=S1EbAULdrqs
以下是有关我的应用的一些信息。 它使用 ZXing,因此它使用手机摄像头,从视频中可以看出,我在清单中声明了适当的权限,但我的清单仍然如下:
<manifest package="com.android.tighearnan.frenchsscanner"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature
android:name="android.hardware.camera2"
android:required="true"/>
<uses-feature
android:name="android.hardware.Camera"
android:required="false" />
<uses-feature
android:name="android.hardware.Camera.autofocus"
android:required="false" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".ScannerActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
以防您认为在清单中说明旧相机已经结束了,我已经尝试在没有这个的情况下安装它,但它仍然无法正常工作。
任何帮助将不胜感激。
【问题讨论】:
-
有时,我也会遇到同样的问题......但我只是卸载了应用程序并重新安装了 APK,它安装得很好。
-
我已经尝试过了,我什至清除了数据,卸载,重新启动并尝试安装应用程序但没有!好痛哈哈
标签: android android-studio installation adb