Eclipse Java光子中的INSTALL_PARSE_FAILED_NO_CERTIFICATES

时间:2018-10-02 11:11:19

标签: java android eclipse

我有一个仅在eclipse中运行的旧项目,因此我下载了eclipse java photon并在其中配置了ADT工具。我已经用studio映射了studio提供的Android sdk,并试图将应用程序运行到设备中,但是每次运行此应用程序时,都会出现以下错误

 Installing SLTL.apk...
 Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES
 Please check logcat output for more details.
 Launch canceled!

当我检查logcat时出现以下错误

/com.android.defcontainer D/DefContainer: Copying /data/local/tmp/SLTL.apk to base.apk
10-02 14:17:52.233 1957-1990/system_process W/PackageManager: Failed collect during installPackageLI
    android.content.pm.PackageParser$PackageParserException: Failed to collect certificates from /data/app/vmdl871259287.tmp/base.apk
        at android.content.pm.PackageParser.collectCertificates(PackageParser.java:1130)
        at android.content.pm.PackageParser.collectCertificates(PackageParser.java:1057)
        at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:12196)
        at com.android.server.pm.PackageManagerService.-wrap25(PackageManagerService.java)
        at com.android.server.pm.PackageManagerService$9.run(PackageManagerService.java:10156)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:148)
        at android.os.HandlerThread.run(HandlerThread.java:61)
        at com.android.server.ServiceThread.run(ServiceThread.java:46)
     Caused by: java.lang.NullPointerException: Attempt to get length of null array
        at java.util.jar.Manifest.read(Manifest.java:201)
        at java.util.jar.Manifest.<init>(Manifest.java:106)
        at java.util.jar.StrictJarFile.<init>(StrictJarFile.java:66)
        at android.content.pm.PackageParser.collectCertificates(PackageParser.java:1072)
        at android.content.pm.PackageParser.collectCertificates(PackageParser.java:1057) 
        at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:12196) 
        at com.android.server.pm.PackageManagerService.-wrap25(PackageManagerService.java) 
        at com.android.server.pm.PackageManagerService$9.run(PackageManagerService.java:10156) 
        at android.os.Handler.handleCallback(Handler.java:739) 
        at android.os.Handler.dispatchMessage(Handler.java:95) 
        at android.os.Looper.loop(Looper.java:148) 
        at android.os.HandlerThread.run(HandlerThread.java:61) 
        at com.android.server.ServiceThread.run(ServiceThread.java:46) 

我的系统配置是Windows 10,并使用Java 1.8作为Java 1.8 jre的编译器,我试图搜索很多线程和博客,但找不到解决方法

我也尝试编辑Android manifest文件,但是没有运气

0 个答案:

没有答案