我的电脑随机地崩溃了,我正在编辑我的项目中的一些东西。我不记得我最后一次更改,但在重启android studio时,布局不可见,事件日志显示以下错误:
4.51.37 PM Platform and Plugin Updates: The following components are ready to update: Google Repository, Intel x86 Emulator Accelerator (HAXM installer)
4.51.39 PM Gradle sync started
4.52.27 PM Gradle sync completed
4.52.30 PM Executing tasks: [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]
4.52.33 PM ClassFormatError: minor.project.kickfeed.R$array
4.52.39 PM Gradle build finished in 11s 239ms
4.52.40 PM ClassFormatError: minor/project/kickfeed/R$array如何解决这个问题?
更新:我更新了Google Repository,它修复了这个错误。
发布于 2016-09-27 20:01:50
似乎你的项目出了点问题,发生在我身上,你可以尝试一些事情来解决这个问题。
Go to Build -> Rebuild Project
如果这不起作用,请尝试
Files -> Invalidate Caches / Restart
https://stackoverflow.com/questions/39723593
复制相似问题