InteliJ Ultimate插件中的null java.lang.AssertionError Android支持

时间:2017-04-08 08:55:28

标签: java android intellij-idea apk

构建成功,但当我尝试生成签名的apk时,我收到此错误。

插件Android支持中的例外情况。 错误消息为空。

null
java.lang.AssertionError
    at org.jetbrains.android.exportSignedPackage.ExportSignedPackageWizard.createApk(ExportSignedPackageWizard.java:419)
    at org.jetbrains.android.exportSignedPackage.ExportSignedPackageWizard.createAndAlignApk(ExportSignedPackageWizard.java:368)
    at org.jetbrains.android.exportSignedPackage.ExportSignedPackageWizard.access$200(ExportSignedPackageWizard.java:76)
    at org.jetbrains.android.exportSignedPackage.ExportSignedPackageWizard$1$1.run(ExportSignedPackageWizard.java:150)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:726)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:137)
    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

1 个答案:

答案 0 :(得分:0)

更新SDK和Android Build工具后解决

  1. 转到Android SDK Manager
    • 检查包的更新
    • Android SDK工具
    • Android SDK平台工具
    • 请注意必须存在并更新Build-tools。 在我的情况下,我有与rev的构建工具。 23.0.3
  2. Android SDK Manager

    还要确保您至少安装并更新了一个SDK平台。

    • 在我的情况下:

    Android SDK API