Android的工作室//导入语句错误//未使用的import语句 [英] Android Studio // Import statement error // Unused import statement

查看:3006
本文介绍了Android的工作室//导入语句错误//未使用的import语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我想导入东西的导入语句行刚刚消失,使我有以下错误:

Everytime I want to import anything the import statement line just disappears and gives me the following error:

Access is allowed from event dispatch thread only.
     Details: Current thread: Thread[JobScheduler FJ pool 7/8,6,main] 1239762171
     Our dispatch thread:Thread[AWT-EventQueue-0 0.5.1#AI-134.1061098, eap:true,6,main] 198746559
     SystemEventQueueThread: Thread[AWT-EventQueue-0 0.5.1#AI-134.1061098, eap:true,6,main] 198746559

对于任何解决方案?

Any solution for that?

感谢您。

推荐答案

这是错误的 HTTPS://$c$c.google.com/p/android/issues/detail ID = 66854 ;解决方法是禁用优化的飞行进口preference,直到我们把它修好。

This is bug https://code.google.com/p/android/issues/detail?id=66854; the workaround is to disable the "Optimize imports on the fly" preference until we get it fixed.

这篇关于Android的工作室//导入语句错误//未使用的import语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆