Android studio 建立安卓項目hello

來源:互聯網
上載者:User

標籤:only   http   情況下   新手   str   ppc   color   運行   view   

Android studio是一個非常好用的軟體,只不過在使用的最開始,由於各種問題,會失敗,並且新手本身就不懂的情況下,更加的懵逼。

這裡我來記錄一下我遇到過的一點坑。

首先,Android studio已經安裝完畢,建立一個項目吧

上面有一個運行按鈕

最開始會遇到問題,報錯為:

failed to load AppCompat ActionBar with unkNown error

解決辦法:

在AndroidManifest.xml檔案中找到 全域樣式檔案 點擊 Theme,會連結到styles.xml檔案

將partent 修改為一下的即可。

這裡運行,是可以運行起來的,然後可以拖動組件到app中,最開始也會遇到問題,看不到拖過來的組件。

報錯為:

This view is not constrained, it only has designtime positions, so it will jump to (0,0) unless you

只要把魔棒點擊下就行,就可以看到拖動的控制項了。

此時運行可以看到成功了:

 

Android studio 建立安卓項目hello

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.