Android Studio IDE 所遇问题汇总

窗体视图无法显示
    在/res/values/styles.xml文件中,修改一下内容
<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>

【ActionBarActivity过时的解决方法】
    新版本中用AppCompatActivity代替了它
        导入R的包,删除下面没用的代码,然后ctrl+shift+O重新导包

【启动android时报错】
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
    解决方法:
just simply when creating an AVD uncheck the host gpu option in emulate performance tab
  // 意思是在创建Android 虚拟机时,取消

【单词拼写错误】
spellchecker inspection helps locate typos and misspelled in your code,comments and literals, and fix them in one click.
拼写检查器检查可以帮助查找拼写错误和拼写错误在您的代码、 注释和文本、 并修复它们中一次点击。
解决一:去掉单词拼写检查的选项

File----Settings


把Spelling typo勾选去掉(禁用单词拼写检查)

 

解决二:

选中单词,单击鼠标右键,卧槽。




Change to...就不用了。


Save ‘miyuehu’ to dictionary...不就是保存到词典的意思嚒。。。果断点了。在看看,波浪消失了。

 

[SDk更新问题]

mirrors.neusoft.edu.cn 80 或者 www.google.com 80

posted @ 2016-03-25 17:16  Demon-咖啡  阅读(2355)  评论(0编辑  收藏  举报