想了解INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION的新动态吗?本文将为您提供详细的信息,此外,我们还将为您介绍关于adb:failedtoinstallapp-d
想了解INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION的新动态吗?本文将为您提供详细的信息,此外,我们还将为您介绍关于adb: failed to install app-debug.apk: Failure [INSTALL_FAILED_ABORTED: User rejected permissions]、android -------- 安装 APK 报错:Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE 解决方法、Android Studio - 4.2.2 :: Run Bundle(从 Bundle 安装 APK) - INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION、Android Studio 错误 Application Installation Failed...INSTALL_FAILED_INVALID_APK…的新知识。
本文目录一览:- INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
- adb: failed to install app-debug.apk: Failure [INSTALL_FAILED_ABORTED: User rejected permissions]
- android -------- 安装 APK 报错:Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE 解决方法
- Android Studio - 4.2.2 :: Run Bundle(从 Bundle 安装 APK) - INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
- Android Studio 错误 Application Installation Failed...INSTALL_FAILED_INVALID_APK…
INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
如何解决INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION?
我在使用 Android 安装 Android 时遇到问题。构建成功完成,但安装失败并显示 INSTALL_PARSE_Failed_UNEXPECTED_EXCEPTION。
我在网上找到的大多数解决方案都要求将包名更改为全部小写,但我的包名是小写的。我一直在四处闲逛,但我对 Android 开发不太熟悉,所以没有运气。
4:运行输出
02/21 17:23:17: Launching ''app'' on Pixel 4 API 30.
Installation did not succeed.
The application Could not be installed: INSTALL_PARSE_Failed_UNEXPECTED_EXCEPTION
List of apks:
[0] ''/Users/myusername/Repositories/FedML-Mobile/android/app/build/outputs/apk/debug/app-debug.apk''
Installation Failed due to: ''null''
Retry
6:Logcat 输出
2021-02-21 17:25:09.752 373-373/? W/adbd: timeout expired while flushing socket,closing
2021-02-21 17:25:12.732 373-373/? W/adbd: timeout expired while flushing socket,closing
2021-02-21 17:25:15.371 457-457/? E/netmgr: qemu_pipe_open_ns:62: Could not connect to the ''pipe:qemud:network'' service: Invalid argument
2021-02-21 17:25:15.371 457-457/? E/netmgr: Failed to open QEMU pipe ''qemud:network'': Invalid argument
2021-02-21 17:25:15.653 494-823/? W/ActivityManager: Invalid packageName: ai.fedml.android
2021-02-21 17:25:15.655 15149-15151/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2021-02-21 17:25:15.760 15156-15159/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2021-02-21 17:25:15.817 15157-15157/? E/studio.deploy: Could not get package user id: run-as: unkNown package: ai.fedml.android
2021-02-21 17:25:15.838 15157-15157/? E/studio.deploy: Could not find apks for this package: ai.fedml.android
2021-02-21 17:25:15.838 15157-15157/? E/studio.deploy: Error:
2021-02-21 17:25:15.893 15165-15168/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2021-02-21 17:25:16.741 494-514/? E/JobScheduler.Background: App com.google.android.gms became active but still in NEVER bucket
2021-02-21 17:25:16.744 494-526/? I/DropBoxManagerService: add tag=system_server_wtf isTagEnabled=true flags=0x2
2021-02-21 17:25:17.337 463-463/? E/wifi_forwarder: qemu_pipe_open_ns:62: Could not connect to the ''pipe:qemud:wififorward'' service: Invalid argument
2021-02-21 17:25:17.337 463-463/? E/wifi_forwarder: RemoteConnection Failed to initialize: RemoteConnection Failed to open pipe
2021-02-21 17:25:18.758 494-526/? W/broadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBox_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
2021-02-21 17:25:18.758 494-526/? W/broadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBox_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2021-02-21 17:25:46.616 15169-15172/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2021-02-21 17:25:48.058 494-514/? E/JobScheduler.Background: App com.google.android.gms became active but still in NEVER bucket
2021-02-21 17:25:48.063 494-526/? I/DropBoxManagerService: add tag=system_server_wtf isTagEnabled=true flags=0x2
2021-02-21 17:25:48.078 13256-13256/? I/Finsky: [2] aosy.b(3): Verification requested,id = 18
2021-02-21 17:25:48.093 494-596/? W/AppIntegrityManagerServiceImpl: Exception reading file:///data/app/vmdl1167639721.tmp
android.content.pm.PackageParser$PackageParserException: Failed to read manifest from /data/app/vmdl1167639721.tmp/base.apk
at com.android.server.pm.parsing.PackageParser2.parsePackage(PackageParser2.java:155)
at com.android.server.integrity.AppIntegrityManagerServiceImpl.getPackageArchiveInfo(AppIntegrityManagerServiceImpl.java:579)
at com.android.server.integrity.AppIntegrityManagerServiceImpl.handleIntegrityVerification(AppIntegrityManagerServiceImpl.java:297)
at com.android.server.integrity.AppIntegrityManagerServiceImpl.access$100(AppIntegrityManagerServiceImpl.java:97)
at com.android.server.integrity.AppIntegrityManagerServiceImpl$1.lambda$onReceive$0$AppIntegrityManagerServiceImpl$1(AppIntegrityManagerServiceImpl.java:180)
at com.android.server.integrity.-$$Lambda$AppIntegrityManagerServiceImpl$1$AQicMJqZVSufBnAD8HJ81gPtf7Y.run(UnkNown Source:4)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.classCastException: android.content.pm.parsing.component.ParsedService cannot be cast to java.lang.String
at android.content.pm.parsing.component.ComponentParseUtils.buildProcessName(ComponentParseUtils.java:100)
at android.content.pm.parsing.component.ParsedMainComponentUtils.parseMainComponent(ParsedMainComponentUtils.java:83)
at android.content.pm.parsing.component.ParsedServiceUtils.parseService(ParsedServiceUtils.java:60)
at android.content.pm.parsing.ParsingPackageUtils.parseBaseApplication(ParsingPackageUtils.java:1845)
at android.content.pm.parsing.ParsingPackageUtils.parseBaseApkTags(ParsingPackageUtils.java:753)
at android.content.pm.parsing.ParsingPackageUtils.parseBaseApk(ParsingPackageUtils.java:494)
at android.content.pm.parsing.ParsingPackageUtils.parseBaseApk(ParsingPackageUtils.java:372)
at android.content.pm.parsing.ParsingPackageUtils.parseClusterPackage(ParsingPackageUtils.java:278)
at android.content.pm.parsing.ParsingPackageUtils.parsePackage(ParsingPackageUtils.java:232)
at com.android.server.pm.parsing.PackageParser2.parsePackage(PackageParser2.java:152)
at com.android.server.integrity.AppIntegrityManagerServiceImpl.getPackageArchiveInfo(AppIntegrityManagerServiceImpl.java:579)
at com.android.server.integrity.AppIntegrityManagerServiceImpl.handleIntegrityVerification(AppIntegrityManagerServiceImpl.java:297)
at com.android.server.integrity.AppIntegrityManagerServiceImpl.access$100(AppIntegrityManagerServiceImpl.java:97)
at com.android.server.integrity.AppIntegrityManagerServiceImpl$1.lambda$onReceive$0$AppIntegrityManagerServiceImpl$1(AppIntegrityManagerServiceImpl.java:180)
at com.android.server.integrity.-$$Lambda$AppIntegrityManagerServiceImpl$1$AQicMJqZVSufBnAD8HJ81gPtf7Y.run(UnkNown Source:4)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.os.HandlerThread.run(HandlerThread.java:67)
2021-02-21 17:25:48.093 494-596/? W/AppIntegrityManagerServiceImpl: Cannot parse package ai.fedml.android
2021-02-21 17:25:48.094 494-544/? I/PackageManager: Integrity check passed for file:///data/app/vmdl1167639721.tmp
2021-02-21 17:25:48.098 13256-13256/? E/Finsky: [2] VerifyPerSourceInstallationConsentInstallTask.f(2): Package name null is not an installed package
2021-02-21 17:25:48.114 13256-15183/? I/Finsky: [1111] aouw.a(7): Single user settings service is not running,bind it Now
2021-02-21 17:25:48.120 494-514/? E/JobScheduler.Background: App com.google.android.gms became active but still in NEVER bucket
2021-02-21 17:25:48.123 494-526/? I/DropBoxManagerService: add tag=system_server_wtf isTagEnabled=true flags=0x2
2021-02-21 17:25:48.124 13256-13256/? I/Finsky: [2] aouv.onServiceConnected(1): Single user settings service is connected
2021-02-21 17:25:48.134 13256-15183/? W/Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure,returning read-only value.
2021-02-21 17:25:48.146 13256-15183/? I/Finsky: [1111] VerifyAppsInstallTask.Z(5): Verify: Cannot read archive for file:///data/app/vmdl1167639721.tmp in request id=18,package=ai.fedml.android
2021-02-21 17:25:48.169 13256-15183/? I/Finsky: [1111] VerifyMissingSplitsInstallTask.mW(7): Could not tell if Splits is installed due to null packageInfo for id=18. Assuming not.
2021-02-21 17:25:48.169 13256-15183/? I/Finsky: [1111] VerifyMissingSplitsInstallTask.d(1): Assuming split not required due to null packageInfo for id=18
2021-02-21 17:25:48.170 13256-15183/? I/Finsky: [1111] VerifyPerSourceInstallationConsentInstallTask.mW(2): PSIC verification started with installer uid: 2000 package name: null,originating uid: -1
2021-02-21 17:25:48.173 13256-13256/? I/Finsky: [2] VerifyInstallTask.g(3): Verifying id=18,result=1
2021-02-21 17:25:48.175 13256-13256/? I/Finsky: [2] VerifyInstallTask.mU(6): Verification complete: id=18,package_name=ai.fedml.android
2021-02-21 17:25:48.185 494-544/? W/PackageManager: Failed parse during installPackageLI: Failed to read manifest from /data/app/vmdl1167639721.tmp/base.apk: android.content.pm.parsing.component.ParsedService cannot be cast to java.lang.String
2021-02-21 17:25:48.187 400-1293/? E/installd: Couldn''t opendir /data/app/vmdl1167639721.tmp: No such file or directory
2021-02-21 17:25:48.187 400-1293/? E/installd: Failed to delete /data/app/vmdl1167639721.tmp: No such file or directory
2021-02-21 17:25:48.191 15178-15181/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2021-02-21 17:25:48.263 494-3053/? W/ActivityManager: Invalid packageName: ai.fedml.android
2021-02-21 17:25:50.077 494-526/? W/broadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBox_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
2021-02-21 17:25:50.077 494-526/? W/broadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBox_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2021-02-21 17:25:50.197 10955-10966/? I/.gms.persisten: Background young concurrent copying GC freed 114541(5966KB) AllocSpace objects,41(2956KB) LOS objects,45% free,10MB/18MB,paused 991us total 109.268ms
2021-02-21 17:25:50.197 10955-10966/? W/.gms.persisten: Reducing the number of considered missed Gc histogram windows from 133 to 100
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ai.fedml.android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.SYstem_ALERT_WINDOW" />
<uses-permission android:name="android.permission.RECORD_AUdio" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.broADCAST_STICKY" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
<uses-permission android:name="android.permission.BLUetoOTH"/>
<uses-permission android:name="android.permission.BLUetoOTH_ADMIN"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
adb: failed to install app-debug.apk: Failure [INSTALL_FAILED_ABORTED: User rejected permissions]
一、使用 adb 的 usb 真机调试,安装错误:
adb: failed to install app-debug.apk: Failure [INSTALL_FAILED_ABORTED: User rejected permissions]
用于拒绝安装:
解决方案:
1. 手机开启开发者模式
2. 从开发者模式的设置中,关闭,安装需要用户确认的选项:
结果:
更多:
Error validating package name. Must look like: `com.company.Name`. Currently is: `xxxx`
Android 模拟器启动不了 - 问题解决方案
Gradle 简介
android -------- 安装 APK 报错:Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE 解决方法
记录一个 DELETE_FAILED_INTERNAL_ERROR Error while Installing APK 问题
之前遇到这个问题
方案 1
将 data/data/ 目录下该应用的包名的目录删除掉,如:adb shell rm -rf data/data/com.demo.helloworld/
然后重启下手机就好了
或者把 Instant Run 关掉就可以了
新版本 Android Studio 运行 APK 时,出现 DELETE_FAILED_INTERNAL_ERROR, Error while Installing APKs 如何解决。
有一种方法:打开 settings,找到 Build>Instant Run, 把右边的勾去掉,再次尝试安装。
方案 2:
第一步:先把原来已经存在的相同包名的 APK 删除,如:adb shell rm system/app/OutdoorMeter/OutdoorMeter.apk
第二步:将 data/data/ 目录下该应用的包名的目录删除掉,如:adb shell rm -rf data/data/com.runbo.outdoormeter/
第三步:重启 Android 手机 adb reboot
第四步:再重新安装该 APK
参考地址
http://blog.csdn.net/ouyang_peng/article/details/50419276
https://stackoverflow.com/questions/38892270/delete-failed-internal-error-error-while-installing-apk
Android Studio - 4.2.2 :: Run Bundle(从 Bundle 安装 APK) - INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
如何解决Android Studio - 4.2.2 :: Run Bundle(从 Bundle 安装 APK) - INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION?
突然在本地测试 Bundle 的资产文件,现在出现此错误:
> 07/23 10:15:12: Launching ''Bundle'' on samsung SM-T510.
Installation did not succeed.
The application Could not be installed: INSTALL_PARSE_Failed_UNEXPECTED_EXCEPTION
List of apks:
[0] ''.../out/base-en.apk''
[1] ''.../out/large_assets-master.apk''
[2] ''.../out/base-master.apk''
[3] ''.../out/base-hdpi.apk''
[4] ''.../out/base-armeabi_v7a.apk''
Installation Failed due to: ''null''
Retry
我尝试过以下操作:
- 清理和重建
- 从设备上卸载应用
- 重新安装最新版本的 Android Studio
- 重启 Mac mini x5 次
- 重启设备 ~3 次
- 恢复到之前的 Git 分支
我可以将运行配置更改为完美运行的应用程序,但不允许我使用资产文件测试功能。
任何建议将不胜感激
请参阅随附的两个运行配置的屏幕截图
App 运行配置(完美运行) Run Config - App
捆绑运行配置(无处运行) Run Config - Bundle
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
Android Studio 错误 Application Installation Failed...INSTALL_FAILED_INVALID_APK…
Android Studio 三个错误,归结为一个错误
1. 弹出窗口,错误如下
Application Installation Failed...INSTALL_FAILED_INVALID_APK...
WARNING: Uninstalling will remove the applation data:
Do you want to uninstall the existing applation?
2. Event Log,错误如下
Session ''app'': Error Installing APKs
3. Run,错误如下
Unknown failure (Failure - not installed for 0)
Error while Installing APKs
这三个错误可归结为一个,也调试了数小时,各种搜索。终于找到了办法:
在设置中可以解决:File-->Settings
关于INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于adb: failed to install app-debug.apk: Failure [INSTALL_FAILED_ABORTED: User rejected permissions]、android -------- 安装 APK 报错:Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE 解决方法、Android Studio - 4.2.2 :: Run Bundle(从 Bundle 安装 APK) - INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION、Android Studio 错误 Application Installation Failed...INSTALL_FAILED_INVALID_APK…的相关信息,请在本站寻找。
本文标签: