我正在Android Studio上开发Android应用,当我在模拟器上运行时,一切都很顺利。但是当我尝试在手机上运行它时,会显示以下消息:失败[INSTALL_FAILED_DEXOPT] 然后,它显示了这个窗口:
如果我单击“确定”,它会显示以下消息:未知失败
此外,在logcat中,会出现此异常:
11-19 11:18:35.080 26295-26300/? W/dex2oat: Before Android 4.1, method int android.support.v7.internal.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
11-19 11:18:50.260 713-755/? W/PackageManager: Package couldn't be installed in /data/app/com.example.portol.agendalocal2-1
11-19 11:18:50.260 713-755/? W/PackageManager: com.android.server.pm.PackageManagerException: scanPackageLI
11-19 11:18:50.260 713-755/? W/PackageManager: at com.android.server.pm.PackageManagerService.scanPackageDirtyLI(PackageManagerService.java:6313)
11-19 11:18:50.260 713-755/? W/PackageManager: at com.android.server.pm.PackageManagerService.scanPackageLI(PackageManagerService.java:5605)
11-19 11:18:50.260 713-755/? W/PackageManager: at com.android.server.pm.PackageManagerService.installNewPackageLI(PackageManagerService.java:10550)
11-19 11:18:50.260 713-755/? W/PackageManager: at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:11128)
11-19 11:18:50.260 713-755/? W/PackageManager: at com.android.server.pm.PackageManagerService.access$2800(PackageManagerService.java:241)
11-19 11:18:50.260 713-755/? W/PackageManager: at com.android.server.pm.PackageManagerService$6.run(PackageManagerService.java:8993)
11-19 11:18:50.260 713-755/? W/PackageManager: at android.os.Handler.handleCallback(Handler.java:815)
11-19 11:18:50.260 713-755/? W/PackageManager: at android.os.Handler.dispatchMessage(Handler.java:104)
11-19 11:18:50.260 713-755/? W/PackageManager: at android.os.Looper.loop(Looper.java:194)
11-19 11:18:50.260 713-755/? W/PackageManager: at android.os.HandlerThread.run(HandlerThread.java:61)
11-19 11:18:50.260 713-755/? W/PackageManager: at com.android.server.ServiceThread.run(ServiceThread.java:46)
我已经在互联网上搜索了几乎所有的地方,但我无法找到解决这个问题的方法。我已经尝试更改项目的SKD版本,清理项目,但没有任何作用。我已经在其他人的手机上测试了它并没有遇到任何问题,它只是在我的手机中。 我不知道该怎么做了,所以,如果有人知道如何解决这个问题,请帮助我。
答案 0 :(得分:2)