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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM