u011621167
sincle
采纳率0%
2016-07-23 06:47 阅读 2.5k

Android studio打包apk报错Error: [Instantiatable]

报错代码:
Information:Gradle tasks [:Android_hdjs:assembleRelease]
:Android_hdjs:preBuild UP-TO-DATE
:Android_hdjs:preReleaseBuild UP-TO-DATE
:Android_hdjs:checkReleaseManifest
:Android_hdjs:prepareReleaseDependencies
:Android_hdjs:compileReleaseAidl UP-TO-DATE
:Android_hdjs:compileReleaseRenderscript UP-TO-DATE
:Android_hdjs:generateReleaseBuildConfig UP-TO-DATE
:Android_hdjs:generateReleaseAssets UP-TO-DATE
:Android_hdjs:mergeReleaseAssets UP-TO-DATE
:Android_hdjs:generateReleaseResValues UP-TO-DATE
:Android_hdjs:generateReleaseResources UP-TO-DATE
:Android_hdjs:mergeReleaseResources UP-TO-DATE
:Android_hdjs:processReleaseManifest UP-TO-DATE
:Android_hdjs:processReleaseResources UP-TO-DATE
:Android_hdjs:generateReleaseSources UP-TO-DATE
:Android_hdjs:compileReleaseJavaWithJavac UP-TO-DATE
:Android_hdjs:compileReleaseNdk UP-TO-DATE
:Android_hdjs:compileReleaseSources UP-TO-DATE
:Android_hdjs:lintVitalRelease
E:\edxc_yhb_android\hdjs\Android_hdjs\src\main\java\com\wlhy\app\UpdateVersionByDownloadManager.java
Error:Error: This inner class should be static (com.wlhy.app.UpdateVersionByDownloadManager.DownloadCompleteReceiver) [Instantiatable]

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

1条回答 默认 最新

  • wx_bin 曹小贼 2016-07-25 03:20

    这个内部类应该是静态的,意思是你要找到com.wlhy.app.UpdateVersionByDownloadManager.DownloadCompleteReceiver这个类,然后查看用法......看看你是不是用在静态里面了。

    点赞 评论 复制链接分享

相关推荐