god2030
蓝天逐日者
采纳率0%
2017-06-30 00:15 阅读 1.2k

用eclipse打包安卓项目失败

 !ENTRY com.android.ide.eclipse.adt 4 0 2017-06-27 09:38:11.264
!MESSAGE Export Wizard Error
!STACK 1
org.eclipse.core.runtime.CoreException: Failed to export application
    at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:323)
    at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:313)
    at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access$0(ExportWizard.java:238)
    at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$1.run(ExportWizard.java:223)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.NullPointerException
    at com.android.ide.eclipse.adt.internal.build.BuildHelper.createWindowsProguardConfig(BuildHelper.java:652)
    at com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(BuildHelper.java:571)
    at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:259)
    ... 4 more
!SUBENTRY 1 com.android.ide.eclipse.adt 4 0 2017-06-27 09:38:11.264
!MESSAGE Failed to export application
!STACK 0
java.lang.NullPointerException
    at com.android.ide.eclipse.adt.internal.build.BuildHelper.createWindowsProguardConfig(BuildHelper.java:652)
    at com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(BuildHelper.java:571)
    at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:259)
    at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:313)
    at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access$0(ExportWizard.java:238)
    at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$1.run(ExportWizard.java:223)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

是我的混淆文件有问题么?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • stella_alash 爱加糖的柠檬茶 2017-06-30 02:01

    报的是空指针异常,应该是你的某个变量在使用的时候没有初始化或者只定义而没有赋值。看看代码,用断点调试查看一下,改过来再打包应该就没什么问题了。

    点赞 评论 复制链接分享

相关推荐